游戏的时间计算问题
#include <cstdio>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if(a < b) printf("O JOGO DUROU %d HORA(S)", b - a);
else if(b < a) printf("O JOGO DUROU %d HORA(S)", 24 - a + b);
else if(a == b) printf("O JOGO DUROU 24 HORA(S)");
return 0;
}
兄弟有时间填个邀请码hhhhhhhhh(可以得AC币,邀请码在学生认证那填) 我的邀请码是:GUDFH