哪里错了 谢谢(c++)
查看原帖
哪里错了 谢谢(c++)
45921
xuecheng楼主2017/6/11 10:53
#include<iostream>
#include<iomanip>
#include<cmath>
#include<string>
int a,b,c,d,t1,t2,t;
int main()
{
    cin >> a >> b >> c >> d;
    t1 = a * 60 + b;
    t2 = c * 60 + d;
    t = t2 - t1;
    cout << t / 60 << " " << t % 60 << endl; 
    return 0;
}
2017/6/11 10:53
加载中...