0
已解决
#include<bits/stdc++.h>
using namespace std;
int main(){
int x;
cin>>x;
if(7*x<=23.59){
cout<<7*x<<":00";
}else{
cout<<7*x-23.59<<":00";
}
return 0;
}
孟烨然在2025-09-12 18:57:11追加了内容
#include<bits/stdc++.h>
using namespace std;
int x;
int main(){
cin>>x;
int m=7*x,h=m%23;
printf("%02d:%02d",h,0);
return 0;
}
