Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
49454 OscarWLY 202406-GESP-一级-休息时间 C++ Accepted 1 MS 244 KB 282 2024-07-11 20:29:53

Tests(10/10):


#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,k; cin>>a>>b>>c>>k; for(int i=0;i<k;i++) { c++; if(c==60) { c=0; b++; } if(b==60) { b=0; a++; } if(a==24) a=0; } cout<<a<<" "<<b<<" "<<c; return 0; }


Judgement Protocol: