forked from newde/homework
上传文件至「666」
This commit is contained in:
22
666/01.cpp
Normal file
22
666/01.cpp
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#include<iostream>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main(){
|
||||||
|
|
||||||
|
int t=0;
|
||||||
|
int h=0;
|
||||||
|
|
||||||
|
while(h<=17){
|
||||||
|
t++;
|
||||||
|
h+=3;
|
||||||
|
|
||||||
|
if(h>=17)
|
||||||
|
break;
|
||||||
|
|
||||||
|
t++;
|
||||||
|
h--;
|
||||||
|
}
|
||||||
|
|
||||||
|
cout<<"需要"<<t<<"分钟"<<endl;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user