1
0
forked from newde/homework

镇乃天子

6666666666666666666666666666666666666666666666
This commit is contained in:
2026-02-27 03:13:26 -05:00
parent 7c42adee66
commit 9e50890b5d

16
918.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include<iostream>
using namespace std;
int main(){
int i=15,p=1,sum=i;
while(sum<312){
p++;
sum=sum+i;
i=i+2;
}
cout<<p<<" "<<i<<endl;
return 0;
}