[A108947] 题解
2026-04-07 20:48:59
发布于:北京
32阅读
0回复
0点赞
只需要输出 和 即可。
代码:
#include<bits/stdc++.h>
using namespace std;
int main(){
int x;
cin >> x;
cout << x / 60 << ' ' << x % 60;
return 0;
}
@Eucatastrophe 我可是会 C++ 的![嘟嘴][生气][愤怒][翻脸]
全部评论 5
#include<iostream> using namespace std; int x; int m,sec; int main(){ cin>>x; if(x % 60 == 0) m = x / 60; else{ while(1){ if(x % 60 != 0){ x--; sec++; }else if(x % 60 == 0){ m = x / 60; break; } } } cout<<m<<" "<<sec; return 0; }我的代码不一样



5天前 来自 广东
0你对 C++ 的了解程度不会和我对 py 的了解程度一样吧(((
6天前 来自 浙江
0居然写水体题解(
1周前 来自 浙江
0那咋了
1周前 来自 北京
0其实就是为了证明我会 C++
1周前 来自 北京
0但是调了三次才 AC(())()
1周前 来自 北京
0
笑点解析:调了三次才 AC
1周前 来自 北京
0qp
1周前 来自 北京
0













有帮助,赞一个