forked from newde/homework
23 lines
270 B
C++
23 lines
270 B
C++
#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;
|
|
}
|