上传文件至「0228」
排座位
This commit is contained in:
16
0228/162.cpp
Normal file
16
0228/162.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main(){
|
||||
int x=15;
|
||||
int j=0;
|
||||
int man=0;
|
||||
while(man<312){
|
||||
j++;
|
||||
x=x+2;
|
||||
man=man+x;
|
||||
|
||||
}
|
||||
cout<<j<<" "<<x<<" "<<man<<endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user