90pts求调
查看原帖
90pts求调
1017217
封禁用户楼主2024/12/29 14:50
#include <iostream>
#include <string>
using namespace std;
int main() {
int n,m,ti;
    cin>>m>>n;
    if(n%m)ti=m/n+11;
    else if(!n%m)ti=m/n+10;                 
    int tot= 8*60;
    tot-=ti;if(tot<0)tot+=24*60;
    int hours=tot/60; 
    int rem=tot%60;
    printf("%02d:%02d\n",hours%24,rem);
	return 0;
}

蒟蒻勿喷

2024/12/29 14:50
加载中...