1 solutions

  • 0
    @ 2025-8-28 16:27:24
    int a,b,c,d;
    输入a时b分
    输入c时d分
    公式计算;
    输出
    #include <bits/stdc++.h>
    using namespace std;
    int main() {
        int a, b, c, d;
        cin >> a >> b;
        cin >> c >> d;
        int s = a * 60 + b;
        int e = c * 60 + d;
        int du = e - s;
        cout << du << endl;
        return 0;
    }
    

    Information

    ID
    1004
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    6
    Tags
    # Submissions
    48
    Accepted
    14
    Uploaded By