Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- using ll = long long;
- constexpr int N = 1e5 + 5;
- int t;
- void Read()
- {
- cin >> t;
- }
- void Solve()
- {
- t += 480;
- if ((t / 60) < 10)
- cout << 0;
- cout << t / 60;
- cout << ":";
- if (t % 60 < 10)
- cout << 0;
- cout << t % 60;
- cout << "\n";
- }
- int32_t main()
- {
- ios::sync_with_stdio(0);
- cin.tie(0);
- cout.tie(0);
- int n;
- for (cin >> n; n--;)
- {
- Read();
- Solve();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement