Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113357 常钰杰 05拆分时间 C++ Accepted 1 MS 276 KB 305 2025-03-15 18:01:00

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int x; cin>>x; int h,m,s; h=x/3600; if(h>0) { m=(x-3600)/60; s=x-h*3600-m*60; } else { m=x/60; s=x-m*60; } cout<<h<<" "<<m<<" "<<s; return 0; }