蒟蒻80分求助
查看原帖
蒟蒻80分求助
759660
AKioi0101楼主2023/12/23 12:00
# include <bits/stdc++.h>
using namespace std;

int main()
{
    int a, b, c, d;
    cin >> a >> b >> c >> d;
    if (d < b)
    {
        if (d+100-b == 60) cout << c-a << " " << 0;
        else cout << c-a-1 << " " << d+60-b << endl;
    }
    else
    {
        cout << c-a << " " << d-b << endl;
    }
    return 0;
}

蒟蒻80分,第一个点没过

2023/12/23 12:00
加载中...