fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main () {
  4. long long n,x;
  5. cin >> n;
  6. for (long long i = 1; i<=n; i++){
  7. cin >> x;
  8. if (x < 10)
  9. cout << setw(2) << setfill ('0') << "08:0" << x << endl;
  10. else if (x >= 10 && x < 60)
  11. cout << setw(2) << setfill('0') << "08:" << x << endl;
  12. else if (x >= 60 && x < 70)
  13. cout << setw(2) << setfill ('0') << "09:0" << (x - 60) << endl;
  14. else if (x >= 70 && x <= 100)
  15. cout << setw(2) << setfill('0') << "09:" << (x-60) << endl;
  16. }
  17. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
Standard output is empty