From 9e50890b5db336b267c84632937bb0c3527cb575 Mon Sep 17 00:00:00 2001 From: hehe Date: Fri, 27 Feb 2026 03:13:26 -0500 Subject: [PATCH] =?UTF-8?q?=E9=95=87=E4=B9=83=E5=A4=A9=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6666666666666666666666666666666666666666666666 --- 918.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 918.cpp diff --git a/918.cpp b/918.cpp new file mode 100644 index 0000000..bd846fe --- /dev/null +++ b/918.cpp @@ -0,0 +1,16 @@ +#include +using namespace std; +int main(){ + + int i=15,p=1,sum=i; + while(sum<312){ + p++; + sum=sum+i; + i=i+2; + } + cout<