fbaiit @ 2023-11-20 10:05:43
#include<bits/stdc++.h>
using namespace std;
int main()
{
int s, v;
cin >> s >> v;
int n1 = 0;
if(s%v==0)
{
n1 = s / v;
}
else
{ n1 = s / v + 1;}
int n = 480 - n1-10;
cout <<"0"<<n / 60 << ":" << n % 60;
return 0;
}
by sunhengtian @ 2023-11-20 13:12:06
分钟也有可能只有一位哦
by Dark_Monarch @ 2023-12-03 15:19:55
@ywz121014
printf("%02d:%02d",(n / 60) % 24,n % 60);