63分求教(后四个测试点全错,c++)
查看原帖
63分求教(后四个测试点全错,c++)
1759067
_Cherries_楼主2025/8/29 13:21
#include<iostream>
#include<cmath>
using namespace std;
int main(){
    double s,v;
    cin>>s>>v;
    double z=s/v+10;
    int x=ceil(8*60-z-1);
    int ss=x/60,f=x%60;
    printf("%02d:%02d",ss,f);
    return 0;
}
2025/8/29 13:21
加载中...