0分求助
查看原帖
0分求助
679986
xiaoyuwenfei楼主2023/7/12 17:41

请问哪里出问题了呢?谢谢。

#include<iostream>
using namespace std;
int main() {
    int a,b,c,d,e,g,h,x;
    double f;
    cin >> a >> b >> c >> d;
    g=60*a+b;
    h=60*c+d;
    x=h-g;
    e=x/60;
    f=x%60;
    cout << e << f << endl;
    return 0;
}
2023/7/12 17:41
加载中...