Beginner Free Contest 33 - GMT

View as PDF

Submit solution

Points: 0.10 (partial)
Time limit: 1.0s
Memory limit: 256M

Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch

In case the statement didn't load correctly, you can download the statement here: Statement

Lưu ý: các bạn không nhập, xuất dữ liệu bằng file kể cả khi đề bài có yêu cầu. Đọc, ghi dữ liệu được thực hiện ở stdin và stdout.


Comments

Please read the guidelines before commenting.



  • 0
    k30hongvuong  commented on Dec. 9, 2025, 9:53 a.m.

    tham du tinh than

    ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
    cin >> h >> m >> a >> b ;
    h = h + (b-a);
    if(h > 23) h-=24;
    else if(h < 0) h = 24 + h;
    cout << h << " "<< m;
    return 0;
    

  • 0
    ManhYeuLinh  commented on July 6, 2025, 2:41 a.m.

    include <iostream>

    int h,m,a,b; using namespace std;

    int main() { cin >> h >> m >> a >>b; cout << (h - a + b + 24) % 24 << " " << m<<endl; return 0; }

    code c++


  • -7
    nhthien1704  commented on Dec. 5, 2023, 1:47 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • -7
    nhthien1704  commented on Dec. 5, 2023, 1:44 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.