- ACM
老师有1题我不会发群里了
- 9 months ago @
67
3 comments
-
Chaser Of Light LV 10 @ 9 months ago
需要讲解再说
-
9 months ago@
这提油题解
-
9 months ago@👍 1
- 1
需要讲解再说
#include<iostream>
using namespace std;
int main()
{
int n,a,b,c;
cin >>n;
a=n/60/60;
b=n%3600/60;
c=n%60;
if(a<10) cout <<"0" <<a <<":";
else cout <<a <<":";
if(b<10) cout <<"0" <<b <<":";
else cout <<b <<":";
if(c<10) cout <<"0" <<c;
else cout <<c;
return 0;
}
By signing up a 美力程青少儿编程 universal account, you can submit code and join discussions in all online judging services provided by us.