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 <iostream> using namespace std; int main() { int m, f, r; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 && f == -1) cout << "F" << endl; else if (m + f >= 80) cout << "A" << endl; else if (m + f >= 60) cout << "B" << endl...
#include <iostream> using namespace std; int main() { int m, f, r; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << "F" << endl; else if (m + f >= 80) cout << "A" << endl; else if (m + f >= 65) cout << "B" << endl...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]]
1
168
#include <iostream> using namespace std; int main() { int m, f, r, score; while (true) { cin >> m >> f >> r; score = m + f; if (score < 0 && r == -1) break; else if (m == -1 || f == -1 || score < 30) cout << "F\n"; if (score >= 80) cout << "A\n"; else if (score >= 65 && ...
#include <iostream> using namespace std; int main() { int m, f, r, score; while (true) { cin >> m >> f >> r; score = m + f; if (score < 0 && r == -1) break; else if (m == -1 || f == -1 || score < 30) cout << "F\n"; else if (score >= 80) cout << "A\n"; else if (score >= 6...
[["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
1
161
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; int main(int argc, char *argv[]) { int m, f, r; int score; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) printf("F\n"); score = m + f; if (score <...
#include <algorithm> #include <cstdio> #include <iostream> using namespace std; int main(int argc, char *argv[]) { int m, f, r; int score; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) { printf("F\n"); continue; } score ...
[["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46]]
1
184
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <ctype.h> #include <iostream> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(x) (x).begin(), (x).end() #define square(x) (x) * (x) const int INF = 1e9; using namespace std; int main() { os...
#include <algorithm> #include <bits/stdc++.h> #include <cmath> #include <ctype.h> #include <iostream> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(x) (x).begin(), (x).end() #define square(x) (x) * (x) const int INF = 1e9; using namespace std; int main() { os...
[["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 35]]
1
219
#include <iostream> #include <stdio.h> #include <string.h> using namespace std; int main() { int chukan, kimatsu, saishi; while (cin >> chukan >> kimatsu >> saishi) { if (chukan == -1 && kimatsu == -1 && saishi == -1) break; if (chukan == -1 || kimatsu == -1 || chukan + kimatsu < 30) { cout << "...
#include <iostream> #include <stdio.h> #include <string.h> using namespace std; int main() { int chukan, kimatsu, saishi; while (cin >> chukan >> kimatsu >> saishi) { if (chukan == -1 && kimatsu == -1 && saishi == -1) break; if (chukan == -1 || kimatsu == -1 || chukan + kimatsu < 30) { cout << "...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
191
#include <iostream> using namespace std; int main(void) { int m, f, r; while (cin >> m >> f >> r && !(m == -1 && f == -1 && r == -1)) { int total_mf; if (m == -1 || f == -1) cout << "F" << endl; total_mf = m + f; if (total_mf >= 80) cout << "A" << endl; if (65 <= total_mf && total_m...
#include <iostream> using namespace std; int main(void) { int m, f, r; while (cin >> m >> f >> r && !(m == -1 && f == -1 && r == -1)) { int total_mf; if (m == -1 || f == -1) cout << "F" << endl; else { total_mf = m + f; if (total_mf >= 80) cout << "A" << endl; if (65 <= ...
[["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
1
176
#include <iostream> #include <vector> using namespace std; int main() { int m, f, r; vector<char> g(0); for (int i = 0;; i++) { g.push_back(0); cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if ((m == -1 || f == -1) || m + f < 30) g[i] = 'F'; if ((m + f >= 30 && m +...
#include <iostream> #include <vector> using namespace std; int main() { int m, f, r; vector<char> g(0); for (int i = 0;; i++) { g.push_back(0); cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if ((m == -1 || f == -1) || m + f < 30) g[i] = 'F'; else if ((m + f >= 30 &...
[["+", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
1
251
#include <stdio.h> int main(void) { int m, f, r, sum; for (;;) { scanf("%d %d %d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) { break; } sum = m + f; if (m == -1 || f == -1) { printf("F\n"); } else { if (sum >= 80) { printf("A\n"); } if (sum >= ...
#include <stdio.h> int main(void) { int m, f, r, sum; for (;;) { scanf("%d %d %d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) { break; } sum = m + f; if (m == -1 || f == -1) { printf("F\n"); } else { if (sum >= 80) { printf("A\n"); } if (sum >= ...
[["+", 0, 57, 64, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
198
#include <iostream> using namespace std; int main() { int m, f, u; do { cin >> m >> f >> u; if (!((m == -1) && (f == -1) && (u == -1))) { if (m == -1 || f == -1) { cout << 'F' << endl; continue; } if ((m + f) >= 80) { cout << 'A' << endl; continue; } ...
#include <iostream> using namespace std; int main() { int m, f, u; do { cin >> m >> f >> u; if (!((m == -1) && (f == -1) && (u == -1))) { if (m == -1 || f == -1) { cout << 'F' << endl; continue; } if ((m + f) >= 80) { cout << 'A' << endl; continue; } ...
[["-", 64, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
215
#include <iostream> #include <vector> using namespace std; int main() { int m, r, f = 0; vector<char> score; int i = 0; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) score.push_back('F'); if ((m + f) >= 80) { score.push_bac...
#include <iostream> #include <vector> using namespace std; int main() { int m, r, f = 0; vector<char> score; int i = 0; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) { score.push_back('F'); } else if ((m + f) >= 80) { score...
[["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95]]
1
264
// clang-format off #include <bits/stdc++.h> using namespace std; #define int long long #define main signed main() #define loop(i, a, n) for (int i = (a); i < (n); i++) #define rep(i, n) loop(i, 0, n) #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() #define prec(n) fixed << setprecision(n)...
// clang-format off #include <bits/stdc++.h> using namespace std; #define int long long #define main signed main() #define loop(i, a, n) for (int i = (a); i < (n); i++) #define rep(i, n) loop(i, 0, n) #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() #define prec(n) fixed << setprecision(n)...
[["-", 31, 16, 12, 23, 0, 41, 75, 103, 0, 125], ["+", 31, 16, 12, 23, 0, 41, 75, 103, 0, 125]]
1
762
#include <bits/stdc++.h> using namespace std; int main() { int m, f, r; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << "F" << endl; if (80 <= m + f) cout << "A" << endl; if (65 <= m + f && m + f < 80) cout << "B...
#include <bits/stdc++.h> using namespace std; int main() { int m, f, r; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; else if (m == -1 || f == -1) cout << "F" << endl; else if (80 <= m + f) cout << "A" << endl; else if (65 <= m + f && m + f < 80) ...
[["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
1
185
#include <bits/stdc++.h> using namespace std; int main() { while (1) { int m, f, r, mf; string result; cin >> m >> f >> r; mf = m + f; if (m == -1 && f == -1 && r == -1) break; if ((m == -1 || f == -1) || (mf < 30)) { result = "F"; } else if ((50 <= mf && mf < 65) || (30 <= mf ...
#include <bits/stdc++.h> using namespace std; int main() { while (1) { int m, f, r, mf; string result; cin >> m >> f >> r; mf = m + f; if (m == -1 && f == -1 && r == -1) break; if ((m == -1 || f == -1) || (mf < 30)) { result = "F"; } else if ((50 <= mf && mf < 65) || (30 <= mf ...
[["-", 51, 16, 12, 23, 0, 16, 12, 16, 17, 18], ["+", 51, 16, 12, 23, 0, 16, 12, 16, 17, 20]]
1
180
#include <bits/stdc++.h> using namespace std; int main() { int a[50][3], b[50], num; char c[50]; for (int i = 0; i < 50; i++) { cin >> a[i][0] >> a[i][1] >> a[i][2]; if (a[i][0] == -1 && a[i][1] == -1 && a[i][2] == -1) break; b[i] = a[i][0] + a[i][1]; if (a[i][0] == -1 || a[i][1] == -1) ...
#include <bits/stdc++.h> using namespace std; int main() { int a[50][3], b[50], num; char c[50]; for (int i = 0; i < 50; i++) { cin >> a[i][0] >> a[i][1] >> a[i][2]; if (a[i][0] == -1 && a[i][1] == -1 && a[i][2] == -1) break; b[i] = a[i][0] + a[i][1]; if (a[i][0] == -1 || a[i][1] == -1) ...
[["+", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95]]
1
279
#include <algorithm> #include <iostream> using namespace std; int main() { int a, b, c, i, j, p = 0; char x[50]; for (i = 0; i < 50; i++) { cin >> a >> b >> c; if (a == -1 && b == -1 && c == -1) { break; } p++; if (a == -1 || b == -1 || a + b < 30) { x[i] = 'F'; } else if (a + ...
#include <algorithm> #include <iostream> using namespace std; int main() { int a, b, c, i, j, p = 0; char x[50]; for (i = 0; i < 50; i++) { cin >> a >> b >> c; if (a == -1 && b == -1 && c == -1) { break; } p++; if (a == -1 || b == -1 || a + b < 30) { x[i] = 'F'; } else if (a + ...
[["-", 64, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
263
#include <bits/stdc++.h> using namespace std; int main() { int m, f, r; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << "F" << endl; if (m + f >= 80) cout << "A" << endl; else if (m + f >= 65 && m + f < 80) cout <<...
#include <bits/stdc++.h> using namespace std; int main() { int m, f, r; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; else if (m == -1 || f == -1) cout << "F" << endl; else if (m + f >= 80) cout << "A" << endl; else if (m + f >= 65 && m + f < 80) ...
[["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
1
189
#include <stdio.h> int main() { int m, f, r; while (1) { scanf("%d%d%d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) { break; } if (m == -1 && f == -1) { printf("F\n"); } else if (m + f >= 80) { printf("A\n"); } else if (m + f >= 65 && m + f < 80) { printf("B\n");...
#include <stdio.h> int main() { int m, f, r; while (1) { scanf("%d%d%d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) { break; } if (m == -1 || f == -1) { printf("F\n"); } else if (m + f >= 80) { printf("A\n"); } else if (m + f >= 65 && m + f < 80) { printf("B\n");...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]]
1
210
#include <iostream> #include <vector> using namespace std; int main(void) { int m, f, r; while (cin >> m >> f >> r && (m != -1 && f != -1 && r != -1)) { int mf(m + f); if (m == -1 || f == -1) cout << "F"; else if (mf >= 80) cout << "A"; else if (mf >= 65) cout << "B"; else if...
#include <iostream> #include <vector> using namespace std; int main(void) { int m, f, r; while (cin >> m >> f >> r && !(m == -1 && f == -1 && r == -1)) { int mf(m + f); if (m == -1 || f == -1) cout << "F"; else if (mf >= 80) cout << "A"; else if (mf >= 65) cout << "B"; else i...
[["+", 0, 52, 15, 339, 51, 16, 12, 91, 17, 111], ["-", 12, 23, 0, 16, 31, 16, 31, 16, 17, 79], ["+", 28, 23, 0, 16, 31, 16, 31, 16, 17, 60], ["-", 12, 23, 0, 16, 31, 16, 12, 16, 17, 79], ["+", 28, 23, 0, 16, 31, 16, 12, 16, 17, 60], ["-", 51, 16, 12, 23, 0, 16, 12, 16, 17, 79], ["+", 12, 91, 28, 23, 0, 16, 12, 16, 17, ...
1
151
#include <bits/stdc++.h> using namespace std; int main() { while (1) { int m, f, r; string am; cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) am = "F"; else if (m + f < 30) am == "F"; else if (m + f < 50 && r >= 50) am == "C"...
#include <bits/stdc++.h> using namespace std; int main() { while (1) { int m, f, r; string am; cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) am = "F"; else if (m + f < 30) am = "F"; else if (m + f < 50 && r >= 50) am = "C"; ...
[["-", 75, 76, 0, 57, 64, 1, 0, 16, 17, 60], ["+", 75, 76, 0, 57, 64, 1, 0, 11, 17, 32], ["-", 75, 76, 0, 9, 0, 1, 0, 16, 17, 60], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 32]]
1
162
// itp1_topic7_a #include <bits/stdc++.h> using namespace std; int main() { while (1) { int m, f, r; cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; string gread; if (m == -1 || f == -1) gread = "F"; else if (m + f >= 80) gread = "A"; else if (m + f >= 65)...
// itp1_topic7_a #include <bits/stdc++.h> using namespace std; int main() { while (1) { int m, f, r; cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; string gread; if (m == -1 || f == -1) gread = "F"; else if (m + f >= 80) gread = "A"; else if (m + f >= 65)...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]]
1
158
#include <iostream> #include <math.h> #include <stdint.h> #include <stdio.h> using namespace std; int main() { int m, f, r, x; do { cin >> m >> f >> r; x = m + f; if (m == -1 && f == -1 && r == -1) break; else if (m == -1 || f == -1) { cout << 'F' << "\n"; } else if (x >= 80) { ...
#include <iostream> #include <math.h> #include <stdint.h> #include <stdio.h> using namespace std; int main() { int m, f, r, x; do { cin >> m >> f >> r; x = m + f; if (m == -1 && f == -1 && r == -1) break; else if (m == -1 || f == -1) { cout << 'F' << "\n"; } else if (x >= 80) { ...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19]]
1
233
/* * itikara.cpp * * Created on: 2018/05/30 * Author: J01003 */ #include <iostream> #include <stdio.h> using namespace std; int main() { int m, f, r; while (1) { while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) { return 0; }; if (m == 0 && f == 0) { ...
/* * itikara.cpp * * Created on: 2018/05/30 * Author: J01003 */ #include <iostream> #include <stdio.h> using namespace std; int main() { int m, f, r; while (1) { while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) { return 0; }; if (m == 0 && f == 0) { ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]]
1
271
#include <iostream> using namespace std; int main() { int a, b, c; for (;;) { cin >> a >> b >> c; if (a == -1 && b == -1 && c == -1) break; else { if (a >= 0 || b >= 0) { if (a + b >= 80) cout << "A" << endl; else if (a + b >= 65) cout << "B" << endl; ...
#include <iostream> using namespace std; int main() { int a, b, c; for (;;) { cin >> a >> b >> c; if (a == -1 && b == -1 && c == -1) break; else { if (a >= 0 && b >= 0) { if (a + b >= 80) cout << "A" << endl; else if (a + b >= 65) cout << "B" << endl; ...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
170
#include <bits/stdc++.h> #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) #define RREP(i, n) for (int i = (n)-1; (i) >= 0; --i) #define SZ(n) (int)(n).size() #define ALL(n) (n).begin(), (n).end() #define MOD LL(1e9 + 7) #define INF 1000000 using namespace std; using LL = long long; i...
#include <bits/stdc++.h> #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) #define RREP(i, n) for (int i = (n)-1; (i) >= 0; --i) #define SZ(n) (int)(n).size() #define ALL(n) (n).begin(), (n).end() #define MOD LL(1e9 + 7) #define INF 1000000 using namespace std; using LL = long long; i...
[["-", 64, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
233
#include <iostream> using namespace std; #define A 80 #define B 65 #define C 50 #define D 30 int main() { int m, f, r; while (1) { cin >> m >> f >> r; if ((m == -1) && (f == -1) && (r == -1)) break; if ((m == -1) && (f == -1)) cout << 'F' << endl; if ((m + f) >= A) cout << 'A' <<...
#include <iostream> using namespace std; #define A 80 #define B 65 #define C 50 #define D 30 int main() { int m, f, r; while (1) { cin >> m >> f >> r; if ((m == -1) && (f == -1) && (r == -1)) break; if ((m == -1) || (f == -1)) { cout << 'F' << endl; continue; } if ((m + f) >=...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46]]
1
229
#include <iostream> int main() { int m, f, r; char grade; while (1) { std::cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) grade = 'F'; if (m + f >= 80) grade = 'A'; else if (m + f >= 65) grade = 'B'; else if (m + f >= 50) ...
#include <iostream> int main() { int m, f, r; char grade; while (1) { std::cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) grade = 'F'; else if (m + f >= 80) grade = 'A'; else if (m + f >= 65) grade = 'B'; else if (m + f >= 50)...
[["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95]]
1
160
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <fstream> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #includ...
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <fstream> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #includ...
[["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 64, 9, 0, 45], ["+", 0, 57, 75, 76, 0, 57, 64, 9, 0, 46]]
1
248
#include <iostream> //#include <string> //#include <iomanip> using namespace std; //#define int main() { int tyukan, kimatu, saisi; while (1) { cin >> tyukan >> kimatu >> saisi; if (tyukan == -1 && kimatu == -1 && saisi == -1) { break; } int total = tyukan + kimatu; if (tyukan == -1 | ...
#include <iostream> //#include <string> //#include <iomanip> using namespace std; //#define int main() { int tyukan, kimatu, saisi; while (1) { cin >> tyukan >> kimatu >> saisi; if (tyukan == -1 && kimatu == -1 && saisi == -1) { break; } int total = tyukan + kimatu; if (tyukan == -1 | ...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]]
1
175
#include <iostream> using namespace std; int m, f, r; int main() { while (true) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == 0 || f == 0) cout << "F" << endl; else if (m + f >= 80) cout << "A" << endl; else if (m + f >= 65) cout << "B" << endl; ...
#include <iostream> using namespace std; int m, f, r; int main() { while (true) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << "F" << endl; else if (m + f >= 80) cout << "A" << endl; else if (m + f >= 65) cout << "B" << endl...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
161
#include <iostream> using namespace std; int main() { int m, f, r, sum; while (1) { sum = 0; cin >> m >> f >> r; sum = m + f; if (m == -1 && f == -1 && r == -1) break; else { if (m <= 0 || f <= 0 || sum < 30) { cout << "F" << endl; } else if (30 <= sum && sum < 50) { ...
#include <iostream> using namespace std; int main() { int m, f, r, sum; while (1) { sum = 0; cin >> m >> f >> r; sum = m + f; if (m == -1 && f == -1 && r == -1) break; else { if (m < 0 || f < 0 || sum < 30) { cout << "F" << endl; } else if (30 <= sum && sum < 50) { ...
[["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 19], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 18], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 18]]
1
190
#include <iostream> #include <math.h> #include <stdio.h> #include <string> #include <vector> #define CI cin >> #define CO cout << #define E << endl; #define F(i, max) (for (int i = 0; i < max; ++i)) using namespace std; int main(void) { int m[10000]; int f[10000]; int r[10000]; char result[10000]; for (i...
#include <iostream> #include <math.h> #include <stdio.h> #include <string> #include <vector> #define CI cin >> #define CO cout << #define E << endl; #define F(i, max) (for (int i = 0; i < max; ++i)) using namespace std; int main(void) { int m[10000]; int f[10000]; int r[10000]; char result[10000]; for (i...
[["+", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 75, 76, 0, 9, 0, 57, 64, 9, 0, 46]]
1
392
#include <iostream> using namespace std; int main() { long m, f, r; while (cin) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << "F" << endl; if (m + f >= 80) cout << "A" << endl; else if (m + f >= 65 && m + f < 80) cout << ...
#include <iostream> using namespace std; int main() { long m, f, r; while (cin) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << "F" << endl; else if (m + f >= 80) cout << "A" << endl; else if (m + f >= 65 && m + f < 80) cou...
[["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95]]
1
195
#include <iostream> using namespace std; int main() { int mid, final, re_exam, sum; while (1) { cin >> mid >> final >> re_exam; if (mid == -1 && final == -1 && re_exam == -1) { break; } else { sum = mid + final; if (mid != -1 && final != -1 && sum >= 80) { cout << 'A' << endl; ...
#include <iostream> using namespace std; int main() { int mid, final, re_exam, sum; while (1) { cin >> mid >> final >> re_exam; if (mid == -1 && final == -1 && re_exam == -1) { break; } else { sum = mid + final; if (mid != -1 && final != -1 && sum >= 80) { cout << 'A' << endl; ...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 354], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 12, 13], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 13]]
1
258
#include <iostream> #include <string> using namespace std; int main() { int m[100], f[100], r[100]; int mf, ct = 0; char rt; while (true) { cin >> m[ct] >> f[ct] >> r[ct]; if (m[ct] == -1 && f[ct] == -1 && r[ct] == -1) break; ct++; } for (int i = 0; i < ct; i++) { if (m[i] == -1 || f[...
#include <iostream> #include <string> using namespace std; int main() { int m[100], f[100], r[100]; int mf, ct = 0; char rt; while (true) { cin >> m[ct] >> f[ct] >> r[ct]; if (m[ct] == -1 && f[ct] == -1 && r[ct] == -1) break; ct++; } for (int i = 0; i < ct; i++) { if (m[i] == -1 || f[...
[["-", 8, 9, 0, 57, 64, 1, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32]]
1
228
#include <iostream> using namespace std; int main() { int test[3]; int sum = 0; int i; while (1) { for (i = 0; i < 3; i++) { cin >> test[i]; } for (i = 0; i < 2; i++) { if (test[i] != -1) { sum += test[i]; } } if (test[0] == -1 && test[1] == -1 && test[2] == -1)...
#include <iostream> using namespace std; int main() { int test[3]; int sum = 0; int i; while (1) { for (i = 0; i < 3; i++) { cin >> test[i]; } for (i = 0; i < 2; i++) { if (test[i] != -1) { sum += test[i]; } } if (test[0] == -1 && test[1] == -1 && test[2] == -1)...
[["-", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 15, 339, 51, 16, 31, 69, 341, 342, 0, 13]]
1
239
#include <iostream> using namespace std; int main() { int m, f, r; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; else if (m == -1 && f == -1) cout << 'F' << endl; else if (m + f >= 80) cout << 'A' << endl; else if (m + f >= 65 && m + f < 80) ...
#include <iostream> using namespace std; int main() { int m, f, r; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; else if (m == -1 || f == -1) cout << 'F' << endl; else if (m + f >= 80) cout << 'A' << endl; else if (m + f >= 65 && m + f < 80) ...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106]]
1
183
#include <stdio.h> int main(void) { int first, second, add; char seiseki; while (1) { scanf("%d %d %d", &first, &second, &add); if (first == -1) { if (second == -1) { if (add == -1) { break; } } } if (first + second >= 80) { seiseki = 'A'; } else if...
#include <stdio.h> int main(void) { int first, second, add; char seiseki; while (1) { scanf("%d %d %d", &first, &second, &add); if (first == -1) { if (second == -1) { if (add == -1) { break; } } } if (first + second >= 80) { seiseki = 'A'; } else if...
[["-", 0, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["+", 0, 9, 0, 1, 0, 11, 12, 103, 0, 125]]
1
202
#include <stdio.h> int main() { int m, f, r, i, j; while (1) { scanf("%d %d %d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) printf("F\n"); int sum = m + f; if (sum >= 80) printf("A\n"); else if (sum < 80 && sum >= 65) printf("...
#include <stdio.h> int main() { int m, f, r, i, j; while (1) { scanf("%d %d %d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) { printf("F\n"); continue; } int sum = m + f; if (sum >= 80) printf("A\n"); else if (sum < 80 && su...
[["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46]]
1
188
#include <stdio.h> int main() { int data_sets[10000], data_sets2[10000], data_sets3[10000]; int i = 0, j = 0; for (i = 0;; i++) { scanf("%d %d %d", &data_sets[i], &data_sets2[i], &data_sets3[i]); if (data_sets[i] == -1 && data_sets2[i] == -1 && data_sets3[i] == -1) break; } for (j = 0; j < i; j...
#include <stdio.h> int main() { int data_sets[10000], data_sets2[10000], data_sets3[10000]; int i = 0, j = 0; for (i = 0;; i++) { scanf("%d %d %d", &data_sets[i], &data_sets2[i], &data_sets3[i]); if (data_sets[i] == -1 && data_sets2[i] == -1 && data_sets3[i] == -1) break; } for (j = 0; j < i; j...
[["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
253
#include <iostream> using namespace std; int main() { int m, f, r; cin >> m >> f >> r; int sum; char x[100] = {}; int i = 0; while (!(m == -1 && f == -1 && r == -1)) { sum = m + f; if (m == -1 || f == -1) x[i] = 'F'; else { if (sum >= 80) x[i] = 'A'; else if (sum >= 65...
#include <iostream> using namespace std; int main() { int m, f, r; cin >> m >> f >> r; int sum; char x[100] = {}; int i = 0; while (!(m == -1 && f == -1 && r == -1)) { sum = m + f; if (m == -1 || f == -1) x[i] = 'F'; else { if (sum >= 80) x[i] = 'A'; else if (sum >= 65...
[["-", 75, 76, 0, 1, 0, 11, 12, 103, 0, 125], ["+", 75, 76, 0, 1, 0, 11, 12, 103, 0, 125]]
1
221
#include <stdio.h> main() { int m, f, r; while (1) { scanf("%d %d %d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) { printf("F\n"); } if (m + f >= 80) { printf("A\n"); } if (m + f < 80 && m + f >= 65) { printf("B\n"); } ...
#include <stdio.h> main() { int m, f, r; while (1) { scanf("%d %d %d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) { printf("F\n"); } else { if (m + f >= 80) { printf("A\n"); } if (m + f < 80 && m + f >= 65) { printf("...
[["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 75, 76, 0, 9, 0, 57, 64, 9, 0, 46]]
1
199
#include <iostream> using namespace std; int main(void) { int m, f, r, i; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << "F" << endl; else if (m + f >= 80) cout << "A" << endl; else if (m + f >= 65) cout << "B" <...
#include <iostream> using namespace std; int main(void) { int m, f, r, i; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << "F" << endl; else if (m + f >= 80) cout << "A" << endl; else if (m + f >= 65) cout << "B" <...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
167
#include <iostream> using namespace std; int main() { int m, f, r; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << 'F' << "\n"; if (m + f >= 80) { cout << 'A' << "\n"; } else if (m + f < 80 && m + f >= 65) { cou...
#include <iostream> using namespace std; int main() { int m, f, r; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) { // ||???or cout << 'F' << "\n"; } else if (m + f >= 80) { cout << 'A' << "\n"; } else if (m + f < 80 && m + ...
[["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95]]
1
221
#include <iostream> #include <string> using namespace std; int main() { int m, f, r; int x = 0; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << "F\n"; else if (m + f >= 80) cout << "A\n"; else if (m + f > 65 && m + ...
#include <iostream> #include <string> using namespace std; int main() { int m, f, r; int x = 0; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << "F\n"; else if (m + f >= 80) cout << "A\n"; else if (m + f >= 65 && m +...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20]]
1
191
#include <cstdio> using namespace std; int main() { while (true) { int m, f, r; scanf("%d %d %d", &m, &f, &r); if (!~m && !~f && !~r) return 0; if (!~m || !~f) { printf("F\n"); } else if (m + f >= 80) { printf("A\n"); } else if (m + f >= 65) { printf("B\n"); } el...
#include <cstdio> using namespace std; int main() { while (true) { int m, f, r; scanf("%d %d %d", &m, &f, &r); if (!~m && !~f && !~r) return 0; if (!~m || !~f) { printf("F\n"); } else if (m + f >= 80) { printf("A\n"); } else if (m + f >= 65) { printf("B\n"); } el...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]]
1
184
#include <iostream> using namespace std; #include <cstdio> int main() { int m, f, r; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << "F" << "\n"; if (m + f >= 80) cout << "A" << "\n"; if (m + f < ...
#include <iostream> using namespace std; #include <cstdio> int main() { int m, f, r; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) { cout << "F" << "\n"; continue; } if (m + f >= 80) cout << "A" <...
[["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46]]
1
201
#include <iostream> #include <queue> int main() { using namespace std; int m, f, r; int points; unsigned int size; queue<int> q; while (1) { cin >> m >> f >> r; if (m < 0 && f < 0 && r < 0) break; q.push(m); q.push(f); q.push(r); } while (!q.empty()) { m = q.front(); ...
#include <iostream> #include <queue> int main() { using namespace std; int m, f, r; int points; unsigned int size; queue<int> q; while (1) { cin >> m >> f >> r; if (m < 0 && f < 0 && r < 0) break; q.push(m); q.push(f); q.push(r); } while (!q.empty()) { m = q.front(); ...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]]
1
258
#include <iostream> using namespace std; class student { int m; int f; int r; public: student(int m, int f, int r); char grade(); bool isempty(); }; student::student(int m, int f, int r) { this->m = m; this->f = f; this->r = r; } char student::grade() { if (m == -1 || f == -1) { return 'F'; ...
#include <iostream> using namespace std; class student { int m; int f; int r; public: student(int m, int f, int r); char grade(); bool isempty(); }; student::student(int m, int f, int r) { this->m = m; this->f = f; this->r = r; } char student::grade() { if (m == -1 || f == -1) { return 'F'; ...
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22]]
1
278
#include "bits/stdc++.h" using namespace std; int main() { int m, f, r; while (true) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) { return 0; } if (m == -1 || f == -1) { cout << "F" << endl; } if (m + f >= 80) { cout << "A" << endl; continue; } if...
#include "bits/stdc++.h" using namespace std; int main() { int m, f, r; while (true) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) { return 0; } if (m == -1 || f == -1) { cout << "F" << endl; continue; } if (m + f >= 80) { cout << "A" << endl; contin...
[["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 35]]
1
198
#include <iostream> #include <math.h> #include <stdio.h> using namespace std; #define MAX 256 int main(void) { int k = 0, i = 0; int m[MAX] = {0}; int f[MAX] = {0}; int r[MAX] = {0}; while (k == 0) { scanf("%d%d%d", &m[i], &f[i], &r[i]); if (m[i] + f[i] + r[i] == -3) k = 1; i++; } ...
#include <iostream> #include <math.h> #include <stdio.h> using namespace std; #define MAX 256 int main(void) { int k = 0, i = 0; int m[MAX] = {0}; int f[MAX] = {0}; int r[MAX] = {0}; while (k == 0) { scanf("%d%d%d", &m[i], &f[i], &r[i]); if (m[i] + f[i] + r[i] == -3) k = 1; i++; } ...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18]]
1
306
#include <iostream> using namespace std; char getgrade(int m, int f, int r) { char grade; if (m == -1 || f == -1) { grade = 'F'; } else if (m + f >= 80) { grade = 'A'; } else if (m + f >= 65) { grade = 'B'; } else if (m + f >= 50) { grade = 'C'; } else if (m + f >= 30) { if (r >= 50) {...
#include <iostream> using namespace std; char getgrade(int m, int f, int r) { char grade; if (m == -1 || f == -1) { grade = 'F'; } else if (m + f >= 80) { grade = 'A'; } else if (m + f >= 65) { grade = 'B'; } else if (m + f >= 50) { grade = 'C'; } else if (m + f >= 30) { if (r >= 50) {...
[["-", 64, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["+", 64, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["-", 0, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["+", 0, 9, 0, 1, 0, 11, 12, 103, 0, 125]]
1
206
/* ????????°??§???????????¨???????????? */ #include <algorithm> #include <ctype.h> #include <iostream> #include <iterator> #include <limits.h> #include <map> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <time.h> #include <utility> #include <vector> #define...
/* ????????°??§???????????¨???????????? */ #include <algorithm> #include <ctype.h> #include <iostream> #include <iterator> #include <limits.h> #include <map> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <time.h> #include <utility> #include <vector> #define...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]]
1
514
#include <iostream> using namespace std; int main() { int m, f, r; for (;;) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 && f == -1) cout << "F" << endl; else { if (m + f >= 80) cout << "A" << endl; if (m + f >= 65 && m + f < 80) ...
#include <iostream> using namespace std; int main() { int m, f, r; for (;;) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << "F" << endl; else { if (m + f >= 80) cout << "A" << endl; if (m + f >= 65 && m + f < 80) ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]]
1
189
#include <iostream> using namespace std; int main(void) { int m, f, r; cin >> m >> f >> r; while (m != -1 || f != -1 || r != -1) { if (m != -1 || f != -1) { cout << 'F' << endl; } else { if (m + f >= 80) { cout << 'A' << endl; } else if (m + f >= 65) { cout << 'B' << en...
#include <iostream> using namespace std; int main(void) { int m, f, r; cin >> m >> f >> r; while (m != -1 || f != -1 || r != -1) { if (m == -1 || f == -1) { cout << 'F' << endl; } else { if (m + f >= 80) { cout << 'A' << endl; } else if (m + f >= 65) { cout << 'B' << en...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 60], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]]
1
183
#include <iostream> int main() { int m, f, r, k; while (true) { std::cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) { std::cout << "F" << std::endl; goto END; } if (m + f >= 80) { std::cout << "A" << std::endl; goto END; }...
#include <iostream> int main() { int m, f, r, k; while (true) { std::cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) { std::cout << "F" << std::endl; goto END; } if (m + f >= 80) { std::cout << "A" << std::endl; goto END; }...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
257
#include <stdio.h> int main() { int m, f, r; int mf; scanf("%d %d %d", &m, &f, &r); mf = m + f; while (m != -1 || f != -1 || r != -1) { if (m != -1 || f != -1) { printf("F\n"); } else if (mf >= 80) { printf("A\n"); } else if (65 <= mf && mf < 80) { printf("B\n"); } else if ...
#include <stdio.h> int main() { int m, f, r; int mf; scanf("%d %d %d", &m, &f, &r); mf = m + f; while (m != -1 || f != -1 || r != -1) { if (m == -1 || f == -1) { printf("F\n"); } else if (mf >= 80) { printf("A\n"); } else if (65 <= mf && mf < 80) { printf("B\n"); } else if ...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 60], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]]
1
211
#include <cstring> #include <iostream> using namespace std; int main() { int m, f, r, a; for (int i = 0;; i++) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) { break; } else { a = m + f; if (m == 0 || f == 0) { cout << "F" << endl; } else if (a >= 80) { ...
#include <cstring> #include <iostream> using namespace std; int main() { int m, f, r, a; for (int i = 0;; i++) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) { break; } else { a = m + f; if (m == -1 || f == -1) { cout << "F" << endl; } else if (a >= 80) { ...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
210
#include <bits/stdc++.h> using namespace std; int main() { int m, f, r; while (true) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << "F" << endl; else if (m + f > 80) cout << "A" << endl; else if (65 <= m + f && m + f < 80) ...
#include <bits/stdc++.h> using namespace std; int main() { int m, f, r; while (true) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << "F" << endl; else if (m + f >= 80) cout << "A" << endl; else if (65 <= m + f && m + f < 80) ...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 64, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
196
#include <iostream> int main() { int mid, fin, re; while (std::cin >> mid >> fin >> re) { if (mid == -1 and fin == -1 and re == -1) { break; } if (mid == -1 or fin == -1) { std::cout << "F" << std::endl; break; } int mf_sum = mid + fin; if (mf_sum >= 80) { std::cout ...
#include <iostream> int main() { int mid, fin, re; int cnt = 0; while (std::cin >> mid >> fin >> re) { if (mid == -1 and fin == -1 and re == -1) { break; } if (mid == -1 or fin == -1) { std::cout << "F" << std::endl; continue; } int mf_sum = mid + fin; if (mf_sum >= 80) ...
[["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 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], ["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117]]
1
204
#include <stdio.h> //--------------------------------------- void seiseki(int m, int f, int r); //--------------------------------------- int main(void) { int m, f, r; // m_??????????¨?, f_??????????¨?, r_???????¨? while (1) { scanf("%d %d %d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) { brea...
#include <stdio.h> //--------------------------------------- void seiseki(int m, int f, int r); //--------------------------------------- int main(void) { int m, f, r; // m_??????????¨?, f_??????????¨?, r_???????¨? while (1) { scanf("%d %d %d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) { brea...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]]
1
226
#include <iostream> #include <stdio.h> using namespace std; char judge(int m, int f, int r); int main(void) { while (1) { int m, f, r; cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; cout << judge(m, f, r); } return 0; } char judge(int m, int f, int r) { if (m == -1 || ...
#include <iostream> #include <stdio.h> using namespace std; char judge(int m, int f, int r); int main(void) { while (1) { int m, f, r; cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; cout << judge(m, f, r) << endl; } return 0; } char judge(int m, int f, int r) { if (m =...
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22]]
1
179
#include <algorithm> #include <array> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int m, f, r; while (cin >> m >> f >> r) { if (m == -1 && f == -1 && r == -1) break; int sum = m + f; if (m == -1 || f == -1) cout << 'F' << endl; else if (...
#include <algorithm> #include <array> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int m, f, r; while (cin >> m >> f >> r) { if (m == -1 && f == -1 && r == -1) break; int sum = m + f; if (m == -1 || f == -1) cout << 'F' << endl; else if (...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]]
1
169
#include <iostream> using namespace std; int main() { char Result[10000]; int m, f, r = 0; for (int i = 0; i < 10000; i++) { cin >> m >> f >> r; if ((m == 0) || (f == 0)) Result[i] = 'F'; else if (m + f >= 80) Result[i] = 'A'; else if (m + f >= 65) Result[i] = 'B'; else if ((...
#include <iostream> using namespace std; int main() { char Result[10000]; int m, f, r = 0; for (int i = 0; i < 10000; i++) { cin >> m >> f >> r; if ((m == -1) || (f == -1)) Result[i] = 'F'; else if (m + f >= 80) Result[i] = 'A'; else if (m + f >= 65) Result[i] = 'B'; else if ...
[["-", 15, 339, 51, 16, 31, 23, 0, 16, 12, 13], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 12, 13], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 12, 13], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 31, 22]]
1
220
#include <iostream> int main() { int m; int f; int r; int sum; while (std::cin >> m >> f >> r) { if (m == -1 && f == -1 && r == -1) break; if (m == 0 || f == 0) { std::cout << "F" << std::endl; continue; } sum = m + f; if (sum >= 80) { std::cout << "A" << std::end...
#include <iostream> int main() { int m; int f; int r; int sum; while (std::cin >> m >> f >> r) { if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) { std::cout << "F" << std::endl; continue; } sum = m + f; if (sum >= 80) { std::cout << "A" << std::e...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
224
#include <stdio.h> int main(void) { int i, j, r; char g; for (;;) { scanf("%d %d %d", &i, &j, &r); if (i == -1 && j == -1 && r == -1) { return 0; } else if (i == -1 || j == -1) { g = 'F'; } else if (i + j >= 80) { g = 'A'; } else if (i + j >= 65) { g = 'b'; } else i...
#include <stdio.h> int main(void) { int i, j, r; char g; for (;;) { scanf("%d %d %d", &i, &j, &r); if (i == -1 && j == -1 && r == -1) { return 0; } else if (i == -1 || j == -1) { g = 'F'; } else if (i + j >= 80) { g = 'A'; } else if (i + j >= 65) { g = 'B'; } else i...
[["-", 64, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["+", 64, 9, 0, 1, 0, 11, 12, 103, 0, 125]]
1
188
#include <iostream> using namespace std; int main() { int m, f, r; while (cin >> m >> f >> r) { if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) { cout << "F" << endl; break; } if (m == -1) m = 0; if (f == -1) f = 0; else if (m + f >= 80) ...
#include <iostream> using namespace std; int main() { int m, f, r; while (cin >> m >> f >> r) { if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) cout << "F" << endl; else if (m == -1) m = 0; else if (f == -1) f = 0; else if (m + f >= 80) cout << "A...
[["-", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["-", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
1
187
#include <iostream> #include <stdio.h> using namespace std; int a[101][101]; int main() { int m, f, r; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) { break; } if (m == -1 || f == -1 || m + f < 30) cout << 'F' << endl; if (m + f >= 80) cout << 'A' << endl; ...
#include <iostream> #include <stdio.h> using namespace std; int a[101][101]; int main() { int m, f, r; while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) { break; } if (m == -1 || f == -1 || m + f < 30) cout << 'F' << endl; else if (m + f >= 80) cout << 'A' << e...
[["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
1
187
#include <iostream> #include <string> using namespace std; int main() { int m, f, mu, t; string grade; while (true) { cin >> m >> f >> mu; if (m == -1 and f == -1 and mu == -1) { break; } t = m + f; grade = ""; if (80 <= t) { grade = "A"; } if (65 <= t and t < 80) {...
#include <iostream> #include <string> using namespace std; int main() { int m, f, mu, t; string grade; while (true) { cin >> m >> f >> mu; if (m == -1 and f == -1 and mu == -1) { break; } t = m + f; grade = ""; if (80 <= t) { grade = "A"; } if (65 <= t and t < 80) {...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 355], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 354]]
1
195
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { int m, f, r; while (true) { cin >> m >> f >> r; if (m + f + r == -3) break; bool flg = false; if (m == -1) { m = 0; flg = true; } if (f == -1) { f = 0; flg ...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) using namespace std; int main() { int m, f, r; while (true) { cin >> m >> f >> r; if (m + f + r == -3) break; bool flg = false; if (m == -1) { m = 0; flg = true; } if (f == -1) { f = 0; flg ...
[["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95]]
1
187
#include <iostream> using namespace std; void solve() { int m, f, r; while (cin >> m >> f >> r) { if (m == -1 && f == -1 && r == -1) { return; } if (m == 0 || f == 0) { cout << "F" << endl; } else if (m + f >= 80) { cout << "A" << endl; } else if (m + f < 80 && m + f >= 65) {...
#include <iostream> using namespace std; void solve() { int m, f, r; while (cin >> m >> f >> r) { if (m == -1 && f == -1 && r == -1) { return; } if (m == -1 || f == -1) { cout << "F" << endl; } else if (m + f >= 80) { cout << "A" << endl; } else if (m + f < 80 && m + f >= 65)...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
214
#include <cstdio> #include <utility> #include <vector> using namespace std; int main() { int m, f, r; int count = 0; vector<char> data(100); while (1) { scanf("%d %d %d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) { for (int i = 0; i < count; i++) { printf("%c\n", data[i]); }...
#include <cstdio> #include <utility> #include <vector> using namespace std; int main() { int m, f, r; int count = 0; vector<char> data(100); while (1) { scanf("%d %d %d", &m, &f, &r); if (m == -1 && f == -1 && r == -1) { for (int i = 0; i < count; i++) { printf("%c\n", data[i]); }...
[["+", 0, 57, 64, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 27, 17, 29], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 35]]
1
254
#include <iostream> using namespace std; int main() { int n, m, f, r; char G[10000] = {}; for (int i = 0; 1; i++) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; n = i + 1; if (m == -1 || f == -1) { G[i] = 'K'; } else if (m + f >= 80) { G[i] = 'A'; } el...
#include <iostream> using namespace std; int main() { int n, m, f, r; char G[10000] = {}; for (int i = 0; 1; i++) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; n = i + 1; if (m == -1 || f == -1) { G[i] = 'F'; } else if (m + f >= 80) { G[i] = 'A'; } el...
[["-", 64, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["+", 64, 9, 0, 1, 0, 11, 12, 103, 0, 125], ["+", 0, 57, 64, 9, 0, 57, 75, 76, 0, 95]]
1
230
#include <iostream> using namespace std; int main() { int m[10000], f[10000], r[10000]; int n = 0; for (;; n++) { cin >> m[n] >> f[n] >> r[n]; if (m[n] == -1 && f[n] == -1 && r[n] == -1) { break; } } for (int i = 0; i < n; i++) { if (m[i] == -1 || f[-1] == -1) { cout << "F" << en...
#include <iostream> using namespace std; int main() { int m[10000], f[10000], r[10000]; int n = 0; for (;; n++) { cin >> m[n] >> f[n] >> r[n]; if (m[n] == -1 && f[n] == -1 && r[n] == -1) { break; } } for (int i = 0; i < n; i++) { if (m[i] == -1 || f[i] == -1) { cout << "F" << end...
[["-", 51, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 22]]
1
277
#include <iostream> using namespace std; int main() { int m, f, r; //中間,期末,再試験 while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) return 0; if (m == -1 || f == -1) cout << "F" << "\n"; if (m + f >= 80) cout << "A" << "\n"; if (m + f >= ...
#include <iostream> using namespace std; int main() { int m, f, r; //中間,期末,再試験 while (1) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) return 0; if (m == -1 || f == -1) cout << "F" << "\n"; else if (m + f >= 80) cout << "A" << "\n"; else if ...
[["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]]
1
200
#include <bits/stdc++.h> using namespace std; int main() { int m, f, r; while (cin >> m >> f >> r) { if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) { cout << 'F' << endl; continue; } int sum = m + f; char c; if (sum < 30) c = 'F'; else if (su...
#include <bits/stdc++.h> using namespace std; int main() { int m, f, r; while (cin >> m >> f >> r) { if (m == -1 && f == -1 && r == -1) break; if (m == -1 || f == -1) { cout << 'F' << endl; continue; } int sum = m + f; char c; if (sum < 30) c = 'F'; else if (su...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 31, 22]]
1
158
#include <iostream> using namespace std; int main() { int mid, final, makeup; char grade; while (1) { cin >> mid >> final >> makeup; if (mid == -1 && final == -1 && makeup == -1) { break; } if (mid == 0 || final == 0) { grade = 'F'; } else if (mid + final >= 80) { grade = 'A'...
#include <iostream> using namespace std; int main() { int mid, final, makeup; char grade; while (1) { cin >> mid >> final >> makeup; if (mid == -1 && final == -1 && makeup == -1) { break; } if (mid == -1 || final == -1) { grade = 'F'; } else if (mid + final >= 80) { grade = '...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
175
#include <iomanip> #include <iostream> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace std; int main() { int m, f, r; while (true) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; int sum = m + f; if (m == -1) cout << "F";...
#include <iomanip> #include <iostream> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace std; int main() { int m, f, r; while (true) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; int sum = m + f; if (m == -1 || f == -1) co...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
156
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; while (a != -1 || b != -1 || c != -1) { if (a == -1 || b == -1) cout << 'F'; else if (a + b >= 85) cout << 'A'; else if (a + b >= 65) cout << 'B'; else if (a + b >= 50) cout << 'C'; ...
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; while (a != -1 || b != -1 || c != -1) { if (a == -1 || b == -1) cout << 'F'; else if (a + b >= 80) cout << 'A'; else if (a + b >= 65) cout << 'B'; else if (a + b >= 50) cout << 'C'; ...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]]
1
156
#include <iostream> #include <vector> using namespace std; int main() { int m, f, r; vector<int> t, k, s; while (true) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; t.push_back(m); k.push_back(f); s.push_back(r); } for (int i = 0; i < (int)t.size(); i++) { ch...
#include <iostream> #include <vector> using namespace std; int main() { int m, f, r; vector<int> t, k, s; while (true) { cin >> m >> f >> r; if (m == -1 && f == -1 && r == -1) break; t.push_back(m); k.push_back(f); s.push_back(r); } for (int i = 0; i < (int)t.size(); i++) { ch...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]]
1
284
n = 0 while n == 0: m = list(map(int,input().split())) if m[0] + m[1] + m[2] == -3: break if m[0] == -1 or m[1] == -1: print("F") break for i in range(2): if m[i] == -1: m[i] = 0 k = m[0] + m[1] if k >= 80: print("A") elif k >= 65: ...
n = 0 while n == 0: m = list(map(int,input().split())) if m[0] + m[1] + m[2] == -3: break if m[0] == -1 or m[1] == -1: print("F") else: for i in range(2): if m[i] == -1: m[i] = 0 k = m[0] + m[1] if k >= 80: print("A") ...
[["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 52, 8, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 52, 8, 196, 0, 57, 75, 76, 0, 102]]
5
174
while True: m, f, r = map(int, input().split()) A = m + f if m == f == r == -1: break elif m == 0 or f == 0: print('F') elif A >= 80: print('A') elif 65 <= A < 80: print('B') elif 50 <= A < 65: print('C') elif 30 <= A < 50: if 50 <= r: ...
while True: m, f, r = map(int, input().split()) A = m + f if m == f == r == -1: break elif m == -1 or f == -1: print('F') elif A >= 80: print('A') elif 65 <= A < 80: print('B') elif 50 <= A < 65: print('C') elif 30 <= A < 50: if 50 <= r: ...
[["-", 0, 57, 75, 665, 15, 679, 31, 666, 0, 612], ["+", 75, 665, 15, 679, 31, 666, 0, 664, 17, 33], ["+", 75, 665, 15, 679, 31, 666, 0, 664, 28, 612], ["-", 0, 57, 75, 665, 15, 679, 12, 666, 0, 612], ["+", 75, 665, 15, 679, 12, 666, 0, 664, 17, 33], ["+", 75, 665, 15, 679, 12, 666, 0, 664, 28, 612]]
5
123
if __name__ == "__main__": while True: score = [int(i) for i in input().split()] if score[0] == score[1] == score[2] == -1: break if score[0] == -1 or score[1] == -1: print ('F') else: if score[0] + score[1] >= 80: print ('A') elif score[0] + score[1] >= 65: print ('B') elif score[0] + ...
if __name__ == "__main__": while True: score = [int(i) for i in input().split()] if score[0] == score[1] == score[2] == -1: break if score[0] == -1 or score[1] == -1: print ('F') else: if score[0] + score[1] >= 80: print ('A') elif score[0] + score[1] >= 65: print ('B') elif score[0] + ...
[["-", 8, 196, 0, 57, 15, 666, 0, 557, 0, 654], ["-", 8, 196, 0, 57, 15, 666, 0, 557, 0, 655]]
5
192
while True: m, f, r = map(int, input().split()) if m==f==r== -1: break result = "" sum = m + f if (m==-1)or(f==-1): result = "F" elif sum >= 80: result = 'A' elif sum>= 65: result = "B" elif sum>=50: result = "C" elif sum>= 30: re...
while True: m, f, r = map(int, input().split()) if m==f==r== -1: break result = "" sum = m + f if (m==-1)or(f==-1): result = "F" elif sum >= 80: result = 'A' elif sum>= 65: result = "B" elif sum>=50: result = "C" elif sum>= 30: re...
[["-", 75, 665, 64, 196, 0, 1, 0, 662, 31, 22], ["+", 75, 665, 64, 196, 0, 1, 0, 662, 31, 22]]
5
129
def judgetest(a, b, c): if a == -1 or b == -1: return 'F' sum = a + b if sum >= 80: return 'A' elif sum >= 65: return 'B' elif sum >= 50: return 'C' elif sum >= 35: if c >= 50: return 'C' else: return 'D' else: r...
def judgetest(a, b, c): if a == -1 or b == -1: return 'F' sum = a + b if sum >= 80: return 'A' elif sum >= 65: return 'B' elif sum >= 50: return 'C' elif sum >= 30: if c >= 50: return 'C' else: return 'D' else: r...
[["-", 8, 196, 0, 57, 75, 665, 15, 666, 0, 612], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 0, 612]]
5
141
while True: m, f, r = [int(i) for i in input().split()] if m == f ==r -1: break total = m + f if m == -1 or f == -1 or total < 30: print('F') elif total < 50 and r < 50: print('D') elif total < 65: print('C') elif total < 80: print('B') ...
while True: m, f, r = [int(i) for i in input().split()] if m == f == r == -1: break total = m + f if m == -1 or f == -1 or total < 30: print('F') elif total < 50 and r < 50: print('D') elif total < 65: print('C') elif total < 80: print('B'...
[["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 60]]
5
106
while True: m, f, r = [int(i) for i in input().split] if m == f == r == -1: break total = m + f if m == -1 or f == -1 or total < 30: print('F') elif total < 50 and r < 50: print('D') elif total < 65: print('C') elif total < 80: print('B') else: print('A')
while True: m, f, r = [int(i) for i in input().split()] if m == f == r == -1: break total = m + f if m == -1 or f == -1 or total < 30: print('F') elif total < 50 and r < 50: print('D') elif total < 65: print('C') elif total < 80: prin...
[["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 24], ["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 25]]
5
105
while True: m, f, r = map(int, input().split()) if m == f == r == -1: break if m == -1 or f == -1: print('F') if m + f >= 80: print('A') if 65 <= m + f < 80: print('B') if 50 <= m + f < 65: print('C') if 30 <= m + f < 50: if r >= 50: ...
while True: m, f, r = map(int, input().split()) if m == f == r == -1: break if m == -1 or f == -1: print('F') continue if m + f >= 80: print('A') if 65 <= m + f < 80: print('B') if 50 <= m + f < 65: print('C') if 30 <= m + f < 50: if r ...
[["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117]]
5
133
while True: a = input().split(' ') if a[0] == '-1' and a[1] == '-1' and a[2] == '-1': break elif int(a[0]) or int(a[1]) == -1: print('F') elif int(a[0]) + int(a[1]) >= 80: print('A') elif 65 <= int(a[0]) + int(a[1]) < 80: print('B') elif 50 <= int(a[0]) + int(a[1]...
while True: a = input().split(' ') if a[0] == '-1' and a[1] == '-1' and a[2] == '-1': break elif int(a[0]) == -1 or int(a[1]) == -1: print('F') elif int(a[0]) + int(a[1]) >= 80: print('A') elif 65 <= int(a[0]) + int(a[1]) < 80: print('B') elif 50 <= int(a[0]) + in...
[["+", 0, 57, 75, 665, 15, 679, 31, 666, 667, 60], ["+", 75, 665, 15, 679, 31, 666, 0, 664, 17, 33], ["+", 75, 665, 15, 679, 31, 666, 0, 664, 28, 612]]
5
203
while True: points = list(map(int,input().split())) if points==[-1,-1,-1]: break sum_pt = sum(points[0:2]) if points[0]==-1 or points[1]==-1 or sum_pt<30: print('F') elif sum_pt<50 and point[2]<50: print('D') elif sum_pt<65: print('C') elif sum_pt<80: print('B') else: print('A')
while True: points = list(map(int,input().split())) if points==[-1,-1,-1]: break sum_pt = sum(points[0:2]) if points[0]==-1 or points[1]==-1 or sum_pt<30: print('F') elif sum_pt<50 and points[2]<50: print('D') elif sum_pt<65: print('C') elif sum_pt<80: print('B') else: print('A')
[["-", 75, 665, 15, 679, 12, 666, 0, 206, 51, 22], ["+", 75, 665, 15, 679, 12, 666, 0, 206, 51, 22]]
5
121
while True: m, f, r = list(map(int,input().split())) if (m == -1) & (f == -1) & (r == -1): break if (m + f) < 30 | m == -1 | f == -1: print("F") elif (m + f) < 50 & r < 50: print("D") elif (m + f) < 65: print("C") elif (m + f) < 80: print("B") else: ...
while True: m, f, r = list(map(int,input().split())) if (m == -1) & (f == -1) & (r == -1): break if (m + f) < 30 or m == -1 or f == -1: print("F") elif (m + f) < 50 and r < 50: print("D") elif (m + f) < 65: print("C") elif (m + f) < 80: print("B") else...
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 139], ["+", 8, 196, 0, 57, 15, 679, 31, 679, 17, 354], ["+", 0, 52, 8, 196, 0, 57, 15, 679, 17, 354], ["-", 0, 57, 75, 665, 15, 666, 0, 657, 17, 67], ["+", 8, 196, 0, 57, 75, 665, 15, 679, 17, 355]]
5
129
array = [] while True: n =input() if n == "-1 -1 -1": break array.append(n.split()) suum = 0 seiseki = [] for i in range(len(array)): if array[i][0] or array[i][1] != "-1": suum = int(array[i][0]) + int(array[i][1]) if suum >= 80: seiseki.append("A") elif suum...
array = [] while True: n =input() if n == "-1 -1 -1": break array.append(n.split()) suum = 0 seiseki = [] for i in range(len(array)): if array[i][0]!="-1" and array[i][1] != "-1": suum = int(array[i][0]) + int(array[i][1]) if suum >= 80: seiseki.append("A") el...
[["-", 0, 7, 8, 196, 0, 57, 15, 679, 17, 354], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 79], ["+", 0, 57, 15, 679, 31, 666, 0, 557, 0, 654], ["+", 0, 57, 15, 679, 31, 666, 0, 557, 0, 6], ["+", 0, 57, 15, 679, 31, 666, 0, 557, 0, 655], ["+", 0, 7, 8, 196, 0, 57, 15, 679, 17, 355]]
5
207
def ifExit(a): if a[0] =='-1' and a[1] =='-1' and a[2] =='-1': return True else: return False l=[] while(True): tmp = input().split() if ifExit(tmp): break m=int(tmp[0]) f=int(tmp[1]) r=int(tmp[2]) if (m == 0) or (f == 0) : l.append('F') elif (m+f >= 80)...
def ifExit(a): if a[0] =='-1' and a[1] =='-1' and a[2] =='-1': return True else: return False l=[] while(True): tmp = input().split() if ifExit(tmp): break m=int(tmp[0]) f=int(tmp[1]) r=int(tmp[2]) if (m < 0) or (f < 0) : l.append('F') elif (m+f >= 80): ...
[["-", 0, 57, 15, 679, 31, 23, 0, 666, 667, 60], ["+", 0, 57, 15, 679, 31, 23, 0, 666, 667, 18], ["-", 0, 57, 15, 679, 12, 23, 0, 666, 667, 60], ["+", 0, 57, 15, 679, 12, 23, 0, 666, 667, 18]]
5
235
while True: m, f, r = list(map(int, input().split())) if m == -1 and f == -1 and r == -1: break elif m == -1 and f == -1: print("F") elif m + f >= 80: print("A") elif m + f >= 65: print("B") elif m + f >= 50: print("C") elif m + f >= 30 and f >= 50: ...
while True: m, f, r = list(map(int, input().split())) if m == -1 and f == -1 and r == -1: break elif m == -1 or f == -1: print("F") elif m + f >= 80: print("A") elif m + f >= 65: print("B") elif m + f >= 50: print("C") elif m + f >= 30 and r >= 50: ...
[["-", 8, 196, 0, 57, 75, 665, 15, 679, 17, 355], ["+", 8, 196, 0, 57, 75, 665, 15, 679, 17, 354], ["-", 0, 57, 75, 665, 15, 679, 12, 666, 0, 22], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 0, 22]]
5
135
while True: m, f, r = map(int,input().split()) if m + f + r < 0: break if m < 0 or f < 0: print("F") elif m + f >= 80: print("A") elif m + f >= 65: print("B") elif m + f >= 50: print("C") elif m + f >= 30: if r >= 50: print("C") ...
while True: m, f, r = map(int,input().split()) if m + f < 0: break if m < 0 or f < 0: print("F") elif m + f >= 80: print("A") elif m + f >= 65: print("B") elif m + f >= 50: print("C") elif m + f >= 30: if r >= 50: print("C") ...
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 72], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]]
5
119
while(True): m,f,r = [int(i) for i in input().split()] if(m == -1 and f == -1 and r == -1): break if(m == -1 or f == -1): print('F') elif(m + f >= 80): print('A') elif(65 <= m + f <= 80): prin('B') elif(50 <= m + f <= 65): print('C') elif(30 <= m + f <...
while(True): m,f,r = [int(i) for i in input().split()] if(m == -1 and f == -1 and r == -1): break if(m == -1 or f == -1): print('F') elif(m + f >= 80): print('A') elif(65 <= m + f <= 80): print('B') elif(50 <= m + f <= 65): print('C') elif(30 <= m + f ...
[["-", 75, 665, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 75, 665, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 75, 665, 15, 23, 0, 679, 31, 666, 0, 612], ["+", 0, 57, 75, 665, 15, 23, 0, 679, 17, 355], ["+", 75, 665, 15, 23, 0, 679, 12, 666, 0, 22], ["+", 75, 665, 15, 23, 0, 679, 12, 666, 667, 18], ["-", 0, 57, 75, 665, 64, 196,...
5
152
import sys def main(): for line in sys.stdin: m, f, r = map(int, line.split()) if m == -1 and f == -1 and r == -1: break else: total = m * f if m == -1 or f == -1: print("F") elif total >= 80: print("A") ...
import sys def main(): for line in sys.stdin: m, f, r = map(int, line.split()) if m == -1 and f == -1 and r == -1: break else: total = m + f if m == -1 or f == -1: print("F") elif total >= 80: print("A") ...
[["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 48], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 72]]
5
155
while True: m, f, r = map(int, input().split()) if m == -1 and f == -1 and r == -1: quit() elif m == -1 and f == -1: print('F') elif m + f >= 80: print('A') elif m + f >= 65: print('B') elif m + f >= 50 or r >= 50: print('C') elif m + f >= 30: ...
while True: m, f, r = map(int, input().split()) if m == -1 and f == -1 and r == -1: quit() elif m == -1 or f == -1: print('F') elif m + f >= 80: print('A') elif m + f >= 65: print('B') elif m + f >= 50 or r >= 50: print('C') elif m + f >= 30: ...
[["-", 8, 196, 0, 57, 75, 665, 15, 679, 17, 355], ["+", 8, 196, 0, 57, 75, 665, 15, 679, 17, 354]]
5
126
while 1: m,f,r=map(int,input().split());s=m+f if m==f==r<0:break if m*f<0 | s<30:print('F') elif(s<50)*(r<50):print('D') elif s<65:print('C') elif s<80:print('B') else:print('A')
while 1: m,f,r=map(int,input().split());s=m+f if m==f==r<0:break if m*f<0 or s<30:print('F') elif(s<50)*(r<50):print('D') elif s<65:print('C') elif s<80:print('B') else:print('A')
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 139], ["+", 0, 52, 8, 196, 0, 57, 15, 679, 17, 354]]
5
103
while True: m,f,r = tuple(int(n) for n in input().split()) if m == f == r == -1: break if (m == -1 or f == -1) or m * f < 30: print("F") elif m + f >= 80: print("A") elif 65 <= m + f < 80: print("B") elif 50 <= m + f < 65: print("C") else: if r...
while True: m,f,r = tuple(int(n) for n in input().split()) if m == f == r == -1: break if (m == -1 or f == -1) or m + f < 30: print("F") elif m + f >= 80: print("A") elif 65 <= m + f < 80: print("B") elif 50 <= m + f < 65: print("C") else: if r...
[["-", 0, 57, 15, 679, 12, 666, 0, 657, 17, 48], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 72]]
5
126
while True: 中間, 期末, 再試験 = map(int, input().split()) if 中間 < 0 and 期末 < 0 and 再試験 < 0: break if 中間 < 0 or 期末 < 0: print("F") 合計点 = 中間 + 期末 if 合計点 >= 80: print("A") elif 65 <= 合計点 and 合計点 < 80: print("B") elif 50 <= 合計点 and 合計点 < 65: print("C") ...
while True: 中間, 期末, 再試験 = map(int, input().split()) if 中間 < 0 and 期末 < 0 and 再試験 < 0: break 合計点 = 中間 + 期末 if 中間 < 0 or 期末 < 0: print("F") elif 合計点 >= 80: print("A") elif 65 <= 合計点 and 合計点 < 80: print("B") elif 50 <= 合計点 and 合計点 < 65: print("C") ...
[["+", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 52, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 8...
5
132