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.



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

    include <bits/stdc++.h>

    using namespace std; int main(){ int h,m,a,b; cin>>h; cin>>m; cin>>a; cin>>b; int x=(h-a+b+24)%24; cout<<"GMT +b="<<x<<" "<<m; }


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

    include <bits/stdc++.h>

    using namespace std; int main(){ int h,m,a,b; cin>>h; cin>>m; cin>>a; cin>>b; int x=(h-a+b+24)%24; cout<<"GMT +b="<<x<<" "<<m; }