1 solutions

  • 0
    @ 2023-2-15 15:36:30
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int a1, a2, a3, b1, b2, b3;
    	scanf("%d:%d:%d",&a1,&a2,&a3);
    	scanf("%d:%d:%d",&b1,&b2,&b3);
    	int a = a1*3600 + a2*60 + a3;
    	int b = b1*3600 + b2*60 + b3;
    	cout << a-b;
    	return 0;
    }
    
    • 1

    Information

    ID
    441
    Time
    1000ms
    Memory
    16MiB
    Difficulty
    9
    Tags
    # Submissions
    7
    Accepted
    5
    Uploaded By