80,#3#5没过,求大佬指正
查看原帖
80,#3#5没过,求大佬指正
1152049
zzh3050426589楼主2024/2/27 18:49
#include <iostream>
using namespace std;
int main()
{
    int s, v,t;
    cin >> s >> v;
    if (s % v == 0)t = s / v + 10;
    else t = s / v + 11;
    if(t/60<=8)
    {
        if (t % 60 == 0)cout << "0"<<8 - (t / 60) << ":00" << endl;
        else cout << "0"<<7 - (t / 60) << ":" << 60 - (t % 60) << endl;
    }
    else
    {
        if (t % 60 == 0)cout << 32 - (t / 60) << ":00" << endl;
        else cout << 31 - (t / 60) << ":" << 60 - (t % 60) << endl;
    }
    return 0;
}
2024/2/27 18:49
加载中...