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
change_count
int64
0
100
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (division, absolute_import, print_function, unicode_literals) from sys import stdin def prime(n): L = list(range(2, n)) P = [] while L[0] ** 2 < n: P.append(L[0]) L = [i for i in L if i % P[-1]] ...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (division, absolute_import, print_function, unicode_literals) from sys import stdin def prime(n): L = list(range(2, n)) P = [] while L[0] ** 2 < n: P.append(L[0]) L = [i for i in L if i % P[-1]] ...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 102]]
5
119
5
from bisect import * def sieve(n): a = list(range(n)) a[:2] = None, None for i in range(2, n): if i ** 2 >= n: break if not a[i]: continue for i in range(i ** 2, n, i): a[i] = None return [v for v in a if v] try: a = sieve(9000) while True: n = int(i...
from bisect import * def sieve(n): a = list(range(n)) a[:2] = None, None for i in range(2, n): if i ** 2 >= n: break if not a[i]: continue for i in range(i ** 2, n, i): a[i] = None return [v for v in a if v] try: a = sieve(90000) while True: n = int(...
[["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 612], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 612]]
5
142
2
t = s = 0, i = require("fs").readFileSync("/dev/stdin", "utf8").split(/\s|,/); for (a = j = i.length - 1; j--;) s += (b = +i[j--]), t += b * i[j]; console.log(t + '\n' + ~~(s / (a * 2) + 0.5))
t = s = 0, i = require("fs").readFileSync("/dev/stdin", "utf8").split(/\s|,/); for (a = j = i.length - 1; j--;) s += (b = +i[j--]), t += b * i[j]; console.log(t + '\n' + ~~(s / (a / 2) + 0.5))
[["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 48], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 85]]
2
95
2
t = s = 0, i = require("fs").readFileSync("/dev/stdin", "utf8").split(/\s|,/); for (a = j = i.length - 1; j--;) s += (b = +i[j--]), t += b * i[j]; console.log(t + '\n' + ~~(s / (a * 2) + 0.5))
t = s = 0, i = require("fs").readFileSync("/dev/stdin", "utf8").split(/\s|,/); for (a = j = i.length - 1; j--;) s += (b = +i[j--]), t += b * i[j]; console.log(t + '\n' + ~~(s / a * 2 + 0.5))
[["-", 28, 23, 0, 16, 31, 16, 12, 23, 0, 24], ["-", 28, 23, 0, 16, 31, 16, 12, 23, 0, 25]]
2
95
2
var input = require('fs').readFileSync('/dev/stdin', 'utf8'); var lines = input.trim().split('\n'); var nums = lines.map(function( line) { return line.split(',').map(function(n) { return +n; }); }); var sum = nums.reduce(function(p, n) { return p + n[0] * n[1]; }, 0); var qsum = nums.reduce(function(p, n) { retu...
var input = require('fs').readFileSync('/dev/stdin', 'utf8'); var lines = input.trim().split('\n'); var nums = lines.map(function( line) { return line.split(',').map(function(n) { return +n; }); }); var sum = nums.reduce(function(p, n) { return p + n[0] * n[1]; }, 0); var qsum = nums.reduce(function(p, n) { retu...
[["-", 0, 493, 0, 1, 0, 2, 3, 3, 0, 21], ["+", 0, 493, 0, 1, 0, 2, 3, 3, 0, 25], ["+", 36, 36, 36, 36, 0, 493, 0, 1, 0, 35], ["+", 0, 493, 0, 1, 0, 2, 63, 558, 500, 22], ["+", 0, 493, 0, 1, 0, 2, 63, 558, 0, 131], ["+", 0, 493, 0, 1, 0, 2, 63, 558, 559, 560], ["+", 0, 493, 0, 1, 0, 2, 3, 3, 0, 24]]
2
153
7
<?php $data = array(); while ($line = trim(scanf(STDIN))) { list($p, $n) = explode(',', $line); $data[] = array($p, $n); } $sum = 0; $avg = 0; foreach ($data as $d) { $sum += $d[0] * $d[1]; $avg += $d[1]; } echo $sum . "\n"; echo round($avg / count($data)) . "\n";
<?php $data = array(); while ($line = trim(fgets(STDIN))) { list($p, $n) = explode(',', $line); $data[] = array($p, $n); } $sum = 0; $avg = 0; foreach ($data as $d) { $sum += $d[0] * $d[1]; $avg += $d[1]; } echo $sum . "\n"; echo round($avg / count($data)) . "\n";
[["-", 12, 613, 3, 3, 0, 28, 0, 613, 63, 141], ["+", 12, 613, 3, 3, 0, 28, 0, 613, 63, 141]]
6
125
2
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long cnt = 0; long sum1 = 0; long sum2 = 0; while (sc.hasNext()) { String[] s = sc.nextLine().split(","); cnt++; int a = Integer.parseInt(s[0]); int ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long cnt = 0; long sum1 = 0; long sum2 = 0; while (sc.hasNext()) { String[] s = sc.nextLine().split(","); cnt++; int a = Integer.parseInt(s[0]); int ...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 44]]
3
157
4
import java.util.Scanner; class Main { public static void main(String[] args) { String[] str = new String[2]; int sum = 0, ave = 0, count = 0, n, m; Scanner sc = new Scanner(System.in); while (sc.hasNextLine()) { str = sc.nextLine().split(","); n = Integer.valueOf(str[0]); m = Intege...
import java.util.Scanner; class Main { public static void main(String[] args) { String[] str = new String[2]; int sum = 0, ave = 0, count = 0, n, m; Scanner sc = new Scanner(System.in); while (sc.hasNextLine()) { str = sc.nextLine().split(","); n = Integer.valueOf(str[0]); m = Intege...
[["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 17, 107], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 1, 0, 35], ["-", 51, 492, 3, 4, 0, 16, 31, 74, 51, 22], ["+", 51, 492, 3, 4, 0, 16, 31, 74, 51, 22]]
3
155
6
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { Scanner stdIn = null; List<int[]> data = new ArrayList<int[]>(); try { stdIn = new Scanner(new BufferedReader(new InputStreamReader(System.in))); while (stdIn.hasNext()) { ...
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { Scanner stdIn = null; List<int[]> data = new ArrayList<int[]>(); try { stdIn = new Scanner(new BufferedReader(new InputStreamReader(System.in))); while (stdIn.hasNext()) { ...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
244
2
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = ""; int total = 0, amount = 0, i, p, q; ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = ""; int total = 0, amount = 0, i, p, q; ...
[["-", 0, 492, 3, 4, 0, 16, 31, 492, 141, 22], ["+", 0, 492, 3, 4, 0, 16, 31, 492, 141, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 74, 0, 24], ["+", 0, 492, 3, 4, 0, 74, 39, 506, 0, 507], ["+", 0, 1, 0, 492, 3, 4, 0, 74, 0, 25]]
3
179
5
#include <stdio.h> int main(void) { int a, b; int sum, ave; int i; i = 0; sum = 0; ave = 0; while (scanf("%d,%d", &a, &b) != EOF) { sum += a * b; ave += b; i++; } printf("%d\n%d\n", (int)((double)sum, ave / i + 0.5)); return (0); }
#include <stdio.h> int main(void) { int a, b; int sum, ave; int i; i = 0; sum = 0; ave = 0; while (scanf("%d,%d", &a, &b) != EOF) { sum += a * b; ave += b; i++; } printf("%d\n%d\n", sum, (int)((double)ave / i + 0.5)); return (0); }
[["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["-", 0, 74, 51, 23, 0, 34, 31, 74, 51, 22], ["-", 3, 4, 0, 74, 51, 23, 0, 34, 0, 21]]
0
97
4
#include <stdio.h> int main() { int s, a; int sum = 0, ave = 0, n = 0; while (scanf("%d,%d", &s, &a) != EOF) { n++; sum += s * a; ave += a; printf("%d\n%d\n", sum, (int)((float)ave / n + 0.5)); } return 0; }
#include <stdio.h> int main() { int s, a; int sum = 0, ave = 0, n = 0; while (scanf("%d,%d", &s, &a) != EOF) { n++; sum += s * a; ave += a; } printf("%d\n%d\n", sum, (int)((float)ave / n + 0.5)); return 0; }
[["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]]
0
87
2
#include <stdio.h> int main(void) { int a, b, sum_a = 0, sum_b = 0, c = 0; int syousuu = 0; while (scanf("%d,%d", &a, &b) != EOF) { sum_a += a * b; sum_b += b; c++; } if (sum_b % 1 != 0 && 2 * (sum_b % c) >= c) { syousuu = 1; } printf("%d\n%d\n", sum_a, syousuu + sum_b / c); return ...
#include <stdio.h> int main(void) { int a, b, sum_a = 0, sum_b = 0, c = 0; int syousuu = 0; while (scanf("%d,%d", &a, &b) != EOF) { sum_a += a * b; sum_b += b; c++; } if (sum_b % c != 0 && 2 * (sum_b % c) >= c) { syousuu = 1; } printf("%d\n%d\n", sum_a, syousuu + sum_b / c); return (...
[["-", 15, 23, 0, 16, 31, 16, 31, 16, 12, 13], ["+", 15, 23, 0, 16, 31, 16, 31, 16, 12, 22]]
0
110
2
#include <stdio.h> int main(void) { int a, b, n = 0, suma = 0, sumb = 0, ave = 0; while (scanf("%d, %d", &a, &b) != EOF) { suma += a * b; sumb += b; n++; ave = (double)sumb / (double)n; } printf("%d\n", suma); printf("%d\n", ave); return 0; }
#include <stdio.h> int main(void) { int a, b, n = 0, suma = 0, sumb = 0, ave = 0; while (scanf("%d, %d", &a, &b) != EOF) { suma += a * b; sumb += b; n++; } ave = (double)sumb / (double)n + 0.5; printf("%d\n", suma); printf("%d\n", ave); return 0; }
[["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]]
0
97
4
t, z, n; main(p, c) { for (; ~scanf("%d,%d\n", &p, &c); t += p * c, z += c, n++) ; printf("%d\n%d\n", t, lround(z / n)); exit(0); }
t, z, n; main(p, c) { for (; ~scanf("%d,%d\n", &p, &c); t += p * c, z += c, n++) ; printf("%d\n%d\n", t, lround(1. * z / n)); exit(0); }
[["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 17, 48]]
0
71
2
#include <stdio.h> int main(int argc, const char *argv[]) { int tanka, suryo, sum = 0, cnt = 0, sum1 = 0, ave = 0; double syousu; while (scanf("%d, %d", &tanka, &suryo) != EOF) { sum += tanka * suryo; sum1 += suryo; cnt++; } ave = sum1 / cnt; syousu = (double)sum1 / (double)cnt - (double)av...
#include <stdio.h> int main(int argc, const char *argv[]) { int tanka, suryo, sum = 0, cnt = 0, sum1 = 0, ave = 0; double syousu; while (scanf("%d, %d", &tanka, &suryo) != EOF) { sum += tanka * suryo; sum1 += suryo; cnt++; } ave = sum1 / cnt; syousu = (double)sum1 / (double)cnt - (double)av...
[["-", 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]]
0
123
4
#include <stdio.h> int main() { int x = 0, y = 0, a = 0, b = 0, i = 0; while (scanf("%d,%d", &x, &y) != EOF) { a = a + x * y; b = b + y; i++; } printf("%d\n%d\n", a, b + 1 / i); return 0; }
#include <stdio.h> int main() { int x = 0, y = 0, a = 0, b = 0, i = 0; while (scanf("%d,%d", &x, &y) != EOF) { a = a + x * y; b = b + y; i++; } printf("%d\n%d\n", a, (b + 1) / i); return 0; }
[["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 0, 2, 3, 4, 0, 16, 31, 23, 0, 25]]
0
86
2
#include <stdio.h> int main(void) { int a, b, s, r, n; char c; s = r = n = 0; while (scanf("%d%c%d\n", &a, &c, &b) == 3) { s = s + a * b; r = r + b; n++; } printf("%d\n%d\n", s, (int)((0.5 + r) / n)); return 0; }
#include <stdio.h> int main(void) { int a, b, s, r, n; char c; s = r = n = 0; while (scanf("%d%c%d\n", &a, &c, &b) == 3) { s = s + a * b; r = r + b; n++; } printf("%d\n%d\n", s, (int)((0.0 + r) / n + 0.5)); return 0; }
[["-", 51, 23, 0, 16, 31, 23, 0, 16, 31, 13], ["+", 0, 16, 31, 16, 31, 23, 0, 16, 31, 13], ["+", 3, 4, 0, 74, 51, 23, 0, 16, 17, 72], ["+", 3, 4, 0, 74, 51, 23, 0, 16, 12, 13]]
0
99
4
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, n) for (int i = 0; i < (n); i++) int main() { int a, b; int sum = 0, ave = 0, cnt = 0; while (scanf("%d,%d", &a, &b) != EOF) { sum += a; ave += b; cnt++; } ave = ave * 10 / cnt; if...
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, n) for (int i = 0; i < (n); i++) int main() { int a, b; int sum = 0, ave = 0, cnt = 0; while (scanf("%d,%d", &a, &b) != EOF) { sum += a * b; ave += b; cnt++; } ave = ave * 10 / cnt; ...
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]]
1
116
2
#include <algorithm> #include <cmath> #include <cstdlib> #include <functional> #include <iostream> #include <math.h> #include <queue> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; i >= 0; i...
#include <algorithm> #include <cmath> #include <cstdlib> #include <functional> #include <iostream> #include <math.h> #include <queue> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; i >= 0; i...
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]]
1
290
2
#include <algorithm> #include <cctype> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include <string.h> #include <string> #include <vector> using namespace std; int main() { int price, num; int sum =...
#include <algorithm> #include <cctype> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include <string.h> #include <string> #include <vector> using namespace std; int main() { int price, num; int sum =...
[["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 152], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 12, 22]]
1
115
5
ary = [] while tmp = gets tmp = tmp.to_i ary << tmp end puts ary.max - ary.min
ary = [] while tmp = gets tmp = tmp.to_f ary << tmp end puts (ary.max - ary.min)
[["-", 0, 89, 8, 170, 0, 662, 12, 652, 735, 22], ["+", 0, 89, 8, 170, 0, 662, 12, 652, 735, 22], ["+", 0, 493, 0, 652, 3, 4, 0, 739, 0, 24], ["+", 0, 493, 0, 652, 3, 4, 0, 739, 0, 25]]
4
25
4
a = $>.map(&:to_f) p a.max - a.min
a = $<.map(&:to_f) p a.max - a.min
[["-", 36, 36, 0, 493, 0, 662, 12, 652, 486, 744], ["+", 36, 36, 0, 493, 0, 662, 12, 652, 486, 744]]
4
17
2
import sys ms = [] try: for v in sys.stdin: ms.append(float(v)) except: print(max(ms)-min(ms))
import sys ms = [] for v in sys.stdin: ms.append(float(v)) print(max(ms)-min(ms))
[["-", 36, 36, 36, 36, 0, 656, 0, 246, 0, 247], ["-", 36, 36, 36, 36, 0, 656, 0, 246, 0, 102], ["-", 36, 36, 0, 656, 0, 246, 0, 671, 0, 672], ["-", 36, 36, 0, 656, 0, 246, 0, 671, 0, 102]]
5
38
4
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = null; try { sc = new Scanner(System.in); String ball = "A"; while (sc.hasNext()) { String[] cup = sc.next().split(","); if (ball.equals(cup[0])) { ball = cup[1]; ...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = null; try { sc = new Scanner(System.in); String ball = "A"; while (sc.hasNext()) { String[] cup = sc.next().split(","); if (ball.equals(cup[0])) { ball = cup[1]; ...
[["-", 0, 57, 75, 57, 15, 15, 0, 492, 500, 22], ["+", 0, 57, 75, 57, 15, 15, 0, 492, 500, 22]]
3
137
2
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String ans = "A"; String ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String ans = "A"; String ...
[["-", 64, 196, 0, 1, 0, 11, 12, 504, 71, 499], ["+", 64, 196, 0, 1, 0, 11, 12, 504, 71, 499]]
3
152
4
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char a = 0; while (sc.hasNext()) { char[] list = sc.nextLine().toCharArray(); char p1 = list[0]; char p2 = list[2]; if (p1 == a || p2 == a) { if (p1 ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char a = 'A'; while (sc.hasNext()) { char[] list = sc.nextLine().toCharArray(); char p1 = list[0]; char p2 = list[2]; if (p1 == a || p2 == a) { if (p...
[["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 252]]
3
121
20
import static java.lang.Math.*; import static java.util.Arrays.*; import java.io.*; import java.lang.*; import java.math.*; import java.util.*; public class Main { Scanner sc; static final int INF = 1 << 28; static final double EPS = 1e-9; void run() { sc = new Scanner(System.in); char ans = 'A'; ...
import static java.lang.Math.*; import static java.util.Arrays.*; import java.io.*; import java.lang.*; import java.math.*; import java.util.*; public class Main { Scanner sc; static final int INF = 1 << 28; static final double EPS = 1e-9; void run() { sc = new Scanner(System.in); char ans = 'A'; ...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95]]
3
223
1
import static java.lang.Math.*; import static java.util.Arrays.*; import java.util.*; // AOJ 0047 public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int[] cup = {1, 0, 0}; while (sc.hasNextInt()) { String[] ss = sc.next().split(","); int i...
import static java.lang.Math.*; import static java.util.Arrays.*; import java.util.*; // AOJ 0047 public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int[] cup = {1, 0, 0}; while (sc.hasNext()) { String[] ss = sc.next().split(","); int i1 =...
[["-", 8, 196, 0, 52, 15, 15, 0, 492, 141, 22], ["+", 8, 196, 0, 52, 15, 15, 0, 492, 141, 22]]
3
209
2
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String buf; double weight; String cup = "A"; while ((buf = br.readLine()) != null) { String[] str = buf.split(","); ...
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String buf; double weight; String cup = "A"; while ((buf = br.readLine()) != null) { String[] str = buf.split(","); ...
[["-", 64, 196, 0, 1, 0, 11, 12, 504, 71, 499], ["+", 64, 196, 0, 1, 0, 11, 12, 504, 71, 499]]
3
136
2
import java.util.*; public class Main { public static void main(String[] args) { new Main().run(); } Scanner sc = new Scanner(System.in); void run() { String ans = solve(); System.out.println(ans); } String solve() { String ans = "A"; while (sc.hasNext()) { String s = sc.next(); ...
import java.util.*; public class Main { public static void main(String[] args) { new Main().run(); } Scanner sc = new Scanner(System.in); void run() { String ans = solve(); System.out.println(ans); } String solve() { String ans = "A"; while (sc.hasNext()) { String s = sc.next(); ...
[["-", 8, 196, 0, 57, 64, 1, 0, 11, 12, 22], ["+", 8, 196, 0, 57, 64, 1, 0, 11, 12, 22], ["-", 0, 57, 75, 57, 64, 1, 0, 11, 12, 22], ["+", 0, 57, 75, 57, 64, 1, 0, 11, 12, 22]]
3
152
4
#include <stdio.h> int main() { char cup1, cup2; char ball; ball = 'A'; while (scanf("%c,%c", &cup1, &cup2) != EOF) { if (cup1 == ball) ball = cup2; else if (cup2 == ball) ball = cup1; printf("%c\n", ball); } return 0; }
#include <stdio.h> int main() { char cup1, cup2; char ball; ball = 'A'; while (scanf("%c,%c", &cup1, &cup2) != EOF) { if (cup1 == ball) ball = cup2; else if (cup2 == ball) ball = cup1; } printf("%c\n", ball); return 0; }
[["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]]
0
75
2
#include <stdio.h> int main(void) { char a[2]; char sign = 'A'; while (scanf("%c,%c", &a[0], &a[1]) != EOF) { if (a[0] == sign) sign = a[1]; if (a[1] == sign) sign = a[0]; } printf("%c\n", sign); return 0; }
#include <stdio.h> int main(void) { char a[2]; char sign = 'A'; while (scanf("%c,%c", &a[0], &a[1]) != EOF) { if (a[0] == sign) sign = a[1]; else if (a[1] == sign) sign = a[0]; } printf("%c\n", sign); return 0; }
[["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95]]
0
92
1
#include <stdio.h> #include <stdlib.h> int main(void) { char a = 'A'; char b, c; while (scanf("%s,%s", &b, &c) != EOF) { if (b == a) { a = c; } else if (c == a) { a = b; } } printf("%s\n", a); return 0; }
#include <stdio.h> #include <stdlib.h> int main(void) { char a = 'A'; char b, c; while (scanf("%c,%c", &b, &c) != EOF) { if (b == a) { a = c; } else if (c == a) { a = b; } } printf("%c\n", a); return 0; }
[["-", 0, 16, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 16, 31, 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, 6]]
0
80
4
#include <stdio.h> main() { char x, y, in; in = 'A'; while (scanf("%c%c", &x, &y) != EOF) { if (x == in) in = y; else if (y == in) in = x; } printf("%c\n", in); return 0; }
#include <stdio.h> main() { char x, y, in; in = 'A'; while (scanf("%c,%c", &x, &y) != EOF) { if (x == in) in = y; else if (y == in) in = x; } printf("%c\n", in); return 0; }
[["-", 0, 16, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 16, 31, 2, 3, 4, 0, 5, 0, 6]]
0
74
2
main() { char s[4]; int cup[3] = {1, 0, 0}, i, j, t; while (~scanf("%s", s)) { i = s[0] - 'A', j = s[2] - 'A'; t = cup[i], cup[i] = cup[j], cup[j] = t; } for (i = 0; i < 2; i++) cup[i] && printf("%c\n", 'A' + i); exit(0); }
main() { char s[4]; int cup[3] = {1, 0, 0}, i, j, t; while (~scanf("%s", s)) { i = s[0] - 'A', j = s[2] - 'A'; t = cup[i], cup[i] = cup[j], cup[j] = t; } for (i = 0; i < 3; i++) cup[i] && printf("%c\n", 'A' + i); exit(0); }
[["-", 0, 30, 0, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 30, 0, 9, 0, 7, 15, 16, 12, 13]]
0
128
2
char a[9]; b = 65; main() { for (; read(0, a, 5);) b = b - *a ? b - a[2] ? b : *a : a[2]; exit(!puts(&b)); }
char a[9]; b = 65; main() { for (; read(0, a, 4);) b = b - *a ? b - a[2] ? b : *a : a[2]; exit(!puts(&b)); }
[["-", 0, 9, 0, 7, 15, 2, 3, 4, 0, 13], ["+", 0, 9, 0, 7, 15, 2, 3, 4, 0, 13]]
0
63
2
#include <stdio.h> /** Application main entry point. */ int main(int argc, char *argv[]) { int cup[] = {1, 0, 0}; char a, b; int i; while (scanf(" %c,%c", &a, &b) == 2) { int tmp = cup[a - 'A']; cup[a - 'A'] = cup[b - 'A']; cup[a - 'A'] = tmp; } for (i = 0; !cup[i]; ++i) ; printf("%c\n"...
#include <stdio.h> /** Application main entry point. */ int main(int argc, char *argv[]) { int cup[] = {1, 0, 0}; char a, b; int i; while (scanf(" %c,%c", &a, &b) == 2) { int tmp = cup[a - 'A']; cup[a - 'A'] = cup[b - 'A']; cup[b - 'A'] = tmp; } for (i = 0; !cup[i]; ++i) ; printf("%c\n"...
[["-", 0, 1, 0, 11, 31, 69, 71, 16, 31, 22], ["+", 0, 1, 0, 11, 31, 69, 71, 16, 31, 22]]
0
133
2
main(x, a, b) { for (x = 65; ~scanf("%c,%c\n", &a, &b);) x = x == a ? b : x == b ? a : x; printf("%c\n", x); exit(0); }
main(x) { char a, b; for (x = 65; ~scanf("%c,%c\n", &a, &b);) x = x == a ? b : x == b ? a : x; printf("%c\n", x); exit(0); }
[["-", 0, 30, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 36, 36, 0, 30, 0, 14, 49, 65, 0, 25], ["+", 36, 36, 0, 30, 0, 14, 8, 9, 0, 45], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35], ["-", 36, 36, 36, 36, 0, 30, 0, 9, 0, 45], ["+", 0, 30, 0, 14, 8, 9, 0, 43...
0
64
8
#include <stdio.h> main() { int c[3] = {1, 0, 0}; int temp, ch1, ch2, i; char c1, c2; while (scanf("%c,%c", &c1, &c2) != EOF) { if (c1 == 'A') { ch1 = 0; } else if (c1 == 'B') { ch1 = 1; } else { ch1 = 2; } if (c2 == 'A') { ch2 = 0; } else if (c2 == 'B') { c...
#include <stdio.h> main() { int c[3] = {1, 0, 0}; int temp, ch1, ch2, i; char c1, c2; while (scanf(" %c , %c", &c1, &c2) != EOF) { if (c1 == 'A') { ch1 = 0; } else if (c1 == 'B') { ch1 = 1; } else { ch1 = 2; } if (c2 == 'A') { ch2 = 0; } else if (c2 == 'B') { ...
[["-", 0, 16, 31, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 16, 31, 2, 3, 4, 0, 5, 0, 6]]
0
224
2
s[], n = 65; main() { for (; gets(s) ? n = n - *s ? n - s[2] ? n : *s : s[2] : !puts(&n);) ; }
char s[], n = 65; main() { for (; gets(s) ? n = n - *s ? n - s[2] ? n : *s : s[2] : !puts(&n);) ; }
[["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["-", 0, 1, 0, 69, 71, 11, 12, 13, 0, 73]]
0
56
2
n = 65; main(s) { for (; gets(&s) ? n = n - s >> 16 ? n - s & 255 ? n : s >> 16 : s & 255 : !puts(&n);) ; }
n = 65; main(s) { for (; gets(&s) ? n = n - (s >> 16) ? n - (s & 255) ? n : s >> 16 : s & 255 : !puts(&n);) ; }
[["+", 64, 11, 12, 41, 15, 16, 12, 23, 0, 24], ["+", 64, 11, 12, 41, 15, 16, 12, 23, 0, 25], ["+", 12, 41, 64, 41, 15, 16, 12, 23, 0, 24], ["+", 12, 41, 64, 41, 15, 16, 12, 23, 0, 25]]
0
52
4
n = 65; main(s) { for (; gets(&s) ? n = n != s >> 16 ? n != s & 67 ? n : s >> 16 : s & 67 : !puts(&n);) ; }
n = 65; main(s) { for (; gets(&s) ? n = n != s >> 16 ? n - (s & 67) ? n : s >> 16 : s & 67 : !puts(&n);) ; }
[["-", 12, 41, 64, 41, 15, 16, 31, 16, 17, 79], ["+", 64, 11, 12, 41, 64, 41, 15, 16, 17, 33], ["+", 12, 41, 64, 41, 15, 16, 12, 23, 0, 24], ["+", 12, 41, 64, 41, 15, 16, 12, 23, 0, 25]]
0
52
4
#include <stdio.h> int main() { char a, b, c = 'A'; while (scanf("%c,%c", &a, &b) != EOF) { c = c == a ? b : c == b ? b : c; } printf("%c\n", c); return 0; }
#include <stdio.h> int main() { char a, b, c = 'A'; while (scanf("%c,%c", &a, &b) != EOF) { c = c == a ? b : c == b ? a : c; } printf("%c\n", c); return 0; }
[["-", 0, 1, 0, 11, 12, 41, 75, 41, 64, 22], ["+", 0, 1, 0, 11, 12, 41, 75, 41, 64, 22]]
0
67
2
#include <stdio.h> int main(void) { int swap1, swap2, cup[3] = {1, 0, 0}, hoge; char input1, input2; while (scanf("%c,%c", &input1, &input2) != EOF) { if (input1 == 'A') swap1 = 0; else if (input1 == 'B') swap1 = 1; else if (input1 == 'C') swap1 = 2; if (input2 == 'A') swap...
#include <stdio.h> int main(void) { int swap1, swap2, cup[3] = {1, 0, 0}, hoge; char input1, input2; while (scanf("%c,%c", &input1, &input2) != EOF) { getchar(); if (input1 == 'A') swap1 = 0; else if (input1 == 'B') swap1 = 1; else if (input1 == 'C') swap1 = 2; if (input2 == ...
[["+", 0, 52, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]]
0
209
4
#include <iostream> using namespace std; int main() { int a = 1, b = 0, c = 0, tmp; char x, y; while (cin >> x >> y) { if (x == 'A') { if (y == 'B') { tmp = a; a = b; b = tmp; } else { tmp = a; a = c; c = tmp; } } else if (x == 'B') { ...
#include <iostream> using namespace std; int main() { int a = 1, b = 0, c = 0, tmp; char x, y, z; while (cin >> x >> z >> y) { if (x == 'A') { if (y == 'B') { tmp = a; a = b; b = tmp; } else { tmp = a; a = c; c = tmp; } } else if (x == 'B...
[["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 152], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 12, 22]]
1
221
4
$table = [ 48.0 => "light fly", 51.0 => "fly", 54.0 => "bantam", 57.0 => "feather", 60.0 => "light", 64.0 => "light welter", 69.0 => "welter", 75.0 => "light middle", 81.0 => "middle", 91.0 => "light heavy", PHP_INT_MAX => "heavy", ]; main(); function main() { while ($line = trim(fgets(STDIN))) { echo j...
<?php $table = array( 48.0 => "light fly", 51.0 => "fly", 54.0 => "bantam", 57.0 => "feather", 60.0 => "light", 64.0 => "light welter", 69.0 => "welter", 75.0 => "light middle", 81.0 => "middle", 91.0 => "light heavy", PHP_INT_MAX => "heavy", ); main(); function main() { while ($line = trim(fgets(STDIN)))...
[["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 605], ["-", 0, 493, 0, 1, 0, 11, 12, 227, 0, 70], ["+", 0, 493, 0, 1, 0, 11, 12, 227, 0, 516], ["+", 0, 493, 0, 1, 0, 11, 12, 227, 0, 24], ["-", 0, 493, 0, 1, 0, 11, 12, 227, 0, 73], ["+", 0, 493, 0, 1, 0, 11, 12, 227, 0, 25]]
6
152
6
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (true) { final String line = br.readLine(); ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (true) { final String line = br.readLine(); ...
[["-", 75, 57, 15, 15, 0, 16, 12, 16, 12, 515], ["+", 75, 57, 15, 15, 0, 16, 12, 16, 12, 515]]
3
344
2
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<String> al = new ArrayList<>(); double tmp; while (sc.hasNext()) { al.add(returnClass(sc.nextDouble())); for (String i : al) { System.out.println(i); } }...
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<String> al = new ArrayList<>(); while (sc.hasNext()) { al.add(returnClass(sc.nextDouble())); } for (String i : al) { System.out.println(i); } } static String ...
[["-", 0, 195, 8, 196, 0, 503, 39, 511, 0, 512], ["-", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22], ["-", 8, 498, 0, 195, 8, 196, 0, 503, 0, 35], ["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 46], ["-", 0, 52, 8, 196, 0, 514, 8, 196, 0, 46]]
3
226
5
import java.util.Scanner; public class Main { private Scanner sc; public static void main(String[] args) { new Main(); } public Main() { sc = new Scanner(System.in); while (sc.hasNextLine()) { double weight = Double.parseDouble(sc.nextLine()); String c = ""; if (weight > 91.0) ...
import java.util.Scanner; public class Main { private Scanner sc; public static void main(String[] args) { new Main(); } public Main() { sc = new Scanner(System.in); while (sc.hasNextLine()) { double weight = Double.parseDouble(sc.nextLine()); String c = ""; if (weight > 91.0) ...
[["-", 75, 57, 64, 1, 0, 11, 12, 5, 0, 491], ["+", 75, 57, 64, 1, 0, 11, 12, 5, 0, 491]]
3
224
2
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { double wgt = Double.parseDouble(sc.nextLine()); String opt; if (wgt <= 48.00) { opt = "light fly"; } else if (wgt <= 51.00) { ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { double wgt = Double.parseDouble(sc.nextLine()); String opt; if (wgt <= 48.00) { opt = "light fly"; } else if (wgt <= 51.00) { ...
[["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 491], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 491]]
3
229
2
import java.io.*; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { String str; Double wgt; Scanner in = new Scanner(System.in); // BufferedReader in = new BufferedReader(new //InputStreamReader(System.in)); while (in.hasNext()) { ...
import java.io.*; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { String str; Double wgt; Scanner in = new Scanner(System.in); // BufferedReader in = new BufferedReader(new //InputStreamReader(System.in)); while (in.hasNext()) { ...
[["-", 0, 503, 49, 200, 51, 518, 0, 5, 0, 491], ["+", 0, 503, 49, 200, 51, 518, 0, 5, 0, 491]]
3
310
2
import java.util.*; public class Main { public static void main(String[] args) throws java.io.IOException { Scanner scan = new Scanner(System.in); while (scan.hasNext()) { double w = scan.nextDouble(); if (w > 91.00) System.out.println("heaby"); else if (81.00 < w && w <= 91.00) ...
import java.util.*; public class Main { public static void main(String[] args) throws java.io.IOException { Scanner scan = new Scanner(System.in); while (scan.hasNext()) { double w = scan.nextDouble(); if (w > 91.00) System.out.println("heavy"); else if (81.00 < w && w <= 91.00) ...
[["-", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
287
2
import java.util.Scanner; public class Main { public static void main(String arg[]) { Scanner scan = new Scanner(System.in); while (scan.hasNext()) { double a = scan.nextDouble(); if (a <= 48.00) System.out.println("light fly"); else if (a <= 51.00) System.out.println("fly...
import java.util.Scanner; public class Main { public static void main(String arg[]) { Scanner scan = new Scanner(System.in); while (scan.hasNext()) { double a = scan.nextDouble(); if (a <= 48.00) System.out.println("light fly"); else if (a <= 51.00) System.out.println("fly...
[["-", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
245
4
import java.io.*; import java.util.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ArrayList<String> ans = new ArrayList<String>(); String[] msg = {"light fly", "fly", "bantam", "feather", ...
import java.io.*; import java.util.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ArrayList<String> ans = new ArrayList<String>(); String[] msg = {"light fly", "fly", "bantam", "feather", ...
[["-", 8, 196, 0, 503, 49, 200, 51, 518, 0, 499], ["+", 8, 196, 0, 503, 49, 200, 51, 518, 0, 499]]
3
246
2
import java.util.*; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String out = ""; while (scanner.hasNext()) { double w = scanner.nextDouble(); if (91.00 < w) { out += "heavy"; } else if (81.00 < w && w <= 91.00) { out +=...
import java.util.*; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String out = ""; while (scanner.hasNext()) { double w = scanner.nextDouble(); if (91.00 < w) { out += "heavy"; } else if (81.00 < w && w <= 91.00) { out +=...
[["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 491], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 491]]
3
274
4
import java.io.*; class Main { public static void main(String args[]) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); String str; while ((str = input.readLine()) != null) { float w = Float.parseFloat(str); if (w <= 48.00) System.out.pri...
import java.io.*; class Main { public static void main(String args[]) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); String str; while ((str = input.readLine()) != null) { float w = Float.parseFloat(str); if (w <= 48.00) System.out.pri...
[["-", 75, 57, 75, 57, 15, 15, 0, 16, 31, 22], ["+", 75, 57, 75, 57, 15, 15, 0, 16, 31, 515], ["-", 75, 57, 75, 57, 15, 15, 0, 16, 12, 499], ["+", 75, 57, 75, 57, 15, 15, 0, 16, 12, 22]]
3
302
4
#include <stdio.h> double lim[10] = {48.00, 51.00, 54.00, 57.00, 60.00, 64.00, 69.00, 75.00, 81.00, 91.00}; char rank[11][16] = {"light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle", "middle", "light heav...
#include <stdio.h> double lim[10] = {48.00, 51.00, 54.00, 57.00, 60.00, 64.00, 69.00, 75.00, 81.00, 91.00}; char rank[11][16] = {"light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle", "middle", "light heav...
[["-", 0, 52, 15, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 52, 15, 23, 0, 16, 12, 16, 12, 13]]
0
148
2
#include <stdio.h> int main() { double w; while (scanf("%lf", &w) != EOF) { if (w > 91.00) printf("heavy\n"); else if (w > 81.00) printf("light heavy\n"); else if (w > 75.00) printf("middle\n"); else if (w > 69.00) printf("light middle\n"); else if (w > 64.00) print...
#include <stdio.h> int main() { double w; while (scanf("%lf", &w) != EOF) { if (w > 91.00) printf("heavy\n"); else if (w > 81.00) printf("light heavy\n"); else if (w > 75.00) printf("middle\n"); else if (w > 69.00) printf("light middle\n"); else if (w > 64.00) print...
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 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, 6]]
0
188
6
#include <stdio.h> char *class[11] = {"light fly\n", "fly\n", "bantam\n", "feather\n", "light\n", "light welter\n", "welter\n", "light middle\n", "middle\n", "light heavy\n", "heavy\n"}; double weight[10] = {48, 51, 54, 57, 60, 64, 69, ...
#include <stdio.h> char *class[11] = {"light fly\n", "fly\n", "bantam\n", "feather\n", "light\n", "light welter\n", "welter\n", "light middle\n", "middle\n", "light heavy\n", "heavy\n"}; double weight[10] = {48, 51, 54, 57, 60, 64, 69, ...
[["-", 8, 9, 0, 7, 15, 16, 31, 16, 17, 20], ["+", 8, 9, 0, 7, 15, 16, 31, 16, 17, 47]]
0
158
2
#include <stdio.h> int main(void) { double w; while (scanf("%lf", &w) != EOF) { if (w > 91.0) puts("heavy"); else if (w > 81.0) puts("light heavy"); else if (w > 75.0) puts("middle"); else if (w > 69.0) puts("light middle"); else if (w > 64.0) puts("welter"); ...
#include <stdio.h> int main(void) { double w; while (scanf("%lf", &w) != EOF) { if (w > 91.0) puts("heavy"); else if (w > 81.0) puts("light heavy"); else if (w > 75.0) puts("middle"); else if (w > 69.0) puts("light middle"); else if (w > 64.0) puts("welter"); ...
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
178
2
#include <stdio.h> int main(void) { double w; while (scanf("%lf", &w) != EOF) { if (w <= 48.00) { printf("light fly\n"); } if (48.00 < w && w <= 51.00) { printf("fly\n"); } if (51.00 < w && w <= 54.00) { printf("bantam\n"); } if (54.00 < w && w <= 57.00) { printf...
#include <stdio.h> int main(void) { double w; while (scanf("%lf", &w) != EOF) { if (w <= 48.00) { printf("light fly\n"); } if (48.00 < w && w <= 51.00) { printf("fly\n"); } if (51.00 < w && w <= 54.00) { printf("bantam\n"); } if (54.00 < w && w <= 57.00) { printf...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
243
2
#include <stdio.h> int main(void) { double weight; while (scanf("%lf", &weight) != EOF) { if (48.00 >= weight) { printf("light fly\n"); } else if (48.00 < weight && 51.00 >= weight) { printf("fly\n"); } else if (51.00 < weight && 54.00 >= weight) { printf("bantam\n"); } else if (5...
#include <stdio.h> int main(void) { double weight; while (scanf("%lf", &weight) != EOF) { if (48.00 >= weight) { printf("light fly\n"); } else if (48.00 < weight && 51.00 >= weight) { printf("fly\n"); } else if (51.00 < weight && 54.00 >= weight) { printf("bantam\n"); } else if (5...
[["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 18]]
0
253
2
#include <stdio.h> int main(void) { double weight; while (scanf("%lf", &weight) != EOF) { if (weight <= 48.00) printf("liget fly\n"); else if (48.00 < weight && weight <= 51.00) printf("fly\n"); else if (51.00 < weight && weight <= 54.00) printf("bantam\n"); else if (54.00 < weight...
#include <stdio.h> int main(void) { double weight; while (scanf("%lf", &weight) != EOF) { if (weight <= 48.00) printf("light fly\n"); else if (48.00 < weight && weight <= 51.00) printf("fly\n"); else if (51.00 < weight && weight <= 54.00) printf("bantam\n"); else if (54.00 < weight...
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
231
2
#include <stdio.h> int main(void) { double weight; while (scanf("%lf", &weight) != EOF) { if (weight <= 48) printf("light fly\n"); else if (weight > 48 && weight <= 51) printf("fly\n"); if (weight > 51 && weight <= 54) printf("bantam\n"); if (weight > 54 && weight <= 57) prin...
#include <stdio.h> int main(void) { double weight; while (scanf("%lf", &weight) != EOF) { if (weight <= 48) printf("light fly\n"); else if (weight > 48 && weight <= 51) printf("fly\n"); if (weight > 51 && weight <= 54) printf("bantam\n"); if (weight > 54 && weight <= 57) prin...
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
222
2
#include <stdio.h> int main() { double in; while (scanf("%lf", &in) != EOF) { if (in > 91) { printf("heavy\n"); } else if (in > 81) { printf("light heavy\n"); } else if (in > 75) { printf("middle\n"); } else if (in > 69) { printf("light middle\n"); } else if (i...
#include <stdio.h> int main() { double in; while (scanf("%lf", &in) != EOF) { if (in > 91) { printf("heavy\n"); } else if (in > 81) { printf("light heavy\n"); } else if (in > 75) { printf("middle\n"); } else if (in > 69) { printf("light middle\n"); } else if (i...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
210
2
#include <stdio.h> int main(void) { double x; while (1) { if (scanf("%lf", &x) == EOF) { break; } if (48.00 >= x) { puts("light fly"); } else if (48.00 < x && 51.00 >= x) { puts("fly"); } else if (51.00 < x && 54.00 >= x) { puts("bantam"); } else if (54.00 < x && 57...
#include <stdio.h> int main(void) { double x; while (1) { if (scanf("%lf", &x) == EOF) { break; } if (48.00 >= x) { puts("light fly"); } else if (48.00 < x && 51.00 >= x) { puts("fly"); } else if (51.00 < x && 54.00 >= x) { puts("bantam"); } else if (54.00 < x && 57...
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 18]]
0
250
2
#include <stdio.h> char *class[11] = {"light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle", "middle", "light heavy", "heavy"}; int limit[11] = {48, 51, 54, 57, 60, 64, 69, 75, 81, 91, -1}; int main(void) { float weight; ...
#include <stdio.h> char *class[11] = {"light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle", "middle", "light heavy", "heavy"}; int limit[11] = {48, 51, 54, 57, 60, 64, 69, 75, 81, 91, -1}; int main(void) { float weight; ...
[["-", 0, 7, 8, 57, 15, 23, 0, 16, 17, 18], ["+", 0, 7, 8, 57, 15, 23, 0, 16, 17, 19]]
0
154
2
#include <stdio.h> int main(void) { double h; while (scanf("%lf", &h) != EOF) { if (h <= 48.0) printf("light fly\n"); else if (h > 48.0 && h <= 51.0) printf("fly\n"); else if (h > 51.0 && h <= 54.0) printf("bantam\n"); else if (h > 54.0 && h <= 57.0) printf("feather\n"); ...
#include <stdio.h> int main(void) { double h; while (scanf("%lf", &h) != EOF) { if (h <= 48.0) printf("light fly\n"); else if (h > 48.0 && h <= 51.0) printf("fly\n"); else if (h > 51.0 && h <= 54.0) printf("bantam\n"); else if (h > 54.0 && h <= 57.0) printf("feather\n"); ...
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
224
1
#include <math.h> #include <stdio.h> int main(void) { double ww; while (scanf("%lf", &ww) != EOF) { if (ww > 91.0) printf("heavy\n"); else if (ww > 81.0) printf("light heavy\n"); else if (ww > 75.0) printf("middle\n"); else if (ww > 69.0) printf("light middle\n"); else i...
#include <math.h> #include <stdio.h> int main(void) { double ww; while (scanf("%lf", &ww) != EOF) { if (ww > 91.0) printf("heavy\n"); else if (ww > 81.0) printf("light heavy\n"); else if (ww > 75.0) printf("middle\n"); else if (ww > 69.0) printf("light middle\n"); else i...
[["-", 75, 76, 0, 57, 15, 23, 0, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 12, 13]]
0
191
2
#include <stdio.h> main() { double n; while (scanf("%lf", &n) != EOF) { if (n <= 48.00) printf("light fly"); else if (n <= 51.00) printf("fly"); else if (n <= 54.00) printf("bantam"); else if (n <= 57.00) printf("feather"); else if (n <= 60.00) printf("light"); ...
#include <stdio.h> main() { double n; while (scanf("%lf", &n) != EOF) { if (n <= 48.00) printf("light fly"); else if (n <= 51.00) printf("fly"); else if (n <= 54.00) printf("bantam"); else if (n <= 57.00) printf("feather"); else if (n <= 60.00) printf("light"); ...
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
184
2
#include <stdio.h> int main() { double a[100], n; int i = 0; while (scanf("%lf", &n) != EOF) { a[i] = n; i++; } int j; for (j = 0; j < i; j++) { if (a[j] <= 48) { puts("light fly"); } else if (a[j] <= 51) { puts("fly"); } else if (a[j] <= 54) { puts("bantam"); } el...
#include <stdio.h> int main() { double a[100], n; int i = 0; while (scanf("%lf", &n) != EOF) { a[i] = n; i++; } int j; for (j = 0; j < i; j++) { if (a[j] <= 48) { puts("light fly"); } else if (a[j] <= 51) { puts("fly"); } else if (a[j] <= 54) { puts("bantam"); } el...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
267
2
#include <stdio.h> int main(void) { double weight; while (scanf("%lf", &weight) != EOF) { if (weight <= 48.00) { printf("light fly\n"); } else if (weight <= 51.00) { printf("fly\n"); } else if (weight <= 54.00) { printf("bantam\n"); } else if (weight <= 57.00) { printf("feath...
#include <stdio.h> int main(void) { double weight; while (scanf("%lf", &weight) != EOF) { if (weight <= 48.00) { printf("light fly\n"); } else if (weight <= 51.00) { printf("fly\n"); } else if (weight <= 54.00) { printf("bantam\n"); } else if (weight <= 57.00) { printf("feath...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
211
2
#include <stdio.h> int main(void) { float weight; while (scanf("%f", &weight) != EOF) { if (weight < 48.0) { puts("light fly"); } else if (weight <= 51.0) { puts("fly"); } else if (weight <= 54.0) { puts("bantam"); } else if (weight <= 57.0) { puts("feather"); } else if...
#include <stdio.h> int main(void) { float weight; while (scanf("%f", &weight) != EOF) { if (weight <= 48.0) { puts("light fly"); } else if (weight <= 51.0) { puts("fly"); } else if (weight <= 54.0) { puts("bantam"); } else if (weight <= 57.0) { puts("feather"); } else i...
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]]
0
200
2
#include <algorithm> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; #define EPS (1e-10) const char *Class(double w) { #define judgeit(lim, name) \ { ...
#include <algorithm> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; #define EPS (1e-10) const char *Class(double w) { #define judgeit(lim, name) \ { ...
[["-", 0, 14, 8, 9, 0, 37, 0, 5, 0, 6], ["+", 0, 14, 8, 9, 0, 37, 0, 5, 0, 6]]
1
167
2
#include <iostream> using namespace std; int main() { double w; while (cin >> w) { if (w <= 48.0) { cout << "light fly" << endl; continue; } else if (w <= 51.0) { cout << "fly" << endl; continue; } else if (w <= 54.0) { cout << "bantan" << endl; continue; } else ...
#include <iostream> using namespace std; int main() { double w; while (cin >> w) { if (w <= 48.0) { cout << "light fly" << endl; continue; } else if (w <= 51.0) { cout << "fly" << endl; continue; } else if (w <= 54.0) { cout << "bantam" << endl; continue; } else ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
222
2
#include <bits/stdc++.h> using namespace std; int main() { double w; while (scanf("%lf", &w) != EOF) { if (w <= 48.0) cout << "light fly" << endl; else if (48.0 < w && w <= 51.0) cout << "fly" << endl; else if (51.0 < w && w <= 54.0) cout << "bantam" << endl; else if (54.0 < w && ...
#include <bits/stdc++.h> using namespace std; int main() { double w; while (scanf("%lf", &w) != EOF) { if (w <= 48.0) cout << "light fly" << endl; else if (48.0 < w && w <= 51.0) cout << "fly" << endl; else if (51.0 < w && w <= 54.0) cout << "bantam" << endl; else if (54.0 < w && ...
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18]]
1
234
2
#include <iostream> using namespace std; int main() { double x; while (cin >> x) { if (x <= 48.00) cout << "light fly" << endl; else if (x <= 51.00) cout << "fly" << endl; else if (x <= 54.00) cout << "bantam" << endl; else if (x <= 57.00) cout << "feather" << endl; els...
#include <iostream> using namespace std; int main() { double x; while (cin >> x) { if (x <= 48.00) cout << "light fly" << endl; else if (x <= 51.00) cout << "fly" << endl; else if (x <= 54.00) cout << "bantam" << endl; else if (x <= 57.00) cout << "feather" << endl; els...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
181
2
#include <iostream> #include <string> using namespace std; int main() { const string Class[11] = {"light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle", "middle", "ligh...
#include <iostream> #include <string> using namespace std; int main() { const string Class[11] = {"light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle", "middle", "ligh...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]]
1
201
4
#include <iostream> #include <string> using namespace std; double x[11] = {48, 51, 54, 57, 60, 64, 69, 75, 81, 90, 1000000000}, a; string S[11] = {"light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle", "middle", "light heavy", "heavy"...
#include <iostream> #include <string> using namespace std; double x[11] = {48, 51, 54, 57, 60, 64, 69, 75, 81, 91, 1000000000}, a; string S[11] = {"light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle", "middle", "light heavy", "heavy"...
[["-", 0, 30, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 0, 30, 0, 43, 49, 50, 51, 83, 0, 13]]
1
144
2
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, n) for (int i = 0; i < (n); i++) int main() { double n; while (cin >> n) { if (n <= 48.0) cout << "light fly" << endl; else if (n <= 51.0) cout << "fly" << endl; else if (n <= ...
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, n) for (int i = 0; i < (n); i++) int main() { double n; while (cin >> n) { if (n <= 48.0) cout << "light fly" << endl; else if (n <= 51.0) cout << "fly" << endl; else if (n <= ...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
199
4
#include <stdio.h> int main(void) { double weight; while (scanf("%lf", &weight) != EOF) { if (weight <= 48) { printf("light fly"); } else if (weight <= 51) { printf("fly"); } else if (weight <= 54) { printf("bantam"); } else if (weight <= 57) { printf("feather"); } else...
#include <stdio.h> int main(void) { double weight; while (scanf("%lf", &weight) != EOF) { if (weight <= 48) { printf("light fly"); } else if (weight <= 51) { printf("fly"); } else if (weight <= 54) { printf("bantam"); } else if (weight <= 57) { printf("feather"); } else...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
207
2
#define _CRT_SECURE_NO_WARNINGS 1 #include <algorithm> #include <climits> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define M_PI 3.141592 #define toRad 2.0 * M_PI / 360.0 #define i...
#define _CRT_SECURE_NO_WARNINGS 1 #include <algorithm> #include <climits> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; #define M_PI 3.141592 #define toRad 2.0 * M_PI / 360.0 #define i...
[["+", 0, 43, 49, 50, 51, 83, 0, 5, 0, 6], ["+", 0, 43, 49, 50, 51, 83, 0, 5, 0, 62], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 21]]
1
204
4
#define _USE_MATH_DEFINES #include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <deque> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using name...
#define _USE_MATH_DEFINES #include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <cstdio> #include <deque> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using name...
[["-", 8, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["+", 8, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["-", 8, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 8, 57, 15, 339, 51, 16, 12, 16, 17, 19]]
1
187
4
#include <algorithm> #include <cmath> #include <cstdlib> #include <functional> #include <iostream> #include <math.h> #include <queue> #include <stdio.h> #include <stdlib.h> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; i >= 0; i--) #define FOR(i, m...
#include <algorithm> #include <cmath> #include <cstdlib> #include <functional> #include <iostream> #include <math.h> #include <queue> #include <stdio.h> #include <stdlib.h> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < n; i++) #define REPR(i, n) for (int i = n; i >= 0; i--) #define FOR(i, m...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]]
1
504
2
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <queue> #include <stack> #include <string> #include <utility> #include <vector> #define ll long long int #define ld long double #define INF 1000000000 #define EPS 0.0000000001 #define rep(i, n) for (i = 0; i < n; i++) using namespace s...
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <queue> #include <stack> #include <string> #include <utility> #include <vector> #define ll long long int #define ld long double #define INF 1000000000 #define EPS 0.0000000001 #define rep(i, n) for (i = 0; i < n; i++) using namespace s...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
237
2
#define scanf_s scanf //#define gets_s gets #include <iostream> #include <math.h> #include <stdio.h> #include <string> using namespace std; #define MIN 40 #define MAX 1000000 int main(void) { char *C[] = {"light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light mi...
#define scanf_s scanf //#define gets_s gets #include <iostream> #include <math.h> #include <stdio.h> #include <string> using namespace std; #define MIN 39 #define MAX 150 int main(void) { char *C[] = {"light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle...
[["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 21]]
1
182
8
#include <iostream> using namespace std; int main() { double w; while (cin >> w) { if (w > 91) { cout << "heavy" << endl; } else if (w > 81) { cout << "light heavy" << endl; } else if (w > 75) { cout << "middle" << endl; } else if (w > 69) { cout << "light middle" << endl; ...
#include <iostream> using namespace std; int main() { double w; while (cin >> w) { if (w > 91) { cout << "heavy" << endl; } else if (w > 81) { cout << "light heavy" << endl; } else if (w > 75) { cout << "middle" << endl; } else if (w > 69) { cout << "light middle" << endl; ...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
206
4
#include <cstdio> #include <iostream> using namespace std; #define int long long signed main() { float a; while (scanf("%f", &a) != EOF) { if (a <= 48) cout << "light fly" << endl; else if (a <= 51) cout << "fly" << endl; else if (a <= 54) cout << "feather" << endl; else if (a <= 5...
#include <cstdio> #include <iostream> using namespace std; #define int long long signed main() { float a; while (scanf("%f", &a) != EOF) { if (a <= 48) cout << "light fly" << endl; else if (a <= 51) cout << "fly" << endl; else if (a <= 54) cout << "bantam" << endl; else if (a <= 57...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
197
4
#include <bits/stdc++.h> using namespace std; int main() { double a; while (cin >> a) { if (a <= 48.00) printf("light fly\n"); else if (a <= 51.00) printf("fly\n"); else if (a <= 54.00) printf("bantam\n"); else if (a <= 57.00) printf("feather\n"); else if (a <= 60.00) ...
#include <bits/stdc++.h> using namespace std; int main() { double a; while (cin >> a) { if (a <= 48.00) printf("light fly\n"); else if (a <= 51.00) printf("fly\n"); else if (a <= 54.00) printf("bantam\n"); else if (a <= 57.00) printf("feather\n"); else if (a <= 60.00) ...
[["+", 0, 57, 75, 76, 0, 1, 0, 2, 63, 22]]
1
185
1
#include <iostream> using namespace std; int main(void) { double w; while (cin >> w) { if (w <= 48) { cout << "light fly" << endl; } else if (w > 48 && w <= 51) { cout << "fly"; } else if (w > 51 && w <= 54) { cout << "bantam"; } else if (w > 54 && w <= 57) { cout << "feath...
#include <iostream> using namespace std; int main(void) { double w; while (cin >> w) { if (w <= 48) { cout << "light fly"; } else if (w > 48 && w <= 51) { cout << "fly"; } else if (w > 51 && w <= 54) { cout << "bantam"; } else if (w > 54 && w <= 57) { cout << "feather"; ...
[["-", 0, 57, 64, 9, 0, 1, 0, 16, 17, 151], ["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]]
1
233
2
#include <algorithm> #include <iostream> #include <string> using namespace std; string s[11] = {"light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle", "middle", "light heavy", "heavy"}; double g[] = {48.0, 51.0, 54.0, 57.0, 60.0, 64....
#include <algorithm> #include <iostream> #include <string> using namespace std; string s[11] = {"light fly", "fly", "bantam", "feather", "light", "light welter", "welter", "light middle", "middle", "light heavy", "heavy"}; double g[] = {48.0, 51.0, 54.0, 57.0, 60.0, 64....
[["-", 8, 9, 0, 7, 15, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 7, 15, 16, 31, 16, 12, 13]]
1
143
2
#include <iostream> using namespace std; int main(void) { double weight; while (cin >> weight) { if (weight <= 48.0) cout << "light fly" << endl; else if (weight <= 51.0) cout << "fly" << endl; else if (weight <= 54.0) cout << "bantam" << endl; else if (weight <= 57.0) cout <...
#include <iostream> using namespace std; int main(void) { double weight; while (cin >> weight) { if (weight <= 48.0) cout << "light fly" << endl; else if (weight <= 51.0) cout << "fly" << endl; else if (weight <= 54.0) cout << "bantam" << endl; else if (weight <= 57.0) cout <...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
185
2
#include <iostream> using namespace std; main() { double d; while (cin >> d) { cout << ((d <= 48) ? "light fly" : ((d <= 51) ? "fly" : ((d <= 54) ? "bantam" : ((d <= ...
#include <iostream> using namespace std; main() { double d; while (cin >> d) { cout << ((d <= 48) ? "light fly" : ((d <= 51) ? "fly" : ((d <= 54) ? "bantam" : ((d <= ...
[["-", 0, 41, 75, 23, 0, 41, 75, 5, 0, 6], ["+", 0, 41, 75, 23, 0, 41, 75, 5, 0, 6]]
1
156
2
#include <iostream> using namespace std; int main() { double n; while (cin >> n && n) { if (n > 91.00) cout << "heavy" << endl; else if (n > 81.00) cout << "light middle" << endl; else if (n > 75.00) cout << "middle" << endl; else if (n > 69.00) cout << "light middle" << end...
#include <iostream> using namespace std; int main() { double n; while (cin >> n) { if (n > 91.00) cout << "heavy" << endl; else if (n > 81.00) cout << "light heavy" << endl; else if (n > 75.00) cout << "middle" << endl; else if (n > 69.00) cout << "light middle" << endl; ...
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 22], ["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
186
4
#include <algorithm> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include ...
#include <algorithm> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include ...
[["-", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 11, 12, 5, 0, 6]]
1
381
2
#include <iostream> using namespace std; int main() { double n; while (cin >> n) { if (n <= 48.0) cout << "light fly" << endl; else if (n <= 51.0) cout << "fly" << endl; else if (n <= 54.0) cout << "bantam" << endl; else if (n <= 57.0) cout << "feather" << endl; else if...
#include <iostream> using namespace std; int main() { double n; while (cin >> n) { if (n <= 48.0) cout << "light fly" << endl; else if (n <= 51.0) cout << "fly" << endl; else if (n <= 54.0) cout << "bantam" << endl; else if (n <= 57.0) cout << "feather" << endl; else if...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 35]]
1
186
2
#include <iostream> using namespace std; int main() { double n; while (cin >> n) { if (n <= 48.0) cout << "light fly" << endl; else if (n <= 51.0) cout << "fly" << endl; else if (n <= 54.0) cout << "bantam" << endl; else if (n <= 57.0) cout << "feather" << endl; else if...
#include <iostream> using namespace std; int main() { double n; while (cin >> n) { if (n <= 48.0) cout << "light fly" << endl; else if (n <= 51.0) cout << "fly" << endl; else if (n <= 54.0) cout << "bantam" << endl; else if (n <= 57.0) cout << "feather" << endl; else if...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
186
2
#include <iostream> using namespace std; int main() { double n; while (cin >> n) { if (n <= 48.0) cout << "light fly" << endl; else if (n <= 51.0) cout << "fly" << endl; else if (n <= 54.0) cout << "bantam" << endl; else if (n <= 57.0) cout << "feather" << endl; else if...
#include <iostream> using namespace std; int main() { double n; while (cin >> n) { if (n <= 48.0) cout << "light fly" << endl; else if (n <= 51.0) cout << "fly" << endl; else if (n <= 54.0) cout << "bantam" << endl; else if (n <= 57.0) cout << "feather" << endl; else if...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 57, 75, 76, 0, 9, 0, 45], ["-", 75, 76, 0, 57, 75, 76, 0, 9, 0, 46]]
1
183
4
#include <iostream> #include <string> using namespace std; string whatclass(double d) { string s; if (d <= 48) { s = "lignt fly"; } else if (d <= 51) { s = "fly"; } else if (d <= 54) { s = "bantam"; } else if (d <= 57) { s = "feather"; } else if (d <= 60) { s = "light"; } else if (d ...
#include <iostream> #include <string> using namespace std; string whatclass(double d) { string s; if (d <= 48) { s = "light fly"; } else if (d <= 51) { s = "fly"; } else if (d <= 54) { s = "bantam"; } else if (d <= 57) { s = "feather"; } else if (d <= 60) { s = "light"; } else if (d...
[["-", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
206
2