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 <stdio.h> int main() { int s; scanf("%d", &s); printf("%d:%d:%d\n", s / 3600, s / 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, 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
44
#include <cstdio> int main() { int in; int h = 0, m = 0, s = 0; scanf("%d", &in); while (in > 3600) { in -= 3600; h += 1; } while (in > 60) { in -= 60; m += 1; } printf("%d:%d:%d\n", h, m, s); }
#include <cstdio> int main() { int in; int h = 0, m = 0, s = 0; scanf("%d", &in); while (in >= 3600) { in -= 3600; h += 1; } while (in >= 60) { in -= 60; m += 1; } s = in; printf("%d:%d:%d\n", h, m, s); }
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
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 * h - 60 * m; cout << h << "," << m << "," << s << endl; }
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; m = S % 3600 / 60; s = S - 3600 * h - 60 * m; cout << h << ":" << m << ":" << s << 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
69
#include <iostream> int s; int main() { std::cin >> s; std::cout << s / 3600 << ":" << s / 60 << ":" << s % 60 << std::endl; return 0; }
#include <iostream> int s; int main() { std::cin >> s; std::cout << s / 3600 << ":" << (s % 3600) / 60 << ":" << s % 60 << std::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
48
#include <iostream> using namespace std; int main() { int s; cin >> s; int h = (int)s % 3600; int m = (int)s % 3600 / 60; s = (int)s % 3600 % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int s; cin >> s; int h = (int)s / 3600; int m = (int)s % 3600 / 60; s = (int)s % 3600 % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 109], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 85]]
1
73
#include <iostream> using namespace std; int main() { int S = 0, sec = 0, min = 0, hour = 0; cin >> S; sec = S % 60; min = ((S - sec) / 60) % 60; hour = S / 3600; cout << hour << ";" << min << ";" << sec << endl; }
#include <iostream> using namespace std; int main() { int S = 0, sec = 0, min = 0, hour = 0; cin >> S; sec = S % 60; min = ((S - sec) / 60) % 60; hour = S / 3600; 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
77
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; s = S % 3600; m = s / 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; s = S % 3600; m = s / 60; s = s % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85]]
1
72
#include <iostream> using namespace std; int main() { int h, m, s; cin >> h >> m >> 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 = s % 3600; m = s / 60; s = s % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
72
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; m = S / 60; s = S; 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, 11, 12, 16, 31, 16, 17, 109], ["+", 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
62
//============================================================================ // Name : sample1.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include <i...
//============================================================================ // Name : sample1.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include <i...
[["-", 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 s; cin >> s; int h = s / 360; s -= h * 3600; int m = s / 60; s -= m * 60; cout << h << ":" << m << ":" << s << endl; return 0; }
#include "iostream" using namespace std; int main() { int s; cin >> s; int h = s / 3600; s -= h * 3600; int m = s / 60; s -= m * 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
68
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { long a, b; long i, j, k; long cnt = 0; long left, right, mid; long ans = 0; static char str[102][1003]; char p[1003]; char tmp; long h, m, s; scanf("%ld", &s); h = s / 3600; s -= (s / 3600) * 3600; m = s...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { long a, b; long i, j, k; long cnt = 0; long left, right, mid; long ans = 0; static char str[102][1003]; char p[1003]; char tmp; long h, m, s; scanf("%ld", &s); h = s / 3600; s -= (s / 3600) * 3600; m = s...
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48]]
1
128
#include <iostream> using namespace std; int main() { int S; cin >> S; int h, m, s; h = S / 60 / 60; m = S / 60 % 60; s = S % 60; cout << h << "," << m << "," << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int S; cin >> S; int h, m, s; h = S / 60 / 60; m = S / 60 % 60; 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
69
#include <iostream> using namespace std; int main(void) { int x = 0; int h = 0, m = 0, s = 0; cin >> x; if (x >= 3600) { h = (int)(x / 3600); m = (int)((x % 3600) / 60); } else { m = (int)(x / 60); } s = x % 60; cout << h << "," << m << "," << s << endl; }
#include <iostream> using namespace std; int main(void) { int x = 0; int h = 0, m = 0, s = 0; cin >> x; if (x >= 3600) { h = (int)(x / 3600); m = (int)((x % 3600) / 60); } else { m = (int)(x / 60); } s = x % 60; cout << h << ":" << m << ":" << s << 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
107
#include <iostream> #include <stdio.h> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 360; S %= 360; m = S / 60; S %= 60; s = S; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <iostream> #include <stdio.h> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; S %= 3600; m = S / 60; S %= 60; s = S; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 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
72
#include <stdio.h> int main(void) { int s; scanf("%d", &s); printf("%d:%d:%d\n", s / 3600, s / 60, s % 60); }
#include <stdio.h> int main(void) { int s; scanf("%d", &s); printf("%d:%d:%d\n", s / 3600, s % 3600 / 60, s % 60); }
[["+", 0, 2, 3, 4, 0, 16, 31, 16, 17, 109], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13]]
1
42
#include <iostream> using namespace std; int main() { int S; cin >> S; int h = S / 60 / 60; int m = S % 60 / 60; int s = S % 60 % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int S; cin >> S; int h = S / 60 / 60; int m = S / 60 % 60; int s = S % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 0, 43, 49, 50, 51, 16, 31, 16, 17, 109], ["-", 0, 43, 49, 50, 51, 16, 31, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 109]]
1
67
#include <iostream> using namespace std; int main(void) { int S, h, m, s; cin >> S; h = S / 3600; m = S / 60; m = m % 60; s = S % 60; cout << h << ":" << m << ":" << h << endl; }
#include <iostream> using namespace std; int main(void) { int S, h, m, s; cin >> S; h = S / 3600; m = S / 60; m = m % 60; s = S % 60; cout << h << ":" << m << ":" << s << endl; }
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
68
#include <iostream> using namespace std; int main() { int x; cin >> x; cout << x / 3600 << ":" << x % 3600 / 60 << ":" << x % 3600 / 3600 << endl; return 0; }
#include <iostream> using namespace std; int main() { int x; cin >> x; cout << x / 3600 << ":" << x % 3600 / 60 << ":" << x % 3600 % 60 << endl; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 85], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
50
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; typedef complex<double> P; typedef pair<int, int> pii; #define REP(i, n) for (ll i = 0; i < n; ++i) #define REPR(i, n) for (ll i = 1; i < n; ++i) #define FOR(i, a, b) for (ll i = a; i < b; ++i) #define ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; typedef complex<double> P; typedef pair<int, int> pii; #define REP(i, n) for (ll i = 0; i < n; ++i) #define REPR(i, n) for (ll i = 1; i < n; ++i) #define FOR(i, a, b) for (ll i = a; i < b; ++i) #define ...
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 67], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109]]
1
168
#include <iostream> using namespace std; int main() { int S, T, U; cin >> S; T = S / 3600; U = S / 60 - 60 * T; cout << T << "h:" << U << "m:" << S % 60 << 's' << "\n"; return 0; }
#include <iostream> using namespace std; int main() { int S, T, U; cin >> S; T = S / 3600; U = S / 60 - 60 * T; cout << T << ":" << U << ":" << S % 60 << "\n"; 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], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
68
#include <stdio.h> int main(void) { unsigned int s; unsigned int m; unsigned int h; scanf("%d", &s); m = s / 60; h = m / 60; s = s % 60; printf("%d:%d:%d\n", h, m, s); }
#include <stdio.h> int main(void) { unsigned int s; unsigned int m; unsigned int h; scanf("%d", &s); m = s / 60; h = m / 60; m = m % 60; s = s % 60; printf("%d:%d:%d\n", h, m, s); }
[["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 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, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
63
#include <iostream> using namespace std; int main() { int i, h, m, s; cin >> i; h = i / (36000); m = (i - h * 3600) / 60; s = i % 60; cout << h << ":" << m << ":" << s << endl; }
#include <iostream> using namespace std; int main() { int i, h, m, s; cin >> i; h = i / (3600); m = (i - h * 3600) / 60; s = i % 60; cout << h << ":" << m << ":" << s << endl; }
[["-", 0, 1, 0, 11, 12, 16, 12, 23, 0, 13], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 13]]
1
69
#include <iomanip> #include <iostream> #include <math.h> #include <string> using namespace std; int main() { int S; cin >> S; cout << S / 3600 << " : " << S % 3600 / 60 << " : " << S % 60 << "\n"; }
#include <iomanip> #include <iostream> #include <math.h> #include <string> using namespace std; int main() { int S; cin >> S; cout << S / 3600 << ":" << S % 3600 / 60 << ":" << S % 60 << "\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
53
// Example program #include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int S; cin >> S; int h; int m; int s; int p; h = S / 3600; p = S % 60; m = p / 60; s = S - h * 3600 - m * 60; cout << h << ":" << m << ":" << s << endl; }
// Example program #include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int S; cin >> S; int h; int m; int s; int p; h = S / 3600; p = S % 3600; m = p / 60; s = S - h * 3600 - m * 60; cout << h << ":" << m << ":" << s << endl; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
84
#include <stdio.h> int main() { int s, h, m; scanf("%d", &s); h = s / 3600; s = s - h * 3600; m = s / 60; s = s - m * 60; printf("%d;%d;%d\n", h, m, s); return 0; }
#include <stdio.h> int main() { int s, h, m; scanf("%d", &s); h = s / 3600; s = s - h * 3600; m = s / 60; s = s - m * 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 <stdio.h> int main() { int h, m, s, S; scanf("%d", &S); h = S / 3600; m = (S - h * 3600) / 60; s = S - (h * 3600 + m * 60); printf("%d %d %d\n", h, m, s); return 0; }
#include <stdio.h> int main() { int h, m, s, S; scanf("%d", &S); h = S / 3600; m = (S - h * 3600) / 60; s = S - (h * 3600 + m * 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
76
#include <stdio.h> int main() { int a; scanf("%d", &a); int b, c, d; b = a / 3600; c = a % 3600 / 60; d = a % 3600 % 60; printf("%d,%d,%d\n", b, c, d); }
#include <stdio.h> int main() { int a; scanf("%d", &a); int b, c, d; b = a / 3600; c = a % 3600 / 60; d = a % 3600 % 60; printf("%d:%d:%d\n", b, c, d); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
64
#include <iostream> using namespace std; int main() { int S; int h, m, s; cin >> S; h = S / 3600; s = S % 3600; m = s / 60; s = m % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int S; 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; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22]]
1
71
#include <cstdio> int main() { int SS, h, m, s; scanf("%d", &SS); h = SS / 3600; m = SS % 3600 / 60; s = SS % 60; printf("%d:%d;%d\n", h, m, s); return 0; }
#include <cstdio> int main() { int SS, h, m, s; scanf("%d", &SS); h = SS / 3600; m = SS % 3600 / 60; s = SS % 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
64
#include <iostream> using namespace std; int main(void) { int S, h, m, s; // cin >> S; S = 46979; s = S / 60 / 60; m = S - (s * 3600); m = m / 60; h = S - (s * 3600) - (m * 60); cout << s << ":" << m << ":" << h << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int S, h, m, s; cin >> S; s = S / 60 / 60; m = S - (s * 3600); m = m / 60; h = S - (s * 3600) - (m * 60); cout << s << ":" << m << ":" << h << endl; return 0; }
[["+", 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, 11, 17, 32], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
1
88
#include <iostream> using namespace std; int main() { int a, b, c, d, e; cin >> a; b = a / 3600; c = a % 3600; d = c / 60; e = d % 60; cout << b << ":" << d << ":" << e << endl; }
#include <iostream> using namespace std; int main() { int a, b, c, d, e; cin >> a; b = a / 3600; c = a % 3600; d = c / 60; e = c % 60; cout << b << ":" << d << ":" << e << endl; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22]]
1
69
#include <iostream> using namespace std; int main() { int n, h, m, s; cin >> n; h = n / 3600; m = n % 3600 / 60; s = n % 3600 % 60; cout << h << ';' << m << ';' << s << endl; }
#include <iostream> using namespace std; int main() { int n, h, m, s; cin >> n; h = n / 3600; m = n % 3600 / 60; s = n % 3600 % 60; cout << h << ':' << m << ':' << s << endl; }
[["-", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125]]
1
65
#include <iostream> using namespace std; int main() { int base, h, m, s; cin >> base; h = base / 60 / 60; m = base / 60; s = base / 60 % 60; cout << h << ":" << m << ";" << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int base, h, m, s; cin >> base; h = base / 60 / 60; m = base / 60 % 60; s = base % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 85], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
68
#include <iostream> using namespace std; int main() { int h, m1, m2, s; int S; cin >> S; if (S >= 0 && S <= 86400) { h = S / 3600; m1 = S % 3600; m2 = m1 / 60; s = m1 % 60; cout << h << " " << m2 << " " << s << endl; } else { cout << "error" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int h, m1, m2, s; int S; cin >> S; if (S >= 0 && S <= 86400) { h = S / 3600; m1 = S % 3600; m2 = m1 / 60; s = m1 % 60; cout << h << ":" << m2 << ":" << s << endl; } else { cout << "error" << 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
96
#include <iostream> using namespace std; int main() { int s; int m; int h; cin >> s; m = s / 60; s = s % 60; h = m / 60; m = m % 60; cout << h << ":" << m << ":" << s << ":" << endl; }
#include <iostream> using namespace std; int main() { int s; int m; int h; cin >> s; m = s / 60; s = s % 60; h = m / 60; m = m % 60; cout << h << ":" << m << ":" << s << endl; }
[["-", 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
71
#include <stdio.h> int main() { int h, m, s; scanf("%d", &s); h = s / 3600; m = (s - h * 3600) / 60; s = s * 60; printf("%d:%d:%d\n", h, m, s); return 0; }
#include <stdio.h> int main() { int h, m, s; scanf("%d", &s); h = s / 3600; m = (s - h * 3600) / 60; s = s % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109]]
1
66
#include <iostream> using namespace std; int main() { int S; int h, m, s; cin >> S; h = S / 3600; m = (S - h * 3600) / 60; s = (S - h * 3600) % 60; cout << h << ":" << h << ":" << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int S; int h, m, s; cin >> S; h = S / 3600; m = (S - h * 3600) / 60; s = (S - h * 3600) % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22]]
1
77
#include <iostream> using namespace std; int main() { int time; int h, m; cin >> time; h = time / 3600; time = time % 3600; m = m / 60; time = time % 60; cout << h << ":" << m << ":" << time << endl; }
#include <iostream> using namespace std; int main() { int time; int h, m; cin >> time; h = time / 3600; time = time % 3600; m = time / 60; time = time % 60; cout << h << ":" << m << ":" << time << endl; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22]]
1
66
#include <stdio.h> int main() { int s; scanf("%d", &s); printf("%d:%d:%d\n", s / 3600, s / 60, s); return 0; }
#include <stdio.h> int main() { int s; scanf("%d", &s); printf("%d:%d:%d\n", s / 3600, s / 60 % 60, s % 60); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 109], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
42
#include <stdio.h> int main() { int S; scanf("%d\n", &S); int s = S % 60; int m = S % 3600 / 60; int h = S / 3600; printf("%d %d %d\n", s, m, h); return 0; }
#include <stdio.h> int main() { int S; scanf("%d\n", &S); int s = S % 60; int m = S % 3600 / 60; int h = S / 3600; 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], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]]
1
62
#include <stdio.h> int main() { int S; scanf("%d", &S); int s = S % 60; int m = S % 3600; int h = S / 3600; printf("%d:%d:%d", h, m, s); return 0; }
#include <stdio.h> int main() { int S; scanf("%d", &S); int s = S % 60; int m = S % 3600 / 60; int h = S / 3600; printf("%d:%d:%d\n", h, m, s); return 0; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 85], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
58
#include <stdio.h> main() { int s; int h, m, s0; scanf("%d", s); h = s / 3600; s = s - 3600 * h; m = s / 60; s0 = s - 60 * m; printf("%d:%d:%d\n", h, m, s0); return 0; }
#include <stdio.h> main() { int s; int h, m, s0; scanf("%d", &s); h = s / 3600; s = s - 3600 * h; m = s / 60; s0 = s - 60 * m; printf("%d:%d:%d\n", h, m, s0); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
1
71
#include <cmath> #include <iostream> using namespace std; int main(void) { int h, m, s; cin >> s; cin.ignore(); h = s / 3600; s -= 3600 * h; m = s / 60; s -= 60 * m; cout << h << " " << m << " " << s << endl; }
#include <cmath> #include <iostream> using namespace std; int main(void) { int h, m, s; cin >> s; cin.ignore(); h = s / 3600; s -= 3600 * h; m = s / 60; s -= 60 * m; cout << h << ":" << m << ":" << s << 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
74
#include <iostream> using namespace std; int main() { int InputS; int h, m, s; cin >> InputS; s = InputS % 60; m = InputS / 60 % 3600; h = InputS / 3600; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int InputS; int h, m, s; cin >> InputS; s = InputS % 60; m = InputS % 3600 / 60; h = InputS / 3600; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 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, 85], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
67
#include <stdio.h> int main() { int time, hour, min, sec, damy; scanf("%d", &time); hour = time / 3600; damy = time % 3600; min = damy / 60; sec = damy % 60; printf("%d %d %d\n", hour, min, sec); return 0; }
#include <stdio.h> int main() { int time, hour, min, sec, damy; scanf("%d", &time); hour = time / 3600; damy = time % 3600; min = damy / 60; sec = damy % 60; printf("%d:%d:%d\n", hour, min, sec); 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; main() { int s; int h = 0; int m = 0; cin >> s; while (s > 0) { if (s >= 3600) { ++h; s = s - 3600; } else if (s >= 60) { ++m; s = s - 60; } else break; } cout << h << ";" << m << ";" << s << endl; return 0; }
#include <iostream> using namespace std; main() { int s; int h = 0; int m = 0; cin >> s; while (s > 0) { if (s >= 3600) { ++h; s = s - 3600; } else if (s >= 60) { ++m; s = s - 60; } else break; } 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
95
#include <iostream> using namespace std; int main() { int x, h, m, s; cin >> x; h = x / 3600; m = (x - h) / 60; s = (x - h) % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int x, h, m, s; cin >> x; h = x / 3600; m = (x - h * 3600) / 60; s = (x - h * 3600) % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 48], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 12, 13]]
1
72
#include <stdio.h> int main(void) { int t, h, m, s; scanf("%d", &t); h = t / 60 / 60; m = (t % 60) / 60; s = (t % 60) % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
#include <stdio.h> int main(void) { int t, h, m, s; scanf("%d", &t); h = t / 60 / 60; m = (t / 60) % 60; s = (t % 60) % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
[["-", 0, 11, 12, 16, 31, 23, 0, 16, 17, 109], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 85], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109]]
1
73
#include <bits/stdc++.h> using namespace std; int main() { int a; scanf("%d", &a); printf("%d,", a / 3600); a = a % 3600; printf("%d,", a / 60); a = a % 60; printf("%d\n", a); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a; scanf("%d", &a); printf("%d:", a / 3600); a = a % 3600; printf("%d:", a / 60); a = a % 60; printf("%d\n", a); return 0; }
[["-", 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 time, h, m, s; cin >> time; h = time / 3600; m = (time - h * 3600) / 60; s = time - 3600 * h + 60 * m; cout << h << ":" << m << ":" << s << endl; }
#include <iostream> using namespace std; int main() { int time, h, m, s; cin >> time; h = time / 3600; m = (time - h * 3600) / 60; s = time - 3600 * h - 60 * m; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]]
1
73
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; s = S % 60; h = S / 3600; m = (S - s - h * 3600) / 60; cout << h << ";" << m << ";" << s << endl; }
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; s = S % 60; h = S / 3600; m = (S - h * 3600) / 60; cout << h << ":" << m << ":" << s << endl; }
[["-", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 17, 33], ["-", 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
69
#include <iostream> using namespace std; int main() { int a; cin >> a; cout << a / 3600 << ":"; a %= 3600; cout << a / 60 << ":"; a %= 60; cout << 60; return 0; }
#include <iostream> using namespace std; int main() { int a; cin >> a; cout << a / 3600 << ":"; a %= 3600; cout << a / 60 << ":"; a %= 60; cout << a << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
54
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 60 / 60; m = S / 60; s = S % 60; cout << h << ":" << m << ":" << s << "\n"; return 0; }
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 60 / 60; m = (S % 3600) / 60; s = S % 60; 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, 17, 109], ["+", 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, 16, 12, 5, 0, 62], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
68
#include <iostream> using namespace std; int main() { int h = 0, m = 0, s = 0; cin >> s; h = int(s / 3600); s -= h * 3600; m = int(s / 60); s -= s * 60; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <iostream> using namespace std; int main() { int h = 0, m = 0, s = 0; cin >> s; h = int(s / 3600); s -= h * 3600; m = int(s / 60); s -= m * 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, 31, 22]]
1
80
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; h = S / 3600; m = S / h; s = S % 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; }
[["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 109], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
64
#include <iostream> using namespace std; int main() { int h, m, s; cin >> s; h = s / 3600; m = (s % 3600) / 60; s = s % 60; cout << h << ":" << m << ":" << s << ":"; return 0; }
#include <iostream> using namespace std; int main() { int h, m, s; cin >> s; h = s / 3600; m = (s % 3600) / 60; s = s % 60; cout << h << ":" << m << ":" << s << endl; return 0; }
[["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
68
#include <stdio.h> int main() { int x, h, m, s; scanf("%d", x); h = x / 3600; m = x % 3600 / 60; s = x % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
#include <stdio.h> int main() { int x, h, m, s; scanf("%d", &x); h = x / 3600; m = x % 3600 / 60; s = x % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
1
63
#include <stdio.h> int main(void) { int S, 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; }
#include <stdio.h> int main(void) { int S, 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]]
1
67
#include <iostream> using namespace std; int main() { int n, h, m, s; cin >> n; h = n / 3600; m = (n - 3600 * h) / 60; s = n - 3600 * h - 60 * m; cout << n << ":" << m << ":" << h << endl; }
#include <iostream> using namespace std; int main() { int n, h, m, s; cin >> n; h = n / 3600; m = (n - 3600 * h) / 60; s = n - 3600 * h - 60 * m; cout << h << ":" << m << ":" << s << endl; }
[["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
73
#include <iostream> using namespace std; int main() { int h, m, s; int S = 3660; cin >> S >> h >> m >> s; cout << S / 3600 << " " << (S % 3600) / 60 << " " << (S % 3600) % 60; return 0; }
#include <iostream> using namespace std; int main() { int h, m, s; int S = 3660; cin >> S >> h >> m >> 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, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
67
#include <stdio.h> int main() { int time_S, h, m, s; scanf("%d", &time_S); h = time_S / 3600; m = time_S % 3600 % 60; s = time_S % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
#include <stdio.h> int main() { int time_S, h, m, s; scanf("%d", &time_S); h = time_S / 3600; m = time_S % 3600 / 60; s = time_S % 60; 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
64
#include <stdio.h> int main() { int S, h, m, s, S1, S2; scanf("%d", &S); if (S >= 3600) { h = S / 600; S1 = S % 600; } else { h = 0; S1 = S; } if (S1 >= 60) { m = S1 / 60; S2 = S1 % 60; } else { m = 0; S2 = S1; } s = S2 % 60; printf("%d:%d:%d\n", h, m, s); return 0;...
#include <stdio.h> int main() { int S, h, m, s, S1, S2; scanf("%d", &S); if (S >= 3600) { h = S / 3600; S1 = S % 3600; } else { h = 0; S1 = S; } if (S1 >= 60) { m = S1 / 60; S2 = S1 % 60; } else { m = 0; S2 = S1; } s = S2 % 60; printf("%d:%d:%d\n", h, m, s); return ...
[["-", 64, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 64, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
116
#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; }
#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; }
[["-", 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
65
#include <stdio.h> int main(void) { int x, h, m, s; scanf("%d", &x); h = x / 3600; m = (x - h * 3600) / 60; s = x % 3600; printf("%d:%d:%d\n", h, m, s); return 0; }
#include <stdio.h> int main(void) { int x, h, m, s; scanf("%d", &x); h = x / 3600; m = (x - h * 3600) / 60; s = x % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
69
#include <iostream> using namespace std; int main(int argc, char const *argv[]) { int s; cin >> s; int h, m; m = s / 60; h = m / 60; s %= 60; m % 60; cout << h << ':' << m << ':' << s << endl; return 0; }
#include <iostream> using namespace std; int main(int argc, char const *argv[]) { int s; cin >> s; int h, m; m = s / 60; h = m / 60; s %= 60; m %= 60; cout << h << ':' << m << ':' << s << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 109], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132]]
1
74
#include <iostream> using namespace std; int main() { int S, h, m, s; cin >> S; s = S % 60; m = ((S - s) / 60) % 60; h = (S - s - m * 60) % 3600; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int S, h, m, s; cin >> S; s = S % 60; m = ((S - s) / 60) % 60; h = (S - s - m * 60) / 3600; cout << h << ":" << m << ":" << s << endl; return 0; }
[["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85]]
1
80
#include <iostream> int main() { using namespace std; int firsts, h, m, s; cin >> firsts; cout << firsts / 3600 << ':' << firsts % 3600 / 60 << ':' << firsts % 3600 / 60 << endl; return 0; }
#include <iostream> int main() { using namespace std; int firsts, h, m, s; cin >> firsts; cout << firsts / 3600 << ':' << firsts % 3600 / 60 << ':' << firsts % 3600 % 60 << endl; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 85], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109]]
1
56
#include <iostream> using namespace std; int main() { int a; cin >> a; cout << a / 3600 << ":" << a / 60 << ":" << a % 60 << endl; return 0; }
#include <iostream> using namespace std; int main() { int a; cin >> a; cout << a / 3600 << ":" << a / 60 % 60 << ":" << a % 60 << endl; return 0; }
[["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 109], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13]]
1
46
// include<studio.h> #include <iostream> using namespace std; int main() { int a = 0; std::cin >> a; int h = a / 3600; int min = (a % 3600) / 60; int un = a % 60; cout << h << " " << min << " " << un; return 0; }
// include<studio.h> #include <iostream> using namespace std; int main() { int a = 0; std::cin >> a; int h = a / 3600; int min = (a % 3600) / 60; int un = a % 60; cout << h << ":" << min << ":" << un << endl; return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
68
#include <cstdio> using namespace std; int main() { int a, hour, b, minute, second; scanf("%d", &a); hour = a / 3600; b = a % 3600; minute = b / 60; second = b % 60; printf("%d %d %d\n", hour, minute, second); return 0; }
#include <cstdio> using namespace std; int main() { int a, hour, b, minute, second; scanf("%d", &a); hour = a / 3600; b = a % 3600; minute = b / 60; second = b % 60; printf("%d:%d:%d\n", hour, minute, second); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
74
#include <stdio.h> int main() { int i, n, h = 0, m = 0, s = 0; scanf("%d", &i); while (i / 3600) { h++; i -= 3600; } while (i / 60) { m++; i -= 60; } printf("%2d:%2d:%2d\n", h, m, i); }
#include <stdio.h> int main() { int i, n, h = 0, m = 0, s = 0; scanf("%d", &i); while (i / 3600) { h++; i -= 3600; } while (i / 60) { m++; i -= 60; } printf("%d:%d:%d\n", h, m, i); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
79
#include <iostream> using namespace std; int main(void) { int S, h, m, s; cin >> S; h = S / 3600; S = S % 3600; m = S / 60; S = S % 60; s = S; cout << h << "," << m << "," << s << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int S, h, m, s; cin >> S; h = S / 3600; S = S % 3600; m = S / 60; S = S % 60; s = S; 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
75
#include <iostream> using namespace std; // int main(int argc, const char * argv[]) { int main() { int a; cin >> a; int hours, minutes, seconds; hours = a / 3600; minutes = (a - hours * 3600) / 60; seconds = a - hours * 3600 - minutes * 60; cout << hours << " : " << minutes << " : " << seconds << endl;...
#include <iostream> using namespace std; // int main(int argc, const char * argv[]) { int main() { int a; cin >> a; int hours, minutes, seconds; hours = a / 3600; minutes = (a - hours * 3600) / 60; seconds = a - hours * 3600 - minutes * 60; cout << hours << ":" << minutes << ":" << seconds << 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
78
#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; }
#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; }
[["-", 0, 11, 12, 16, 31, 23, 0, 16, 17, 85], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 109]]
1
68
#include <iostream> using namespace std; int main() { int S, m, s; cin >> S; s = S % 60; S /= 60; m = S % 60; S /= 60; cout << S << ':' << m << ':' << endl; return 0; }
#include <iostream> using namespace std; int main() { int S, m, s; cin >> S; s = S % 60; S /= 60; m = S % 60; S /= 60; cout << S << ':' << m << ':' << s << endl; return 0; }
[["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
62
#include <iostream> using namespace std; int main() { int x; cout << x / 3600 << ":"; x %= 3600; cout << x / 60 << ":"; cout << x % 60 << endl; }
#include <iostream> using namespace std; int main() { int x; cin >> x; cout << x / 3600 << ":"; x %= 3600; cout << x / 60 << ":"; cout << x % 60 << endl; }
[["+", 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], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
47
#include <iostream> using namespace std; int main(void) { int x{}; cin >> x; cout << x / 3600 << ':' << x / 60 << ':' << x % 60 << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int x{}; cin >> x; cout << x / 3600 << ':' << (x % 3600) / 60 << ':' << x % 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
49
#include <iostream> using namespace std; int main() { int s; cin >> s; cout << s / 3600 << " " << (s % 3600) / 60 << " " << (s % 3600) - (s % 3600) / 60 * 60 << endl; return 0; }
#include <iostream> using namespace std; int main() { int s; cin >> s; cout << s / 3600 << ":" << (s % 3600) / 60 << ":" << (s % 3600) - (s % 3600) / 60 * 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
62
// I wanna be the guy. #include <bits/stdc++.h> using namespace std; int main() { int x, h, m, s, temp; cin >> x; temp = x % 3600; h = (x - temp) / 3600; s = temp % 60; m = (temp - s) / 60; cout << ":" << h << ":" << m << ":" << s << endl; }
// I wanna be the guy. #include <bits/stdc++.h> using namespace std; int main() { int x, h, m, s, temp; cin >> x; temp = x % 3600; h = (x - temp) / 3600; s = temp % 60; m = (temp - s) / 60; cout << h << ":" << m << ":" << s << endl; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 151]]
1
82
#include <iostream> using namespace std; int main() { int S; cin >> S; int 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; cin >> S; int h = S / 3600, m = S % 3600 / 60, s = S % 3600 % 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> using namespace std; int main() { int S; cin >> S; cout << S / 3600 << ":" << (S % 3600) / 60 << ":" << S / 60 << endl; return 0; }
#include <iostream> using namespace std; int main() { int S; cin >> S; cout << S / 3600 << ":" << (S % 3600) / 60 << ":" << S % 60 << endl; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 85], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109]]
1
50
#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
54
#include <bits/stdc++.h> using namespace std; int main(int argc, char const *argv[]) { int S; cin >> S; int h, m, s; h = s / 3600; m = (s - 3600 * h) / 60; s = s - 3600 * h - 60 * m; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main(int argc, char const *argv[]) { int S; cin >> S; int h, m, s; h = S / 3600; m = (S - 3600 * h) / 60; s = S - 3600 * h - 60 * m; 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, 31, 22], ["-", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 31, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22]]
1
86
#include <iostream> int main() { int t, h, m, s; std::cin >> t; h = t / 3600; m = (t - 3600 * h) / 60; s = (t - 60 * m); std::cout << h << ":" << m << ":" << s << std::endl; return 0; }
#include <iostream> int main() { int t, h, m, s; std::cin >> t; h = t / 3600; m = (t - 3600 * h) / 60; s = (t - 3600 * h - 60 * m); std::cout << h << ":" << m << ":" << s << std::endl; return 0; }
[["+", 12, 23, 0, 16, 31, 16, 12, 16, 31, 13], ["+", 12, 23, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 12, 23, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 23, 0, 16, 17, 33]]
1
76
#include <iostream> using namespace std; int main(void) { int h, m, s, S; cin >> S; h = S / (60 * 60); m = S % 60; s = S % (60 * 60); cout << h; cout << ":"; cout << m; cout << ":"; cout << s; cout << endl; }
#include <iostream> using namespace std; int main(void) { int h, m, s, S; cin >> S; h = S / (60 * 60); m = (S / 60) % 60; s = S % (60); cout << h; cout << ":"; cout << m; cout << ":"; cout << s; cout << endl; }
[["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 17, 85], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 31, 13], ["-", 0, 11, 12, 16, 12, 23, 0, 16, 17, 48]]
1
80
#include <cstdio> #include <iostream> using namespace std; int main(void) { int S, h, m, s; cin >> S >> h >> m >> s; h = S / 3600; m = S % 3600 / 60; s = S % 3600 % 60; cout << h; cout << ":"; cout << m; cout << ":"; cout << s; cout << ":"; cout << endl; }
#include <cstdio> #include <iostream> using namespace std; int main(void) { int S, h, m, s; cin >> S >> h >> m >> s; h = S / 3600; m = S % 3600 / 60; s = S % 3600 % 60; cout << h; cout << ":"; cout << m; cout << ":"; cout << s; cout << endl; }
[["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151]]
1
90
#include <iostream> using namespace std; int main(void) { int S, h, m, s; cin >> S; h = S / 3600; m = (S % 3600) / 60; s = m % 60; cout << h; cout << ":"; cout << m; cout << ":"; cout << s; cout << endl; }
#include <iostream> using namespace std; int main(void) { int S, h, m, s; cin >> S; h = S / 3600; m = (S % 3600) / 60; s = (S % 3600) % 60; cout << h; cout << ":"; cout << m; cout << ":"; cout << s; cout << endl; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 11, 12, 16, 31, 23, 0, 16, 31, 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, 23, 0, 25]]
1
76
#include <cstdio> #include <iostream> using namespace std; int main(void) { int S, h, m, s; cin >> S; h = S / 3600; m = (S - (h * 3600)) / 360; s = S - (h * 3600 + m * 360); cout << h; cout << ":"; cout << m; cout << ":"; cout << s; cout << endl; }
#include <cstdio> #include <iostream> using namespace std; int main(void) { int S, h, m, s; cin >> S; h = S / 3600; m = (S - (h * 3600)) / 60; s = S - (h * 3600 + m * 60); cout << h; cout << ":"; cout << m; cout << ":"; cout << s; cout << endl; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["-", 12, 16, 12, 23, 0, 16, 12, 16, 12, 13], ["+", 12, 16, 12, 23, 0, 16, 12, 16, 12, 13]]
1
90
#include <cmath> #include <iomanip> #include <iostream> #define ll long long int using namespace std; void solve(); int main() { solve(); return 0; } void solve() { ll in; ll h, m, s; char c = ':'; cin >> in; h = in / 3600; m = in / 60; s = in % 60; cout << h << c << m << c << s << endl; }
#include <cmath> #include <iomanip> #include <iostream> #define ll long long int using namespace std; void solve(); int main() { solve(); return 0; } void solve() { ll in; ll h, m, s; char c = ':'; cin >> in; h = in / 3600; m = (in / 60) % 60; s = in % 60; cout << h << c << m << c << s << e...
[["+", 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
90
#include <bits/stdc++.h> using namespace std; int main() { int S; cin >> S; int h = S / 3600; int m = (S - h * 3600) / 60; int s = S - h * 3600 - m * 60; cout << h << " : " << m << " : " << s << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int S; cin >> S; int h = S / 3600; int m = (S - h * 3600) / 60; int s = S - h * 3600 - m * 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
73
#include <iostream> using namespace std; int main(void) { int h, m, s; cin >> s; h = s / 3600; s %= 3600; m = s / 60; s %= 62; cout << h << ":" << m << ":" << s << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int h, m, s; 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, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
1
65
#include <iostream> using namespace std; int main() { int s, h, m; cin >> s >> m >> h; cout << s / 3600 << "" << (s % 3600) / 60 << "" << (s % 60) / 60 << endl; return 0; }
#include <iostream> using namespace std; int main() { int s, h, m; cin >> s >> m >> h; cout << s / 3600 << ":" << (s % 3600) / 60 << ":" << (s % 60) << endl; return 0; }
[["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 85], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
60
#include <stdio.h> int main(void) { int S; scanf("%d", &S); printf("%d:%d:%d\n", S / 360, (S % 3600) / 60, (S % 3600) % 60); return 0; }
#include <stdio.h> int main(void) { int S; 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, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
53
#include <iostream> using namespace std; int main() { int k; cin >> k; cout << k / 3600 << ' ' << k % 3600 / 60 << ' ' << k % 60 << endl; }
#include <iostream> using namespace std; int main() { int k; cin >> k; cout << k / 3600 << ':' << k % 3600 / 60 << ':' << k % 60 << endl; }
[["-", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125]]
1
45
#include <iostream> using namespace std; int main() { int S; cin >> S; int h, m, s; h = S % 3600; m = (S - h * 3600) % 60; s = S - h * 3600 - 60 * m; cout << h << ":" << m << ":" << s << endl; }
#include <iostream> using namespace std; int main() { int S; cin >> S; int h, m, s; h = S / 3600; m = (S - h * 3600) / 60; s = S - h * 3600 - 60 * m; cout << h << ":" << m << ":" << s << endl; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85]]
1
74
#include <cmath> #include <iostream> #include <string> int main(int, char **) { int time = 0; std::cin >> time; std::cout << (time / 3600) << " " << ((time % 3600) / 60) << " " << (time % 60) << std::endl; }
#include <cmath> #include <iostream> #include <string> int main(int, char **) { int time = 0; std::cin >> time; std::cout << (time / 3600) << ":" << ((time % 3600) / 60) << ":" << (time % 60) << std::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
66
#include <iostream> using namespace std; int main() { int a; cin >> a; cout << a / 3600 << ":" << a % 3600 / 20 << ":" << a % 60 << endl; return 0; }
#include <iostream> using namespace std; int main() { int a; cin >> a; cout << a / 3600 << ":" << a % 3600 / 60 << ":" << a % 60 << endl; return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13]]
1
48
#include <bits/stdc++.h> using namespace std; int main() { int s; cin >> s; cout << s / 3600 << ":" << (s / 60) % 60 << ":" << s % 3600 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int s; cin >> s; cout << s / 3600 << ":" << s / 60 % 60 << ":" << s % 3600 % 60 << endl; }
[["-", 31, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["-", 31, 16, 31, 16, 12, 16, 31, 23, 0, 25], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
47
#include <stdio.h> int main() { int S, 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 <stdio.h> int main() { int S, 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
65