Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
360 B
0
Indexable
Never
#include <iostream>
using namespace std;
struct timee {
    int h;
    int m;
    int sec;
};
int main()
{
    int a, b, c;
    timee bob;
    timee bib;
    cin >> bob.h >> bob.m >> bob.sec;
    cin >> bib.h >> bib.m >> bib.sec;
    a = bob.h - bib.h;
    b = bob.m - bib.m;
    c = bob.sec - bib.sec;
    cout << a << " " << b << " " << c;