mushroom2016 @ 2024-05-09 20:58:56
有大佬来教我一下吗?快崩溃了
#include <bits/stdc++.h>
using namespace std;
int main()
{
double n,m;
int v,k,s,f;
cin>>n>>m;
v=8*60+24*60;
k=ceil(n/m)+10;
v=v-k;
if(v>=24*60) v-=24*60;
f=v%60;
s=v/60;
cout<<s<<':'<<f;
return 0;
}
by shentianxing @ 2024-05-09 21:03:35
HH和MM如果没过10要在前面加0
by mushroom2016 @ 2024-05-09 21:06:18
@shentianxing 谢谢大佬,加了0过了