1 条题解

  • 0
    @ 2025-1-12 9:01:33
    #include <iostream>
    using namespace std;
    int main() {
        int h1, m1, s1;
        cin >> h1 >> m1 >> s1;
        int h2, m2, s2;
        cin >> h2 >> m2 >> s2;
        int y= h1 * 3600 + m1 * 60 + s1;
        int h = h2 * 3600 + m2 * 60 + s2;
        int p = y - h;
        cout << p << endl;
    
        return 0;
    }
    
    • 1

    信息

    ID
    63
    时间
    1000ms
    内存
    256MiB
    难度
    3
    标签
    递交数
    83
    已通过
    43
    上传者