buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
#include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; int h = t / 3600; t -= h; int m = t / 60; t -= m; int s = t; cout << h << ":" << m << ":" << s << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; int h = t / 3600; t -= h * 3600; int m = t / 60; t -= m * 60; int s = t; cout << h << ":" << m << ":" << s << endl; }
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
64
#include <iostream> using namespace std; int main() { int x, h, m, s; cin >> x; h = x / 3600; m = (x - h) / 60; s = x - h - m; cout << h << ":" << m << ":" << s << "\n"; return 0; }
#include <iostream> using namespace std; int main() { int x, h, m, s; cin >> x; h = x / 3600; m = (x % 3600) / 60; s = x % 60; cout << h << ":" << m << ":" << s << "\n"; return 0; }
[["-", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 12, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 109], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 33], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 8,...
1
72
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; m = S % 3600 / 60; s = S % 3600 % 60 / 60 % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; m = S % 3600 / 60; s = S % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 12, 16, 31, 16, 31, 16, 31, 16, 12, 13], ["-", 0, 11, 12, 16, 31, 16, 31, 16, 17, 109], ["-", 0, 11, 12, 16, 31, 16, 31, 16, 12, 13], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 85], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109]]
1
72
#include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a; c = a / 3600; b = a % 60; d = c / 6; cout << c << ":" << d << ":" << b << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a; c = a / 3600; //秒を時間に b = a % 60; d = a / 60 % 60; cout << c << ":" << d << ":" << b << endl; return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
64
#include <iostream> using namespace std; int main() { int S; cin >> S; cout << S / 3600 << ":" << (S % 3600) / 60 << ":" << S / 60 << "\n"; }
#include <iostream> using namespace std; int main() { int S; cin >> S; cout << S / 3600 << ":" << (S % 3600) / 60 << ":" << S % 60 << "\n"; }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 85], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109]]
1
49
#include <iostream> using namespace std; int main(void) { int s; cin >> s; cout << s / 3600 << ":" << (s / 60) % 60 << ":" << (s / 60) % 60 << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int s; cin >> s; cout << s / 3600 << ":" << (s / 60) % 60 << ":" << s % 60 << endl; return 0; }
[["-", 0, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["-", 31, 16, 12, 16, 31, 23, 0, 16, 17, 85], ["-", 31, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["-", 0, 16, 31, 16, 12, 16, 31, 23, 0, 25]]
1
55
#include <stdio.h> int main() { int s = scanf("%d", &s); printf("%d:%d:%d\n", s / 3600, s % 3600 / 60, s % 60); return 0; }
#include <stdio.h> int main() { int s; scanf("%d", &s); printf("%d:%d:%d\n", s / 3600, s % 3600 / 60, s % 60); return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35]]
1
46
#include <iostream> using namespace std; main() { int hour, min, sec; cin >> sec; hour = sec / 3600; min = (sec / 60) - 60 * hour; sec = sec - 3600 * hour - 60 * min; cout << "" << hour << " " << min << " " << sec << endl; }
#include <iostream> using namespace std; main() { int hour, min, sec; cin >> sec; hour = sec / 3600; min = (sec / 60) - 60 * hour; sec = sec - 3600 * hour - 60 * min; cout << "" << hour << ":" << min << ":" << sec << endl; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
73
#include <iostream> using namespace std; int main() { int sec; cin >> sec; int hour = sec / 3600; int min = (sec % 3600) / 60; sec = (min % 60); cout << hour << ":" << min << ":" << sec << endl; return 0; }
#include <iostream> using namespace std; int main() { int sec; cin >> sec; int hour = sec / 3600; int min = (sec % 3600) / 60; sec = (sec % 3600) % 60; cout << hour << ":" << min << ":" << sec << endl; return 0; }
[["-", 0, 1, 0, 11, 12, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 1, 0, 11, 12, 23, 0, 16, 12, 13], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
66
#include <stdio.h> int main() { int s = 0; scanf("%d", &s); if ((0 <= s) && (s < 86400)) { printf("%d:%d:%d\n", s / 3600, s / 60, s % 60); } return 0; }
#include <stdio.h> int main() { int s = 0; scanf("%d", &s); if ((0 <= s) && (s < 86400)) { printf("%d:%d:%d\n", s / 3600, (s % 3600) / 60, s % 60); } return 0; }
[["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 17, 109], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25]]
1
62
#include <stdio.h> int main() { int t1; scanf("%d", t1); printf("%d:%d:%d\n", (t1 / 3600), ((t1 % 3600) / 60), ((t1 % 3600) % 60)); return 0; }
#include <stdio.h> int main() { int t1; scanf("%d", &t1); printf("%d:%d:%d\n", (t1 / 3600), ((t1 % 3600) / 60), ((t1 % 3600) % 60)); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
1
57
#include <cstdio> #include <iostream> using namespace std; int x, h, m, s; int main() { cin >> x; h = x / 3600; m = (x % 3600) / 60; s = (x % 3600) % 60; printf("%d:%d;%d\n", h, m, s); return 0; }
#include <cstdio> #include <iostream> using namespace std; int x, h, m, s; int main() { cin >> x; h = x / 3600; m = (x % 3600) / 60; s = (x % 3600) % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
70
#include <iostream> using namespace std; int main(int argc, char *argv[]) { int S; int h, m, s; cin >> S; h = S / 3600; m = (S - 3600 * h) / 60; s = S - 3600 * h - 60 * m; cout << h << " " << m << " " << s << endl; return 0; }
#include <iostream> using namespace std; int main(int argc, char *argv[]) { int S; int h, m, s; cin >> S; h = S / 3600; m = (S - 3600 * h) / 60; s = S - 3600 * h - 60 * m; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
85
#include <iostream> using namespace std; int main() { int h; int m; int s; cin >> s; h = s / (60 * 60); m = s / 60 - h * 60; s = s - (h * 60 - m) * 60; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int h; int m; int s; cin >> s; h = s / (60 * 60); m = s / 60 - h * 60; s = s - (h * 60 + m) * 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 12, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 12, 16, 31, 23, 0, 16, 17, 72]]
1
80
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; m = (S % 3600) / 60; s = (S % 3600) % 60; cout << h << " " << m << " " << s << "\n"; }
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; m = (S % 3600) / 60; s = (S % 3600) % 60; cout << h << ":" << m << ":" << s << "\n"; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
71
#include <stdio.h> int main() { int x; scanf("%d:", &x); printf("%d", x / 3600); x %= 3600; printf("%d:", x / 60); x %= 60; printf("%d\n", x); return 0; }
#include <stdio.h> int main() { int x; scanf("%d:", &x); printf("%d:", x / 3600); x %= 3600; printf("%d:", x / 60); x %= 60; printf("%d\n", x); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
64
#include <bits/stdc++.h> using namespace std; main() { int S; cin >> S; cout << S / 360 << ":"; S %= 360; cout << S / 60 << ":" << S % 60 << endl; }
#include <bits/stdc++.h> using namespace std; main() { int S; cin >> S; cout << S / 3600 << ":"; S %= 3600; cout << S / 60 << ":" << S % 60 << endl; }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
1
48
#include <stdio.h> int main(void) { int s; scanf("%d", &s); printf("%d:%d:%d", s / 3600, s % 60, s % 3600); return 0; }
#include <stdio.h> int main(void) { // Here your code ! int s; scanf("%d", &s); printf("%d:%d:%d\n", s / 3600, (s % 3600) / 60, s % 60); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 85], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
44
#include <iostream> using namespace std; int main() { int a, h, m, s; cin >> a; h = a / 3600; m = a % 3600 / 60; s = a % 60; cout << h << ":" << m << ":" << s << ":" << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, h, m, s; cin >> a; h = a / 3600; m = a % 3600 / 60; s = a % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
70
#include <iostream> using namespace std; int main() { int S; cin >> S; int h = S / 3600; int m = S % 3600 / 60; int s = S % 60; cout << h << " " << m << " " << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int S; cin >> S; int h = S / 3600; int m = S % 3600 / 60; int s = S % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
63
#include <iostream> int main() { int S; int h, m, s; std::cin >> S; h = S / 3600; m = (S % 300) / 60; s = (S % 300) % 60; std::cout << h << ":" << m << ":" << s << std::endl; return 0; }
#include <iostream> int main() { int S; int h, m, s; std::cin >> S; h = S / 3600; m = (S % 3600) / 60; s = (S % 3600) % 60; std::cout << h << ":" << m << ":" << s << std::endl; return 0; }
[["-", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13]]
1
75
#include <stdio.h> int main(void) { int h, m, s, S; scanf("%d", &S); h = S / 3600; S = S - (h * 3600); m = S / 60; S = S - (m * 60); s = S / 1; printf("???%d:%d:%d\n", h, m, s); return 0; }
#include <stdio.h> int main(void) { int h, m, s, S; scanf("%d", &S); h = S / 3600; S = S - (h * 3600); m = S / 60; S = S - (m * 60); s = S / 1; printf("%d:%d:%d\n", h, m, s); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
83
#include <stdio.h> int main(void) { int S; int h, m, s; scanf("%d", &S); h = S / (60 * 60); m = S % (60 * 60); s = S % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
#include <stdio.h> int main(void) { int S; int h, m, s; scanf("%d", &S); h = S / (60 * 60); m = (S % (60 * 60)) / 60; s = S % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
[["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
72
#include <stdio.h> int main(void) { int S; int h, m, s; scanf("%d", &S); h = S % 3600; S = S - (h * 3600); m = S % 60; S = S - (m * 60); s = S; printf("%d:%d:%d\n", h, m, s); return 0; }
#include <stdio.h> int main(void) { int S; int h, m, s; scanf("%d", &S); h = S / 3600; S = S - (h * 3600); m = S / 60; S = S - (m * 60); s = S; printf("%d:%d:%d\n", h, m, s); return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85]]
1
82
#include <iostream> using namespace std; int main() { int a = 0; int b = 0; cin >> a; cout << a / 3600 << ":" << a / 60 << ":" << a % 60 << endl; return 0; }
#include <iostream> using namespace std; int main() { int a = 0; int b = 0; cin >> a; cout << a / 3600 << ":" << (a % 3600) / 60 << ":" << a % 60 << endl; return 0; }
[["+", 31, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 109], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 16, 31, 16, 12, 16, 31, 23, 0, 25]]
1
53
#include <iostream> using namespace std; int main() { int ss, h, m, s; cin >> ss; if ((ss >= 1) && (ss <= 86400)) { h = ss / 3600; m = (ss - h * 3600) / 60; s = ss - h * 3600 - m * 60; cout << h << ":" << m << ":" << s << endl; } else { cout << "error" << endl; }; }
#include <iostream> using namespace std; int main() { int ss, h, m, s; cin >> ss; if ((ss >= 0) && (ss <= 86400)) { h = ss / 3600; m = (ss - h * 3600) / 60; s = ss - h * 3600 - m * 60; cout << h << ":" << m << ":" << s << endl; } else { cout << "error" << endl; }; }
[["-", 15, 339, 51, 16, 31, 23, 0, 16, 12, 13], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 12, 13]]
1
101
#include <iostream> using namespace std; int main() { int s, m, h; cin >> s; h = s / 3600; s %= 3600; m = s / 60; m %= 60; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int s, m, h; cin >> s; h = s / 3600; s %= 3600; m = s / 60; s %= 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22]]
1
64
#include <stdio.h> int main(void) { int a, b, c, d; scanf("%d", &a); b = a / 60; d = a % 60; c = d / 60; d = d % 60; printf("%d:%d:%d\n", b, c, d); }
#include <stdio.h> int main(void) { int a, b, c, d; scanf("%d", &a); b = a / 3600; d = a % 3600; c = d / 60; d = d % 60; printf("%d:%d:%d\n", b, c, d); }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
66
#include <iostream> using namespace std; int main() { int time; cin >> time; cout << time / 3600 << ":"; time %= 3600; cout << time / 60 << ":" << time << endl; return 0; }
#include <iostream> using namespace std; int main() { int time; cin >> time; cout << time / 3600 << ":"; time %= 3600; cout << time / 60 << ":" << time % 60 << endl; return 0; }
[["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
50
#include <iostream> using namespace std; int main() { int time; int sec, min, hour; std::cin >> time; sec = time % 60; min = (time / 60) % 60; hour = (time / 60); std::cout << hour << ":" << min << ":" << sec << std::endl; return 0; }
#include <iostream> using namespace std; int main() { int time; int sec, min, hour; std::cin >> time; sec = time % 60; min = (time / 60) % 60; hour = (time / 3600); std::cout << hour << ":" << min << ":" << sec << std::endl; return 0; }
[["-", 0, 1, 0, 11, 12, 23, 0, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 23, 0, 16, 12, 13]]
1
77
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; s = S % 60; m = S / 60; h = S / 3600; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; s = S % 60; m = (S / 60) % 60; h = S / 3600; cout << h << ":" << m << ":" << s << endl; return 0; }
[["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109]]
1
64
#include <cstdio> int main() { int s; scanf("%d", &s); int h = s / 3600; s %= 3600; int m = s / 60; s %= 60; printf("%dh%dm%ds\n", h, m, s); return 0; }
#include <cstdio> int main() { int s; scanf("%d", &s); int h = s / 3600; s %= 3600; int m = s / 60; s %= 60; printf("%d:%d:%d\n", h, m, s); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
60
#include <iostream> int main() { int sec, h, m, s; std::cin >> sec; h = sec / 3600; m = (sec - h * 3600) / 60; s = sec - h * 60; std::cout << h << ":" << m << ":" << s << std::endl; }
#include <iostream> int main() { int sec, h, m, s; std::cin >> sec; h = sec / 3600; m = (sec - h * 3600) / 60; s = sec - h * 3600 - m * 60; std::cout << h << ":" << m << ":" << s << std::endl; }
[["+", 0, 11, 12, 16, 31, 16, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 17, 48]]
1
71
#include <iostream> using namespace std; int main() { int h, m, s; cin >> s; h = s / 3600; s %= s / 3600; m = s / 60; s %= s / 60; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int h, m, s; cin >> s; h = s / 3600; s %= 3600; m = s / 60; s %= 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85]]
1
68
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; m = S / 60 - S / 60; s = S % 60; cout << h << ":" << m << ":" << s << endl; }
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; m = S / 60 - S / 3600 * 60; s = S % 60; cout << h << ":" << m << ":" << s << endl; }
[["+", 0, 11, 12, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 12, 16, 17, 48]]
1
65
#include <cstdio> int main() { int S; scanf("%d", &S); printf("%d:%d:%d\n", S / 3600, (S % 3600) / 60, ((S % 3600) % 60) / 60); return 0; }
#include <cstdio> int main() { int S; scanf("%d", &S); printf("%d:%d:%d\n", S / 3600, (S % 3600) / 60, (S % 60) % 60); return 0; }
[["-", 0, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 17, 109], ["-", 31, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["-", 0, 16, 31, 23, 0, 16, 31, 23, 0, 25], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 85], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 109]]
1
56
#include <stdio.h> int main(void) { int S, h, m, amari, s; scanf("%d", &S); h = S / 3600; amari = S % 3600; m = amari / 60; s = amari % 60; printf("%d %d %d\n", h, m, s); return 0; }
#include <stdio.h> int main(void) { int S, h, m, amari, s; scanf("%d", &S); h = S / 3600; amari = S % 3600; m = amari / 60; s = amari % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
71
#include <stdio.h> int S; int main() { scanf("%d", &S); printf("\n%d:%d:%d\n", S / 3600, (S % 3600) / 60, ((S % 3600) % 60) / 60); return 0; }
#include <stdio.h> int S; int main() { scanf("%d", &S); printf("%d:%d:%d\n", S / 3600, (S % 3600) / 60, (S % 3600) % 60); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["-", 3, 4, 0, 16, 31, 23, 0, 16, 12, 13], ["-", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 85]]
1
57
#include <algorithm> #include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; S -= h; m = S / 60; S -= m; s = S; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <algorithm> #include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; S -= h * 3600; m = S / 60; S -= m * 60; s = S; cout << h << ":" << m << ":" << s << endl; return 0; }
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
72
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; m = S / 60; s = S % 60; cout << h << ':' << m << ':' << s << '\n'; }
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; m = (S - h * 3600) / 60; s = S % 60; cout << h << ':' << m << ':' << s << '\n'; }
[["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 31, 22], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 48], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25]]
1
63
#include <stdio.h> int main(void) { int S = 0; int h = 0, m = 0, s = 0; scanf("%d", &S); h = S / 3600; m = (S % 3600) / 60; s = (S % 3600) / 60; printf("%d:%d:%d", h, m, s); }
#include <stdio.h> int main(void) { int S = 0; int h = 0, m = 0, s = 0; scanf("%d", &S); h = S / 3600; m = S % 3600 / 60; s = S % 3600 % 60; printf("%d:%d:%d\n", h, m, s); }
[["-", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["-", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
76
#include "cstdio" int main() { int h, m, s; scanf("%d", &s); h = s / 3600; m = s % 3600 / 60; s = s % 60; printf("%d,%d,%d", h, m, s); return 0; }
#include "cstdio" int main() { int h, m, s; scanf("%d", &s); h = s / 3600; m = s % 3600 / 60; s = s % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
63
#include <stdio.h> int main(void) { int S, h, m, s; scanf("%d", &S); h = S / 3600; m = (S - 3600 * h) / 60; s = S - h * 3600 - m * 60; printf("%d %d %d\n", h, m, s); }
#include <stdio.h> int main(void) { int S, h, m, s; scanf("%d", &S); h = S / 3600; m = (S - 3600 * h) / 60; s = S - h * 3600 - m * 60; printf("%d:%d:%d\n", h, m, s); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
72
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; m = S % 3600 / 60; s = S % 3600 % 60; cout << h << ":" << m << ":" << s << ":" << endl; return 0; }
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; m = S % 3600 / 60; s = S % 3600 % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
72
#include <iostream> using namespace std; int main() { int s, h, m, sm; cin >> s; h = s / 3600; m = s / 60 - h * 60; sm = s - h * 3600 - m * 60; cout << h << ": " << m << ":" << sm << endl; return 0; }
#include <iostream> using namespace std; int main() { int s, h, m, sm; cin >> s; h = s / 3600; m = s / 60 - h * 60; sm = s - h * 3600 - m * 60; cout << h << ":" << m << ":" << sm << endl; return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
74
#include <iostream> using namespace std; int main() { int s; int h; int m; cin >> s; if (s >= 1 && s < 86400) { int h = s / 3600; s = s % 3600; int m = s / 60; s = s % 60; cout << h << ":" << m << ":" << s << endl; } }
#include <iostream> using namespace std; int main() { int s; int h; int m; cin >> s; if (s >= 0 && s < 86400) { int h = s / 3600; s = s % 3600; int m = s / 60; s = s % 60; cout << h << ":" << m << ":" << s << endl; } }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]]
1
81
#include <cstdio> #include <iostream> using namespace std; int main() { int s; cin >> s; cout << s / 3600 << ":" << (s - s / 3600) / 60 << ":" << (s - s / 3600) % 60 << endl; return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { int s; cin >> s; cout << s / 3600 << ":" << (s % 3600) / 60 << ":" << (s % 3600) % 60 << endl; return 0; }
[["-", 31, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["-", 12, 16, 31, 23, 0, 16, 12, 16, 31, 22], ["-", 12, 16, 31, 23, 0, 16, 12, 16, 17, 85], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 109], ["-", 31, 16, 12, 16, 31, 23, 0, 16, 31, 22]]
1
60
#include <stdio.h> int main(void) { int a, h, m, s; scanf("%d", &a); h = a / 3600; m = a % 3600 / 60; s = a % 3600 % 60; printf("%d;%d;%d", h, m, s); return 0; }
#include <stdio.h> int main(void) { int a, h, m, s; scanf("%d", &a); h = a / 3600; m = a % 3600 / 60; s = a % 3600 % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
66
#include <iostream> using namespace std; int main() { int S; cin >> S; cout << S / 3600 << " " << S % 3600 / 60 << " " << S % 3600 % 60 << endl; return 0; }
#include <iostream> using namespace std; int main() { int S; cin >> S; cout << S / 3600 << ":" << S % 3600 / 60 << ":" << S % 3600 % 60 << endl; return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
50
#include <stdio.h> int main() { int a, b = 0, c = 0; scanf("%d", &a); for (; a >= 3600; b++, a -= 3600) { } for (; a >= 60; c++, a -= 60) { } printf("%d:%d:%d?\n", b, c, a); return 0; }
#include <stdio.h> int main() { int a, b = 0, c = 0; scanf("%d", &a); for (; a >= 3600; b++, a -= 3600) { } for (; a >= 60; c++, a -= 60) { } printf("%d:%d:%d\n", b, c, a); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
78
#include <stdio.h> int main() { int s, h, m; scanf("%d", &s); h = (int)s / 3600; m = (int)(s - 3600 * h) / 60; s -= (int)(600 * h + 60 * m); printf("%d:%d:%d\n", h, m, s); return 0; }
#include <stdio.h> int main() { int s, h, m; scanf("%d", &s); h = (int)s / 3600; m = (int)(s - 3600 * h) / 60; s = s - (int)(3600 * h + 60 * m); printf("%d:%d:%d\n", h, m, s); return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 110], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 12, 74, 51, 23, 0, 16, 31, 16, 31, 13], ["+", 12, 74, 51, 23, 0, 16, 31, 16, 31, 13]]
1
81
#include <iomanip> #include <iostream> int main(void) { using namespace std; int S; int a; int h, m, s; cin >> S; h = (int)(S / 360); a = S % 360; m = (int)(a / 60); s = a % 60; cout << h << ':' << m << ':' << s << endl; return 0; }
#include <iomanip> #include <iostream> int main(void) { using namespace std; int S; int a; int h, m, s; cin >> S; h = (int)(S / 3600); a = S % 3600; m = (int)(a / 60); s = a % 60; cout << h << ':' << m << ':' << s << endl; return 0; }
[["-", 0, 11, 12, 74, 51, 23, 0, 16, 12, 13], ["+", 0, 11, 12, 74, 51, 23, 0, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
87
#include <iostream> using namespace std; int main() { int a; cin >> a; cout << a / 3600 << ":" << a % 3600 / 60 << a % 60 << endl; }
#include <iostream> using namespace std; int main() { int a; cin >> a; cout << a / 3600 << ":" << a % 3600 / 60 << ":" << a % 60 << endl; }
[["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
41
#include <iostream> using namespace std; int main(void) { int S = 46979; // cin >> S; int h = S / (60 * 60); int m = (S - (h * 60 * 60)) / 60; int s = (S - (h * 60 * 60) - (m * 60)); cout << h << ':' << m << ':' << s << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int S; cin >> S; int h = S / (60 * 60); int m = (S - (h * 60 * 60)) / 60; int s = (S - (h * 60 * 60) - (m * 60)); cout << h << ':' << m << ':' << s << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
89
#include "iostream" using namespace std; int main() { int s; cin >> s; cout << s / 360 << ":" << s % 60 << ":" << s % 360 << endl; return 0; }
#include "iostream" using namespace std; int main() { int s; cin >> s; cout << s / 3600 << ":" << s / 60 % 60 << ":" << s % 3600 % 60 << endl; return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 17, 85], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 109], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12,...
1
48
x = gets x = x.to_i puts "#{x/3600} #{x/60%60} #{x%60}"
x = gets x = x.to_i puts "#{x/3600}:#{x/60%60}:#{x%60}"
[["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6]]
4
30
time = 46979 sec = time % 60 min = (time % 3600) / 60 hour = time / 3600 puts "#{hour}:#{min}:#{sec}"
time = gets.to_i sec = time % 60 min = (time % 3600) / 60 hour = time / 3600 puts "#{hour}:#{min}:#{sec}"
[["-", 36, 36, 36, 36, 0, 493, 0, 662, 12, 612], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 486, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
36
x = ARGF.gets.to_i h = ((x / 60) / 60).floor m = (x / 60).floor s = x % 60 puts "#{h}:#{m}:#{s}"
x = ARGF.gets.to_i h = ((x / 60) / 60).floor m = (x / 60) % 60.floor s = x % 60 puts "#{h}:#{m}:#{s}"
[["+", 36, 36, 0, 493, 0, 662, 12, 738, 17, 109], ["+", 0, 493, 0, 662, 12, 738, 12, 652, 486, 612]]
4
48
x = ARGF.gets.to_i h = ((x / 60) / 60).floor m = (x / 60).floor s = x % 60 puts "#{h}:#{m}:#{s}"
x = ARGF.gets.to_i h = ((x / 60) / 60).floor m = (x / 60) % 60.floor s = x % 60.floor puts "#{h}:#{m}:#{s}"
[["+", 36, 36, 0, 493, 0, 662, 12, 738, 17, 109], ["+", 0, 493, 0, 662, 12, 738, 12, 652, 486, 612], ["+", 0, 493, 0, 662, 12, 738, 12, 652, 17, 131], ["+", 0, 493, 0, 662, 12, 738, 12, 652, 735, 22]]
4
48
i = gets h = i / 3600 m = (i - h * 3600) / 60 s = i - h * 3600 - m * 60 puts "#{h}:#{m}:#{s}"
i = gets.to_i h = i / 3600 m = (i - h * 3600) / 60 s = i - h * 3600 - m * 60 puts "#{h}:#{m}:#{s}"
[["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
44
t = gets.to_i h = (t/3600).floor s = t%3600 m = (t/60).floor s = t%60 print "#{h}:#{m}:#{s}"
t = gets.to_i h = (t/3600).floor s = t%3600 m = (s/60).floor s = t%60 puts "#{h}:#{m}:#{s}"
[["-", 0, 662, 12, 652, 486, 739, 0, 738, 31, 22], ["+", 0, 662, 12, 652, 486, 739, 0, 738, 31, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
47
S = gets.to_i h = S / 3600 m = S % 60 / 60 s = S % 60 puts "#{h}:#{m}:#{s}"
S = gets.to_i h = S / 3600 m = S % 3600 / 60 s = S % 60 puts "#{h}:#{m}:#{s}"
[["-", 0, 493, 0, 662, 12, 738, 31, 738, 12, 612], ["+", 0, 493, 0, 662, 12, 738, 31, 738, 12, 612]]
4
36
S = gets.to_i h = S / 3600 s = S % 3600 m = (S - 3600 * h) / 60 puts "#{h}:#{m}:#{s}"
S = gets.to_i h = S / 3600 s = S % 60 m = (S - 3600 * h) / 60 puts "#{h}:#{m}:#{s}"
[["-", 36, 36, 0, 493, 0, 662, 12, 738, 12, 612], ["+", 36, 36, 0, 493, 0, 662, 12, 738, 12, 612]]
4
40
time = gets.to_i ans = "" hour = 0; min = 0; sec = 0 while 3600 < time time -= 3600 hour += 1 end while 60 < time time -= 60 min += 1 end sec = time p "#{hour}:#{min}:#{sec}"
time = gets.to_i ans = "" hour = 0; min = 0; sec = 0 while 3600 <= time time -= 3600 hour += 1 end while 60 <= time time -= 60 min += 1 end sec = time puts "#{hour}:#{min}:#{sec}"
[["-", 36, 36, 0, 493, 0, 89, 15, 738, 17, 18], ["+", 36, 36, 0, 493, 0, 89, 15, 738, 17, 19], ["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
59
a = gets.to_i b = a.div(3600) c = a.modulo(3600) d = c.div(60) e = c.modulo(60) print b,(":"),d,(":"),e("\n")
a = gets.to_i b = a.div(3600) c = a.modulo(3600) d = c.div(60) e = c.modulo(60) print b,(":"),d,(":"),e,("\n")
[["+", 36, 36, 0, 493, 0, 652, 3, 4, 0, 21]]
4
60
a = gets.to_i b = a / 3600 c = a % 3600 d = c / 60 e = d % 60 print b,(":"),d,(":"),e
a = gets.to_i b = a / 3600 c = a % 3600 d = c / 60 e = c % 60 print b,(":"),d,(":"),e,("\n")
[["-", 36, 36, 0, 493, 0, 662, 12, 738, 31, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 738, 31, 22], ["+", 36, 36, 0, 493, 0, 652, 3, 4, 0, 21], ["+", 0, 493, 0, 652, 3, 4, 0, 739, 0, 24], ["+", 0, 652, 3, 4, 0, 739, 0, 557, 0, 62], ["+", 0, 652, 3, 4, 0, 739, 0, 557, 0, 44], ["+", 0, 493, 0, 652, 3, 4, 0, 739, 0, 25]]
4
43
t = gets.to_i h = t / 3600 m = (t - h * 3600) / 60 s = t - h * 3600 - m * 60 printf("%d %d %d\n", h, m, s)
t = gets.to_i h = t / 3600 m = (t - h * 3600) / 60 s = t - h * 3600 - m * 60 printf("%d:%d:%d\n", h, m, s)
[["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6]]
4
45
S=gets.to_i s=S%60 h=S/3600 m=(S-3600*h)/60 printf("%d:%d:%d?\n",h,m,s)
S=gets.to_i s=S%60 h=S/3600 m=(S-3600*h)/60 printf("%d:%d:%d\n",h,m,s)
[["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6]]
4
39
S = gets.chomp if 0 <= S && S < 86400 s = S % 60 m = (S / 60) % 60 h = S / (60 * 60) puts "#{h}:#{m}:#{s}" end
S = gets.chomp.to_i if 0 <= S && S < 86400 s = S % 60 m = (S / 60) % 60 h = S / (60 * 60) puts "#{h}:#{m}:#{s}" end
[["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
51
s = gets.to_i hour = s / 3600 min = s - hour * 3600 / 60 sec = s - hour * 3600 - min * 60 puts "#{hour}:#{min}:#{sec}"
s = gets.to_i hour = s / 3600 min = (s - hour * 3600) / 60 sec = s - hour * 3600 - min * 60 puts "#{hour}:#{min}:#{sec}"
[["+", 0, 493, 0, 662, 12, 738, 31, 739, 0, 24], ["+", 0, 493, 0, 662, 12, 738, 31, 739, 0, 25]]
4
44
a = gets.to_i b1 = a/3600 b2 = a%3600 c1 = b2/60 c2 = b2%60 print b1,";",c1,";",c2,"\n"
a = gets.to_i b1 = a/3600 b2 = a%3600 c1 = b2/60 c2 = b2%60 print b1,":",c1,":",c2,"\n"
[["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6]]
4
43
a = gets().to_i puts a/3600,':',(a/60)%60,':',a%60
a = gets().to_i print a/3600,':',(a/60)%60,':',a%60,"\n"
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 652, 3, 4, 0, 21], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 62], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 44]]
4
31
S = gets.to_i #S = (h * 3600) + (m * 60) + s h = floor(S / 3600) m = floor((S - (h * 3600)) / 60) s = S - ((h * 3600) + (m * 60)) puts "#{h}:#{m}:#{s}"
S = gets.to_i #S = (h * 3600) + (m * 60) + s h = (S / 3600).floor m = ((S - (h * 3600)) / 60).floor s = S - ((h * 3600) + (m * 60)) puts "#{h}:#{m}:#{s}"
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22]]
4
61
S = gets.to_i; h = S/3600 m = S%3600/60 s = S%60 puts h.to_i,":",m.to_i,":",s.to_i
S = gets.to_i; h = S/3600 m = S%3600/60 s = S%60 print h.to_i,":",m.to_i,":",s.to_i,"\n"
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 652, 3, 4, 0, 21], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 62], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 44]]
4
43
seconds=STDIN.gets.chomp.to_i h=seconds/60**2 m=(seconds%60**2)/60 s=(seconds%60**2)%60 print "#{h}/#{m}/#{s}\n"
seconds=STDIN.gets.chomp.to_i h=seconds/60**2 m=(seconds%60**2)/60 s=(seconds%60**2)%60 print "#{h}:#{m}:#{s}\n"
[["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6]]
4
53
S = gets.to_i h = S / 3600 m = (S - h) / 60 s = (S % 3600) % 60 puts "#{h}:#{m}:#{s}"
S = gets.to_i h = S / 3600 m = (S % 3600) / 60 s = (S % 3600) % 60 puts "#{h}:#{m}:#{s}"
[["-", 0, 662, 12, 738, 31, 739, 0, 738, 17, 33], ["-", 0, 662, 12, 738, 31, 739, 0, 738, 12, 22], ["+", 0, 662, 12, 738, 31, 739, 0, 738, 17, 109], ["+", 0, 662, 12, 738, 31, 739, 0, 738, 12, 612]]
4
42
l while str = $stdin.gets sec = str.strip.to_i h = (sec / 3600).floor # puts "h = #{h}" sec -= h * 3600 m = (sec / 60).floor # puts "m = #{m}" sec -= m * 60 # puts "sec = #{sec}" puts "#{h}:#{m}:#{sec}" end
while str = $stdin.gets sec = str.strip.to_i h = (sec / 3600).floor # puts "h = #{h}" sec -= h * 3600 m = (sec / 60).floor # puts "m = #{m}" sec -= m * 60 # puts "sec = #{sec}" puts "#{h}:#{m}:#{sec}" end
[["-", 36, 36, 36, 36, 36, 36, 0, 493, 0, 22]]
4
60
t=gets.to_i h=t/3600 m=t%3600/60 puts "#{h}+#{m}+#{t%60}"
t=gets.to_i h=t/3600 m=t%3600/60 puts "#{h}:#{m}:#{t%60}"
[["-", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 493, 0, 652, 3, 4, 0, 557, 0, 6]]
4
33
a=gets.chomp.split(" ").to_i h=a/3600 m=(a-h*3600)/60 s=a%60 print "#{h}:#{m}:#{s}\n"
a=gets.chomp.to_i h=a/3600 m=(a-h*3600)/60 s=a%60 print "#{h}:#{m}:#{s}\n"
[["-", 0, 493, 0, 662, 12, 652, 486, 652, 735, 22], ["-", 0, 662, 12, 652, 486, 652, 3, 4, 0, 24], ["-", 12, 652, 486, 652, 3, 4, 0, 557, 0, 62], ["-", 12, 652, 486, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 662, 12, 652, 486, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131]]
4
50
a=gets.chomp.split(" ").to_i h=a/3600 m=(a%3600)/60 s=a%60 print "#{h}:#{m}:#{s}\n"
a=gets.chomp.to_i h=a/3600 m=(a%3600)/60 s=a%60 print "#{h}:#{m}:#{s}\n"
[["-", 0, 493, 0, 662, 12, 652, 486, 652, 735, 22], ["-", 0, 662, 12, 652, 486, 652, 3, 4, 0, 24], ["-", 12, 652, 486, 652, 3, 4, 0, 557, 0, 62], ["-", 12, 652, 486, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 662, 12, 652, 486, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131]]
4
48
s = gets.to_i puts "#{s/3600}:#{s/60%60}:#{s-60}"
s = gets.to_i puts "#{s/3600}:#{s/60%60}:#{s%60}"
[["-", 3, 4, 0, 557, 0, 284, 0, 738, 17, 33], ["+", 3, 4, 0, 557, 0, 284, 0, 738, 17, 109]]
4
27
t = gets.to_i x = t/3600 t = t - 3600*x y = t/60 t = t - 60*y puts "#{x}:#{y}:#{z}"
t = gets.to_i x = t/3600 t = t - 3600*x y = t/60 z = t - 60*y puts "#{x}:#{y}:#{z}"
[["-", 36, 36, 36, 36, 0, 493, 0, 662, 31, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 31, 22]]
4
43
s = STDIN.gets.to_i # s = 46979 #p s # "13:2:59" H = 60*60 M = 60 p h = s/H p m = (s - H*h) / M p s = (s - H*h - m*M) puts "#{h}:#{m}:#{s}"
s = STDIN.gets.to_i H = 60*60 M = 60 h = s/H m = (s - H*h) / M s = (s - H*h - m*M) puts "#{h}:#{m}:#{s}"
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
64
n = gets.to_i hour = n/3600 minuet = n/60 second = n%60 puts "#{hour}:#{minuet}:#{second}"
n = gets.to_i hour = n/3600 minuet = n%3600/60 second = n%60 puts "#{hour}:#{minuet}:#{second}"
[["+", 0, 493, 0, 662, 12, 738, 31, 738, 17, 109], ["+", 0, 493, 0, 662, 12, 738, 31, 738, 12, 612]]
4
34
S=int(input()) h=S//3600 m=(S-h*3600)//60 s=S%3600 print(str(h)+':'+str(m)+':'+str(s))
S=int(input()) h=S//3600 m=(S-h*3600)//60 s=S%60 print(str(h)+':'+str(m)+':'+str(s))
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
54
S = input() s = S % 60 m = int(S / 60) % 60 h = int(int(S / 60) / 60) print('%d:%d:%d' % (h,m,s))
S = int(input()) s = S % 60 m = int(S / 60) % 60 h = int(int(S / 60) / 60) print('%d:%d:%d' % (h,m,s))
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
47
s=int(input()) print(f'{s/3600}:{s/60%60}:{s%60}')
s=int(input()) print(f'{s//3600}:{s//60%60}:{s%60}')
[["-", 3, 4, 0, 557, 0, 284, 205, 657, 17, 85], ["+", 3, 4, 0, 557, 0, 284, 205, 657, 17, 676], ["-", 0, 557, 0, 284, 205, 657, 31, 657, 17, 85], ["+", 0, 557, 0, 284, 205, 657, 31, 657, 17, 676]]
5
32
#coding: UTF-8 s=int(input()) h=int(s/3600) m=int((s%3600)/60) s=(s%3600)%60 print(h,':',m,':',s)
#coding: UTF-8 s=int(input()) h=int(s/3600) m=int((s%3600)/60) s=(s%3600)%60 print(h,':',m,':',s, sep='')
[["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655]]
5
54
n=int(input()) h=int(n/3600) m=int((n%3600)/60) s=n%60 print(str(h)+" "+str(m)+" "+str(s))
n=int(input()) h=int(n/3600) m=int((n%3600)/60) s=n%60 print(str(h)+":"+str(m)+":"+str(s))
[["-", 31, 657, 31, 657, 31, 657, 12, 557, 0, 6], ["+", 31, 657, 31, 657, 31, 657, 12, 557, 0, 6], ["-", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 657, 12, 557, 0, 6]]
5
58
sec = int(input()) tmp = [sec // 3600, (sec // 60) % 60, sec % 60] print(':'.join(tmp))
sec = int(input()) tmp = map(str, [sec // 3600, (sec // 60) % 60, sec % 60]) print(':'.join(tmp))
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
38
input_s = int(input()) h = input_s / 3600 rest_s = input_s % 3600 m = rest_s / 60 s = rest_s % 60 print('{}:{}:{}'.format(h, m, s))
input_s = int(input()) h = input_s // 3600 rest_s = input_s % 3600 m = rest_s // 60 s = rest_s % 60 print('{}:{}:{}'.format(h, m, s))
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]]
5
43
x = int(input()) print("{0}:{1}:{2}",format(x // 3600, x // 60 % 60, x % 60 ))
x = int(input()) print("{0}:{1}:{2}".format(x // 3600, x // 60 % 60, x % 60 ))
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 63, 319, 0, 131]]
5
31
S = int(input()) print(S//3600,(S%3600)//60,S//60,sep=':')
S = int(input()) print(S//3600,(S%3600)//60,S%60,sep=":")
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 676], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 109], ["-", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["-", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655]]
5
32
x = int(input()) s = x % 60 m = int(x / 60) h = int(m / 60) m = m % 60 print(h,":",m,":",s)
x = int(input()) s = x % 60 m = int(x / 60) h = int(m / 60) m = m % 60 print(h,":",m,":",s,sep='')
[["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655]]
5
50
S=int(input()) print(S//3600,S/60%60,S%60,sep=":")
S=int(input()) print(S//3600,S//60%60,S%60,sep=":")
[["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 85], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 676]]
5
30
large_second = int(input()) hour = large_second // 3600 minute = (large_second - hour *3600) //60 second = large_second % 60 print(hour,":",minute,":",second)
large_second = int(input()) hour = large_second // 3600 minute = (large_second - hour *3600) //60 second = large_second % 60 print(hour,":",minute,":",second,sep="")
[["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 654], ["+", 0, 652, 3, 4, 0, 653, 51, 557, 0, 655]]
5
45
S=int(input()) h=int(S/3600) m=int(S%3600/60) s=int(S%3600%60) print(f"{m}:{h}:{s}")
S=int(input()) h=int(S/3600) m=int(S%3600/60) s=int(S%3600%60) print(f"{h}:{m}:{s}")
[["-", 0, 652, 3, 4, 0, 557, 0, 284, 205, 22], ["+", 0, 652, 3, 4, 0, 557, 0, 284, 205, 22]]
5
52
S=int(input()) h=S/3600 m=S%3600/60 s=S%3600%60 print(f"{h}:{m}:{s}")
S=int(input()) h=S//3600 m=S%3600//60 s=S%3600%60 print(f"{h}:{m}:{s}")
[["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]]
5
43
seconds = int(input()) print(":".join([str(n) for n in [seconds//60//24,seconds//60%24, seconds%60]]))
seconds = int(input()) print(":".join([str(n) for n in [seconds//60//60,seconds//60%60, seconds%60]]))
[["-", 0, 658, 0, 659, 12, 634, 0, 657, 12, 612], ["+", 0, 658, 0, 659, 12, 634, 0, 657, 12, 612]]
5
44
t = input() h = t // 3600 m = (t % 3600) // 60 s = t % 60 print("%d:%d:%d" % (h, m, s))
t = int(input()) h = t // 3600 m = (t % 3600) // 60 s = t % 60 print("%d:%d:%d" % (h, m, s))
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
38