Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
9 values
p02712
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); long N = sc.nextInt(); long ans = 0; for (long i = 1; i < N; i++) { if (i % 3 == 0 && i % 5 == 0) { } else if (i % 3 == 0 || i % 5 == 0) ...
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); long N = sc.nextInt(); long ans = 0; for (long i = 1; i <= N; i++) { if (i % 3 == 0 && i % 5 == 0) { } else if (i % 3 == 0 || i % 5 == 0)...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
474,507
474,508
u014079196
java
p02714
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s = sc.next(); int r = 0; int g = 0; int b = 0; for (int i = 0; i < n; i++) { char c = s.charAt(i); if (c == 'R') ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s = sc.next(); long r = 0; long g = 0; long b = 0; for (int i = 0; i < n; i++) { char c = s.charAt(i); if (c == 'R') ...
[ "variable_declaration.type.primitive.change" ]
476,511
476,512
u818498408
java
p02714
import java.io.*; import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s = sc.next(); int countr = 0; int countg = 0; int countb = 0; long sum = 0; for (int i = 0; i < n; i++) { if ((int)s.ch...
import java.io.*; import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s = sc.next(); int countr = 0; int countg = 0; int countb = 0; long sum = 0; for (int i = 0; i < n; i++) { if ((int)s.ch...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
477,309
477,310
u929167194
java
p02714
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int r = 0, g = 0, b = 0; String text = sc.next(); char str[] = text.toCharArray(); for (int i = 0; i < n; i++) { switch (str[i]) { case 'R': ...
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long r = 0, g = 0, b = 0; String text = sc.next(); char str[] = text.toCharArray(); for (int i = 0; i < n; i++) { switch (str[i]) { case 'R': ...
[ "variable_declaration.type.primitive.change" ]
477,656
477,657
u909323623
java
p02714
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String S = sc.next(); sc.close(); int R = 0; int G = 0; int B = 0; for (int i = 0; i < N; i++) { char ch = S.charAt(i); if (ch == 'R'...
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String S = sc.next(); sc.close(); long R = 0; long G = 0; long B = 0; for (int i = 0; i < N; i++) { char ch = S.charAt(i); if (ch == ...
[ "variable_declaration.type.primitive.change" ]
479,529
479,530
u344869639
java
p02717
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); int Z = sc.nextInt(); int[] cba = {Z, Y, X}; for (int i : cba) { System.out.print(i + " "); } sc.close(); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); int Z = sc.nextInt(); int[] cab = {Z, X, Y}; for (int i : cab) { System.out.print(i + " "); } sc.close(); } }
[ "variable_declaration.name.change", "identifier.change" ]
480,311
480,312
u680966822
java
p02718
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int M = scan.nextInt(); int[] A = new int[N]; int votes = 0; for (int i = 0; i < N; i++) { A[i] = scan.nextIn...
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int M = scan.nextInt(); int[] A = new int[N]; float votes = 0; for (int i = 0; i < N; i++) { A[i] = scan.next...
[ "variable_declaration.type.primitive.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
481,936
481,937
u690813501
java
p02718
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int[] a = new int[n]; int sum = 0; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); sum += a[i]; } int min = ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int[] a = new int[n]; double sum = 0; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); sum += a[i]; } double ...
[ "variable_declaration.type.primitive.change" ]
482,513
482,514
u465572759
java
p02718
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); ArrayList<Integer> list = new ArrayList<>(); int sum = 0; int res; for (int i = 0; i < n; i++) { int hoge = sc.nextInt();...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); ArrayList<Integer> list = new ArrayList<>(); int sum = 0; int res; for (int i = 0; i < n; i++) { int hoge = sc.nextInt();...
[ "control_flow.branch.if.condition.change" ]
483,097
483,098
u876982823
java
p02718
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int[] a = new int[n]; int sum = 0; int p = 0; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); sum += a[i]; ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int[] a = new int[n]; double sum = 0; int p = 0; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); sum += a[i]; ...
[ "variable_declaration.type.primitive.change", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
483,793
483,794
u946973499
java
p02718
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner console = new Scanner(System.in); int N = console.nextInt(); int M = console.nextInt(); int[] arr = new int[N]; for (int i = 0; i < N; i++) { arr[i] = console.nextInt(); } int count = 0; int ...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner console = new Scanner(System.in); int N = console.nextInt(); int M = console.nextInt(); int[] arr = new int[N]; for (int i = 0; i < N; i++) { arr[i] = console.nextInt(); } int count = 0; int ...
[ "expression.operation.binary.change" ]
484,796
484,797
u840873940
java
p02718
import java.util.*; import java.util.Arrays; import java.util.Collections; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int m = scan.nextInt(); int list[] = new int[n]; long sum = 0; boolean flag = true; for (...
import java.util.*; import java.util.Arrays; import java.util.Collections; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int m = scan.nextInt(); int list[] = new int[n]; double sum = 0; boolean flag = true; for...
[ "variable_declaration.type.primitive.change" ]
486,275
486,276
u404196289
java
p02718
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); List<Integer> list = new ArrayList<Integer>(); int n = scanner.nextInt(); int m = scanner.nextInt(); int sumVotes ...
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); List<Integer> list = new ArrayList<Integer>(); int n = scanner.nextInt(); int m = scanner.nextInt(); int sumVotes =...
[ "variable_declaration.type.primitive.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
486,385
486,386
u832923549
java
p02718
import java.io.BufferedInputStream; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(new BufferedInputStream(System.in)); int n = sc.nextInt(); int m = sc.nextInt(); int total = 0; PriorityQueue<Integer> st = new PriorityQueue<>(); for ...
import java.io.BufferedInputStream; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(new BufferedInputStream(System.in)); int n = sc.nextInt(); int m = sc.nextInt(); int total = 0; PriorityQueue<Integer> st = new PriorityQueue<>(); for ...
[ "control_flow.branch.if.condition.change" ]
488,770
488,771
u530712718
java
p02718
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int M = scan.nextInt(); int A[] = new int[N]; String coment = "No"; int total = 0; for (int i = 0; i < N; i++) { A[i] = scan.nextInt...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int M = scan.nextInt(); int A[] = new int[N]; String coment = "No"; int total = 0; for (int i = 0; i < N; i++) { A[i] = scan.nextInt...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
489,200
489,201
u959307673
java
p02719
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long N = scan.nextInt(); long K = scan.nextInt(); Long m = new Long(N % K); Long x = new Long(K - m); if (m.compareTo(x) == 1) { System.out.println(x); ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); Long N = scan.nextLong(); Long K = scan.nextLong(); Long m = new Long(N % K); Long x = new Long(K - m); if (m.compareTo(x) == 1) { System.out.println(x); ...
[ "identifier.change", "call.function.change" ]
490,669
490,670
u510558844
java
p02719
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextInt(); long K = sc.nextInt(); if (N % K < K - N % K) { System.out.println(N % K); } else { System.out.println(K - N % K); } } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long K = sc.nextLong(); if (N % K < K - N % K) { System.out.println(N % K); } else { System.out.println(K - N % K); } } }
[ "identifier.change", "call.function.change" ]
491,131
491,132
u756532161
java
p02719
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); if (N % K < K - N % K) { System.out.println(N % K); } else { System.out.println(K - N % K); } } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long K = sc.nextLong(); if (N % K < K - N % K) { System.out.println(N % K); } else { System.out.println(K - N % K); } } }
[ "variable_declaration.type.primitive.change", "identifier.change", "call.function.change" ]
491,133
491,132
u756532161
java
p02719
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); if (N % K < K - N % K) { System.out.println(N % K); } else { System.out.println(K - N % K); } } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long K = sc.nextLong(); if (N % K < K - N % K) { System.out.println(N % K); } else { System.out.println(K - N % K); } } }
[ "variable_declaration.type.primitive.change", "identifier.change", "call.function.change" ]
491,134
491,132
u756532161
java
p02723
import java.util.Scanner; public class Main { public static void main(String[] args) { String coffee; Scanner scan = new Scanner(System.in); coffee = scan.nextLine(); if (coffee.length() == 6 && method(coffee)) { if (coffee.charAt(2) == coffee.charAt(3) || coffee.charAt(4) == coffee...
import java.util.Scanner; public class Main { public static void main(String[] args) { String coffee; Scanner scan = new Scanner(System.in); coffee = scan.nextLine(); if (coffee.length() == 6 && method(coffee)) { if (coffee.charAt(2) == coffee.charAt(3) && coffee.charAt(4) == coffee...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
496,195
496,196
u258441031
java
p02723
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String word = sc.next(); char[] wordStr = word.toCharArray(); if (wordStr[2] != wordStr[3]) { System.out.println("No"); return; } if (wordStr[4] == wordStr[...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String word = sc.next(); char[] wordStr = word.toCharArray(); if (wordStr[2] != wordStr[3]) { System.out.println("No"); return; } if (wordStr[4] != wordStr[5...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
496,799
496,800
u232720627
java
p02725
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = 0; int n = 0; k = sc.nextInt(); n = sc.nextInt(); int array[] = new int[n]; for (int i = 0; i < n; i++) { array[i] = sc.nextInt(); } int an...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = 0; int n = 0; k = sc.nextInt(); n = sc.nextInt(); int array[] = new int[n]; for (int i = 0; i < n; i++) { array[i] = sc.nextInt(); } int an...
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove" ]
500,643
500,644
u563853779
java
p02730
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); char[] charS = S.toCharArray(); int N = charS.length; boolean isStrong = true; for (int i = 0; i < N; i++) { if (charS[i] != charS[N - 1 - i]) { is...
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); char[] charS = S.toCharArray(); int N = charS.length; boolean isStrong = true; for (int i = 0; i < N; i++) { if (charS[i] != charS[N - 1 - i]) { is...
[]
507,278
507,279
u212397344
java
p02730
import java.io.*; import java.util.*; // solution classes here public class Main { // main solution here static Scanner sc = new Scanner(System.in); static PrintWriter out = new PrintWriter(System.out); public static void main(String[] args) throws IOException { String str = sc.next(); int n = str....
import java.io.*; import java.util.*; // solution classes here public class Main { // main solution here static Scanner sc = new Scanner(System.in); static PrintWriter out = new PrintWriter(System.out); public static void main(String[] args) throws IOException { String str = sc.next(); int n = str....
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
507,961
507,962
u571785964
java
p02741
import java.util.*; public class Main { public static void main(String args[]) { Scanner s = new Scanner(System.in); int t[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k = s.nextInt(); System.out.println(t[k + 1]); } }
import java.util.*; public class Main { public static void main(String args[]) { Scanner s = new Scanner(System.in); int t[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k = s.nextInt(); System.out.println(t[k - 1]); } }
[ "misc.opposites", "expression.operator.arithmetic.change", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
517,984
517,985
u394062737
java
p02741
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println( "1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51" .split(", ")[scanner.nextInt()]); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println( "1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51" .split(", ")[scanner.nextInt() - 1]); ...
[ "expression.operation.binary.add" ]
518,345
518,346
u763143338
java
p02742
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long h, w; h = sc.nextInt(); w = sc.nextInt(); long sum = 0; if (h == 1 || w == 1) { sum = 1; } else { if ((h % 2) == 0) { sum = (h / 2) * w; } e...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long h, w; h = sc.nextInt(); w = sc.nextInt(); long sum = 0; if (h == 1 || w == 1) { sum = 1; } else { if ((h % 2) == 0) { sum = (h / 2) * w; } ...
[ "assignment.value.change", "identifier.change", "expression.operation.binary.change" ]
519,264
519,265
u587100042
java
p02743
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long c = sc.nextLong(); long num = c - a - b; if (num < 0) { System.out.println("NO"); } else { if ((4 * a * b) < n...
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long c = sc.nextLong(); long num = c - a - b; if (num < 0) { System.out.println("No"); } else { if ((4 * a * b) < n...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
521,696
521,697
u417506212
java
p02744
import java.util.*; class Main { static int n; public static void main(String[] args) { Scanner sc = new Scanner(System.in); n = sc.nextInt(); dfs("", 'a'); } public static void dfs(String s, char ch) { if (s.length() == n) { System.out.println(s); } else for (char c = 'a'; c <=...
import java.util.*; class Main { static int n; public static void main(String[] args) { Scanner sc = new Scanner(System.in); n = sc.nextInt(); dfs("", 'a'); } public static void dfs(String s, char ch) { if (s.length() == n) { System.out.println(s); return; } for (char c = '...
[ "control_flow.return.add", "control_flow.branch.else.remove", "identifier.change", "call.arguments.change", "expression.operation.binary.change" ]
525,131
525,132
u626353997
java
p02747
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); String s = input.next(); boolean valid = true; if (s.length() % 2 == 1) valid = false; else { for (int i = 0; i < s.length() - 1; i += 2) { if (s.cha...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); String s = input.next(); boolean valid = true; if (s.length() % 2 == 1) valid = false; else { for (int i = 0; i < s.length() - 1; i += 2) { if (s.cha...
[ "misc.opposites", "control_flow.branch.if.condition.change" ]
525,578
525,579
u263333739
java
p02753
import java.util.*; public class Main { public static void main() { Scanner sc = new Scanner(System.in); String S = sc.next(); boolean key = false; if (S.equals("AAA") || S.equals("BBB")) key = true; else ; System.out.println(key ? "No" : "Yes"); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); boolean key = false; if (S.equals("AAA") || S.equals("BBB")) key = true; else ; System.out.println(key ? "No" : "Yes"); } }
[ "function.parameters.parameter.add" ]
529,356
529,357
u866594486
java
p02753
import java.io.*; import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); int a = 0; int b = 0; for (int i = 0; i < s.length(); i++) { if (s.charAt(i) == 'A') { a++; } else if (s.charAt(i) ==...
import java.io.*; import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); int a = 0; int b = 0; for (int i = 0; i < s.length(); i++) { if (s.charAt(i) == 'A') { a++; } else if (s.charAt(i) ==...
[ "control_flow.branch.if.condition.change" ]
530,576
530,577
u557342108
java
p02753
import java.util.*; public class Main { public static void main(String[] args) { String a = "AAA"; String b = "BBB"; Scanner sc = new Scanner(System.in); String s = sc.next(); if (s.equals(a) || s.equals(b)) { System.out.println("Yes"); } else { System.out.println("No"); } ...
import java.util.*; public class Main { public static void main(String[] args) { String a = "AAA"; String b = "BBB"; Scanner sc = new Scanner(System.in); // System.out.print("S: "); String s = sc.next(); if (s.equals(a) || s.equals(b)) { System.out.println("No"); } else { Sy...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
531,026
531,027
u314144993
java
p02755
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); for (int i = 1; i > 10000; i++) { if ((int)Math.floor(i * 0.08) == A && (int)Math.floor(i * 0.1) == B) { System.out.println(i)...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); for (int i = 1; i < 10000; i++) { if ((int)Math.floor(i * 0.08) == A && (int)Math.floor(i * 0.1) == B) { System.out.println(i)...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
538,151
538,152
u870981361
java
p02755
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); for (int i = 1; i <= 100; i++) { if (Math.floor(i * 0.08) == A && Math.floor(i * 0.1) == B) { System.out.print(i); ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); for (int i = 1; i <= 1250; i++) { if (Math.floor(i * 0.08) == A && Math.floor(i * 0.1) == B) { System.out.print(i); ...
[ "literal.number.integer.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
539,495
539,496
u136477556
java
p02755
import java.util.*; public class Main { static final int MOD = 1000000007; public static void main(String[] args) { Scanner sc = new Scanner(System.in); double a = sc.nextInt(); double b = sc.nextInt(); for (int i = 1; i <= 100; i++) { double eight = i * 0.08; double ten = i * 0.1; ...
import java.util.*; public class Main { static final int MOD = 1000000007; public static void main(String[] args) { Scanner sc = new Scanner(System.in); double a = sc.nextInt(); double b = sc.nextInt(); for (int i = 1; i <= 10000; i++) { double eight = i * 0.08; double ten = i * 0.1; ...
[ "literal.number.integer.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
540,467
540,468
u740900993
java
p02755
import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Queue; import java.util.Scanner; import java.util.Set; public class Main { static Scan...
import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Queue; import java.util.Scanner; import java.util.Set; public class Main { static Scan...
[ "literal.number.integer.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
541,329
541,330
u854155653
java
p02759
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); if (a % 2 == 0) { System.out.println(a); } else { System.out.println(a + 1); } } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); if (a % 2 == 0) { System.out.println(a / 2); } else { System.out.println(a / 2 + 1); } } }
[ "expression.operation.binary.add" ]
544,968
544,969
u073606136
java
p02760
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[][] A = new int[3][3]; boolean[][] B = new boolean[3][3]; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { A[i][j] = sc.nextInt(); B[i][j] ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[][] A = new int[3][3]; boolean[][] B = new boolean[3][3]; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { A[i][j] = sc.nextInt(); B[i][j] ...
[ "literal.number.integer.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
546,849
546,850
u408191817
java
p02763
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { FastScanner sc = new FastScanner(); int n = sc.nextInt(); TreeSet<Integer>[] tset = new TreeSet[26]; for (int i = 0; i < 26; i++) tset[i] = new TreeSet<>(); char[] ch = s...
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { FastScanner sc = new FastScanner(); int n = sc.nextInt(); TreeSet<Integer>[] tset = new TreeSet[26]; for (int i = 0; i < 26; i++) tset[i] = new TreeSet<>(); char[] ch = s...
[ "identifier.replace.add", "literal.replace.remove", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
555,163
555,164
u700429268
java
p02763
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { FastScanner sc = new FastScanner(); int n = sc.nextInt(); TreeSet<Integer>[] tset = new TreeSet[26]; for (int i = 0; i < 26; i++) tset[i] = new TreeSet<>(); char[] ch = s...
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { FastScanner sc = new FastScanner(); int n = sc.nextInt(); TreeSet<Integer>[] tset = new TreeSet[26]; for (int i = 0; i < 26; i++) tset[i] = new TreeSet<>(); char[] ch = s...
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change", "expression.operation.binary.change" ]
555,165
555,164
u700429268
java
p02765
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int R = sc.nextInt(); int C = 0; if (N >= 10) { C = R; } else if (N < 10) { C = R + (100 * (1 - N)); } System.out.println(C); } }
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int R = sc.nextInt(); int C = 0; if (N >= 10) { C = R; } else if (N < 10) { C = R + (100 * (10 - N)); } System.out.println(C); } }
[ "literal.number.integer.change", "assignment.value.change", "expression.operation.binary.change" ]
556,072
556,073
u860874998
java
p02765
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int r = sc.nextInt(); if (n < 10) { System.out.println(100 * (100 - n) + r); } else { System.out.println(r); } } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int r = sc.nextInt(); if (n < 10) { System.out.println(100 * (10 - n) + r); } else { System.out.println(r); } } }
[ "literal.number.integer.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
557,283
557,284
u532873044
java
p02767
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = Integer.parseInt(scan.next()); int max = 0; int min = 999; int x_i; int x[] = new int[n]; for (int i = 0; i < n; ++i) { x_i = Integer.parseInt(scan.next())...
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = Integer.parseInt(scan.next()); int max = 0; int min = 999; int x_i; int x[] = new int[n]; for (int i = 0; i < n; ++i) { x_i = Integer.parseInt(scan.next())...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
562,359
562,360
u948522631
java
p02767
import java.util.Scanner; public final class Main { public static void main(String[] args) { try (Scanner scanner = new Scanner(System.in)) { int n = scanner.nextInt(); int[] positions = new int[n]; int maxPosition = 0; for (int i = 0; i < n; i++) { int p = scanner.nextInt(); ...
import java.util.Scanner; public final class Main { public static void main(String[] args) { try (Scanner scanner = new Scanner(System.in)) { int n = scanner.nextInt(); int[] positions = new int[n]; int maxPosition = 0; for (int i = 0; i < n; i++) { int p = scanner.nextInt(); ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
562,652
562,653
u075440489
java
p02767
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); List<Integer> xList = new ArrayList<>(); for (int i = 0; i < N; i++) { xList.add(scanner...
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); List<Integer> xList = new ArrayList<>(); for (int i = 0; i < N; i++) { xList.add(scanner...
[ "control_flow.loop.for.condition.change" ]
563,647
563,648
u079088332
java
p02767
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); List<Integer> xList = new ArrayList<>(); for (int i = 0; i < N; i++) { xList.add(scanner...
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); List<Integer> xList = new ArrayList<>(); for (int i = 0; i < N; i++) { xList.add(scanner...
[ "control_flow.loop.for.condition.change", "assignment.value.change", "identifier.change", "call.arguments.change", "expression.operation.binary.change" ]
563,649
563,648
u079088332
java
p02768
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.math.BigInteger; import java.util.StringTokenizer; import java.util.function.BiFunction; /** * Built using CHelper plug-in * Ac...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.math.BigInteger; import java.util.StringTokenizer; import java.util.function.BiFunction; /** * Built using CHelper plug-in * Ac...
[ "assignment.change" ]
564,838
564,839
u305384049
java
p02771
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); if (A == B && C != A || B == C && A != B || C == A && B != C) { System.out.println("Yes"); } else { ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); if (A == B && C != A || B == C && A != B || C == A && B != C) { System.out.println("Yes"); } else { ...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
565,378
565,379
u285734280
java
p02771
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int A = Integer.parseInt(sc.next()); int B = Integer.parseInt(sc.next()); int C = Integer.parseInt(sc.next()); if (A != B && B != C) { System.out.println("No"); } ...
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int A = Integer.parseInt(sc.next()); int B = Integer.parseInt(sc.next()); int C = Integer.parseInt(sc.next()); if (A != B && B != C && C != A) { System.out.println("No...
[ "control_flow.branch.if.condition.change" ]
566,980
566,981
u469119319
java
p02771
import java.util.Scanner; public class Main { public static void main(int args[]) { Scanner sc = new Scanner(System.in); int A = Integer.parseInt(sc.next()); int B = Integer.parseInt(sc.next()); int C = Integer.parseInt(sc.next()); if (A != B && B != C) { System.out.println("No"); } els...
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int A = Integer.parseInt(sc.next()); int B = Integer.parseInt(sc.next()); int C = Integer.parseInt(sc.next()); if (A != B && B != C && C != A) { System.out.println("No...
[ "control_flow.branch.if.condition.change" ]
566,982
566,981
u469119319
java
p02771
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); boolean is1 = A == B; boolean is2 = B == C; boolean is3 = C == A; if (is1 && !is2 && !is3) { Sy...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); boolean is1 = A == B; boolean is2 = B == C; boolean is3 = C == A; if (is1 && !is2 && !is3) { Sy...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
567,062
567,063
u676443149
java
p02772
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); boolean b = true; for (int i = 0; i < num; i++) { int a = sc.nextInt(); if (a % 2 == 0) { if (a % 3 != 0 && a % 5 != 0) { ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); boolean b = true; for (int i = 0; i < num; i++) { int a = sc.nextInt(); if (a % 2 == 0) { if (a % 3 != 0 && a % 5 != 0) { ...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
568,767
568,768
u288865237
java
p02772
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); boolean b = true; for (int i = 0; i < num; i++) { int a = sc.nextInt(); if (a % 2 == 0) { if (a % 3 != 0 && a % 5 != 0) { ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); boolean b = true; for (int i = 0; i < num; i++) { int a = sc.nextInt(); if (a % 2 == 0) { if (a % 3 != 0 && a % 5 != 0) { ...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
568,769
568,768
u288865237
java
p02772
import java.util.*; class Main { // static final long MOD = 1_000_000_007; // 10^9+7 static final int MAX = 2_147_483_646; // intの最大値 static final int INF = 1_000_000_000; // 10^9 public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] ary = new...
import java.util.*; class Main { // static final long MOD = 1_000_000_007; // 10^9+7 static final int MAX = 2_147_483_646; // intの最大値 static final int INF = 1_000_000_000; // 10^9 public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] ary = new...
[ "control_flow.return.add" ]
570,213
570,214
u794927332
java
p02777
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); int a = sc.nextInt(); int b = sc.nextInt(); String u = sc.next(); if (u.equals(s)) { System.out.println((a - 1) + "" + b)...
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); int a = sc.nextInt(); int b = sc.nextInt(); String u = sc.next(); if (s.equals(u)) { System.out.println((a - 1) + " " + b...
[ "identifier.change", "control_flow.branch.if.condition.change", "literal.string.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
573,480
573,481
u860874998
java
p02777
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); int a = sc.nextInt(); int b = sc.nextInt(); String u = sc.next(); if (s.equals(u)) { System.out.println((a - 1) + "" + b)...
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); int a = sc.nextInt(); int b = sc.nextInt(); String u = sc.next(); if (s.equals(u)) { System.out.println((a - 1) + " " + b...
[ "literal.string.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
573,482
573,481
u860874998
java
p02777
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); int a = sc.nextInt(); int b = sc.nextInt(); String u = sc.next(); if (s == u) { a -= 1; } else { b ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); int a = sc.nextInt(); int b = sc.nextInt(); String u = sc.next(); if (s.equals(u)) { a -= 1; } else { ...
[ "control_flow.branch.if.condition.change", "call.add" ]
574,200
574,201
u770133855
java
p02778
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String input = null; try { input = b...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String input = null; try { input = b...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
575,395
575,396
u030791900
java
p02778
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String input = null; try { input = b...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String input = null; try { input = b...
[ "variable_declaration.value.change" ]
575,397
575,396
u030791900
java
p02779
import java.util.HashSet; import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int N = sc.nextInt(); int[] A = new int[N]; for (int i = 0; i < N; i++) { A[i] = sc.nextInt(); } HashSet<Integer> set...
import java.util.HashSet; import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int N = sc.nextInt(); int[] A = new int[N]; for (int i = 0; i < N; i++) { A[i] = sc.nextInt(); } HashSet<Integer> set...
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
576,041
576,042
u552502395
java
p02783
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int a = sc.nextInt(); int i = 1; int tmp = h; while (true) { tmp = tmp - a; if (tmp < 0) break; i++; } System.ou...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int a = sc.nextInt(); int i = 1; int tmp = h; while (true) { tmp = tmp - a; if (tmp <= 0) break; i++; } System.o...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
583,872
583,873
u955312788
java
p02785
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int s = 0; int[] a = new int[n]; for (int i = 0; i < n; ++i) { a[i] = sc.nextInt(); } Arrays.sort(a); for (int j...
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); long s = 0; int[] a = new int[n]; for (int i = 0; i < n; ++i) { a[i] = sc.nextInt(); } Arrays.sort(a); for (int ...
[ "variable_declaration.type.primitive.change" ]
587,601
587,602
u710255953
java
p02785
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); List<Integer> hp = new ArrayList<>(); long ans = 0; for (int i = 0; i < n; i++) { hp.add(sc.nextInt()); } Collections.sort(...
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); List<Integer> hp = new ArrayList<>(); long ans = 0; for (int i = 0; i < n; i++) { hp.add(sc.nextInt()); } Collections.sort(...
[]
587,832
587,833
u626353997
java
p02786
import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.*; public class Main { static InputStream is; static PrintWriter out; static String INPUT = ""; static void solve() { long H = ni(); out.println(recursion(H)); } ...
import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.*; public class Main { static InputStream is; static PrintWriter out; static String INPUT = ""; static void solve() { long H = nl(); out.println(recursion(H)); } ...
[ "identifier.change", "call.function.change" ]
590,133
590,134
u381460455
java
p02786
import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); long H = sc.nextLong(); int i = 0; for (i = 1; H > 1; i++) { H = H / 2; } /* double N = 0; for(int n = 1;n <= i;n++){ N += Math...
import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); long H = sc.nextLong(); int i = 0; for (i = 1; H > 1; i++) { H = H / 2; } /* double N = 0; for(int n = 1;n <= i;n++){ N += Math...
[ "call.arguments.change", "io.output.change" ]
590,224
590,225
u537507471
java
p02793
import java.util.*; import java.io.*; import java.math.*; public class Main { public static void process() throws IOException { int[] factor = new int[1000001]; int n = ni(); int[] A = nai(n); for (int j = 0; j < n; j++) { int temp = A[j]; int fac2 = 0; while (temp % 2 == 0) { ...
import java.util.*; import java.io.*; import java.math.*; public class Main { public static void process() throws IOException { int[] factor = new int[1000001]; int n = ni(); int[] A = nai(n); for (int j = 0; j < n; j++) { int temp = A[j]; int fac2 = 0; while (temp % 2 == 0) { ...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.loop.condition.change" ]
600,493
600,494
u121655988
java
p02805
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.util.InputMismatchException; /** * Built using CHelper plug-in * Actual solution is at the top * * @author Sparsh Sanchorawala */ public class Main { public static void main(String[] args...
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.util.InputMismatchException; /** * Built using CHelper plug-in * Actual solution is at the top * * @author Sparsh Sanchorawala */ public class Main { public static void main(String[] args...
[ "identifier.change", "variable_access.subscript.index.change", "expression.operation.binary.change" ]
609,307
609,308
u827242258
java
p02806
import static java.lang.System.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String S[] = new String[N]; int T[] = new int[N]; int total = 0; for (int i = 0; i < N; i++) { S[i] = sc.next();...
import static java.lang.System.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String S[] = new String[N]; int T[] = new int[N]; int total = 0; for (int i = 0; i < N; i++) { S[i] = sc.next();...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "call.add" ]
609,471
609,472
u534504780
java
p02811
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int X = sc.nextInt(); if (500 * K > X) { System.out.println("Yes"); } else { System.out.println("No"); } } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int X = sc.nextInt(); if (500 * K >= X) { System.out.println("Yes"); } else { System.out.println("No"); } } }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
610,692
610,693
u314144993
java
p02811
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int x = sc.nextInt(); if (n * 500 >= x) System.out.println("yes"); else System.out.println("no"); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int x = sc.nextInt(); if (n * 500 >= x) System.out.println("Yes"); else System.out.println("No"); } }
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
610,880
610,881
u203385956
java
p02811
import java.util.*; class Main { // 150a static final long DIV = 100000007L; static final int MAX = 2000000000; // static long[] fac = new long[MAX]; public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); // String[] s = new S...
import java.util.*; class Main { // 150a static final long DIV = 100000007L; static final int MAX = 2000000000; // static long[] fac = new long[MAX]; public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); // String[] s = new S...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
612,131
612,132
u794927332
java
p02812
import java.util.HashMap; import java.util.Scanner; public class Main { public static Scanner scan = new Scanner(System.in); public static void main(String[] args) { int n, con; String s; con = 0; n = nextInt(); s = next(); for (int i = 0; i < s.length() - 3; i++) { if (s.charAt(i) ==...
import java.util.HashMap; import java.util.Scanner; public class Main { public static Scanner scan = new Scanner(System.in); public static void main(String[] args) { int n, con; String s; con = 0; n = nextInt(); s = next(); for (int i = 0; i <= s.length() - 3; i++) { if (s.charAt(i) =...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
613,613
613,614
u518946745
java
p02812
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s = sc.next(); int index = 0; int count = 0; while (true) { if (s.indexOf("ABC", index) != -1) { index += s.indexOf("ABC", ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s = sc.next(); int index = 0; int count = 0; while (true) { if (s.indexOf("ABC", index) != -1) { index = s.indexOf("ABC", i...
[ "assignment.value.change" ]
614,034
614,035
u770133855
java
p02812
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String S = sc.next(); int count = 0; char[] c = new char[N]; for (int i = 0; i < S.length(); i++) { c[i] = S.charAt(i); } for (int i = 0...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String S = sc.next(); int count = 0; char[] c = new char[N]; for (int i = 0; i < S.length(); i++) { c[i] = S.charAt(i); } for (int i = 0...
[ "literal.number.integer.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
616,117
616,118
u463844166
java
p02817
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); String s = stdIn.next(); String t = stdIn.next(); System.out.println(s + t); } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); String s = stdIn.next(); String t = stdIn.next(); System.out.println(t + s); } }
[ "expression.operation.binary.remove" ]
619,285
619,286
u415801286
java
p02817
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String n = sc.next(); System.out.println(s + n); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String n = sc.next(); System.out.println(n + s); } }
[ "expression.operation.binary.remove" ]
620,221
620,222
u088330160
java
p02818
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int k = sc.nextInt(); if (a <= k) { k -= a; a = 0; b -= k; if (b < 0) b = 0; } else { a -= k; } ...
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long k = sc.nextLong(); if (a <= k) { k -= a; a = 0; b -= k; if (b < 0) b = 0; } else { a -= k; ...
[ "variable_declaration.type.primitive.change", "identifier.change", "call.function.change" ]
621,602
621,603
u626353997
java
p02818
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long k = sc.nextLong(); if (k < a) { System.out.println((a - k) + " " + b); } else if (k > a && k < a + b) { System....
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long k = sc.nextLong(); if (k <= a) { System.out.println((a - k) + " " + b); } else if (k > a && k < a + b) { System...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
622,377
622,378
u412564676
java
p02819
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int x = in.nextInt(); boolean prime[] = new boolean[x * x + 1]; for (int i = 0; i < x * x; i++) prime[i] = true; for (int p = 2; p <= 2 * x; p++) { ...
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int x = in.nextInt(); boolean prime[] = new boolean[2 * x + 1]; for (int i = 0; i < 2 * x; i++) prime[i] = true; for (int p = 2; p <= 2 * x; p++) { ...
[ "identifier.replace.remove", "literal.replace.add", "expression.operation.binary.change", "control_flow.loop.for.condition.change" ]
624,185
624,186
u249135772
java
p02823
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long a = sc.nextLong(); long b = sc.nextLong(); if (b - a % 2 == 0) { System.out.println((b - a) / 2); return; } long leftCnt = a - 1...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long a = sc.nextLong(); long b = sc.nextLong(); if ((b - a) % 2 == 0) { System.out.println((b - a) / 2); return; } long leftCnt = a -...
[ "control_flow.branch.if.condition.change" ]
627,209
627,210
u941274418
java
p02829
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.util.StringTokenizer; /** * Built using CHelper plug-in * Actual solution is at the top * * @author Jaynil */ public class M...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.util.StringTokenizer; /** * Built using CHelper plug-in * Actual solution is at the top * * @author Jaynil */ public class M...
[ "expression.operation.unary.add", "control_flow.branch.if.condition.change" ]
630,122
630,123
u264547643
java
p02833
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); if ((n + 2) % 2 == 1) { System.out.println(0); } long count = 0; for (long i = 10; i <= n; i *= 5) { count += n / i; } sc.c...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); if ((n + 2) % 2 == 1) { System.out.println(0); return; } long count = 0; for (long i = 10; i <= n; i *= 5) { count += n / i; ...
[ "control_flow.return.add" ]
635,724
635,725
u465572759
java
p02834
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Queue; public class Main { static int n; static List<List<Integer>> list; static int[] dv; public static void main(String[]...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Queue; public class Main { static int n; static List<List<Integer>> list; static int[] dv; public static void main(String[]...
[ "assignment.value.change", "identifier.change", "call.arguments.change" ]
637,798
637,799
u522636435
java
p02835
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a, b, c; a = scan.nextInt(); b = scan.nextInt(); c = scan.nextInt(); if (a + b + c <= 22) System.out.println("win"); else System.out.println("bust")...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a, b, c; a = scan.nextInt(); b = scan.nextInt(); c = scan.nextInt(); if (a + b + c <= 21) System.out.println("win"); else System.out.println("bust")...
[ "literal.number.integer.change", "control_flow.branch.if.condition.change" ]
638,262
638,263
u518946745
java
p02836
import java.io.*; import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int res = 0; char[] c = s.toCharArray(); int left = 0; int right = c.length; while (left < right) { if ...
import java.io.*; import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int res = 0; char[] c = s.toCharArray(); int left = 0; int right = c.length - 1; while (left < right) { ...
[ "expression.operation.binary.add" ]
641,008
641,009
u923923174
java
p02839
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int w = sc.nextInt(); int[][] field = new int[h][w]; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { field[i][j] = sc.nextInt(); ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int w = sc.nextInt(); int[][] field = new int[h][w]; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { field[i][j] = sc.nextInt(); ...
[ "expression.operator.arithmetic.change", "expression.operation.binary.change" ]
645,119
645,120
u575909439
java
p02842
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); for (int i = 0; i < n; i++) { if (n == Math.floor(i * 1.08)) { System.out.println(i); return; } } System.out.printl...
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); for (int i = 0; i < n + 1; i++) { if (n == Math.floor(i * 1.08)) { System.out.println(i); return; } } System.out.pr...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
647,643
647,644
u907613785
java
p02842
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); for (int i = n / 2; i < n; i++) { if (n == Math.floor(i * 1.08)) { System.out.println(i); return; } } System.out.pr...
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); for (int i = 0; i < n + 1; i++) { if (n == Math.floor(i * 1.08)) { System.out.println(i); return; } } System.out.pr...
[ "variable_declaration.value.change", "identifier.replace.remove", "literal.replace.add", "control_flow.loop.for.initializer.change", "expression.operation.binary.change", "expression.operation.binary.remove", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
647,645
647,644
u907613785
java
p02842
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); boolean flg = false; int ans = 0; for (int i = 1; i < 46300; i++) { if (i * 1.08 == N) { ans = i; flg = true; break; } ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); boolean flg = false; int ans = 0; for (int i = 1; i < 46300; i++) { if (i * 108 / 100 == N) { ans = i; flg = true; break; ...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
648,204
648,205
u487433273
java
p02843
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int ans = 0; if (X >= 2000) ans = 1; else { for (int a = 0; a <= 20; a++) { for (int b = 0; b <= 20 - a; b++) { for (int c = 0...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int ans = 0; if (X >= 2000) ans = 1; else { for (int a = 0; a <= 20; a++) { for (int b = 0; b <= 20 - a; b++) { for (int c = 0...
[ "assignment.add" ]
649,731
649,732
u487433273
java
p02843
import java.util.Scanner; public class Main { @SuppressWarnings("resource") public static void main(String[] args) { Scanner sc = new Scanner(System.in); double X = sc.nextDouble(); double a = Math.ceil(X / 105); int money = 0; for (int i = (int)a; i < X / 100; i++) { money = (int)X; ...
import java.util.Scanner; public class Main { @SuppressWarnings("resource") public static void main(String[] args) { Scanner sc = new Scanner(System.in); double X = sc.nextDouble(); double a = Math.ceil(X / 105); int money = 0; for (int i = (int)a; i <= X / 100; i++) { money = (int)X; ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
649,991
649,992
u868577139
java
p02847
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); String[] days = new String[] {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"}; for (int i = 0; i < S.length(); i++) { if (days[i].equals(S...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); String[] days = new String[] {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"}; for (int i = 0; i < days.length; i++) { if (days[i].equals(...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.change", "call.arguments.change" ]
653,577
653,578
u494284451
java
p02847
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); switch (sc.nextLine()) { case "SUN": System.out.println("0"); break; case "SAT": System.out.println("1"); break; case "FRI": System.out.println("2"); b...
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); switch (sc.nextLine()) { case "SUN": System.out.println("7"); break; case "SAT": System.out.println("1"); break; case "FRI": System.out.println("2"); b...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
653,727
653,728
u584010745
java
p02848
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s = sc.next(); for (int i = 0; i < s.length(); i++) { System.out.println((char)(((s.charAt(i) - 'A') + n) % 26 + 'A')); } } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s = sc.next(); for (int i = 0; i < s.length(); i++) { System.out.print((char)(((s.charAt(i) - 'A') + n) % 26 + 'A')); } } }
[ "identifier.change", "call.function.change", "io.output.change" ]
655,025
655,026
u048826171
java
p02848
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //入力受け取り int n = sc.nextInt(); String s = sc.next(); char[] c = s.toCharArray(); //アルファベット生成 char[] alpha = new char[26]; char fir = 'a'; for (int i = 0; i < 26; i++) { ...
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //入力受け取り int n = sc.nextInt(); String s = sc.next(); char[] c = s.toCharArray(); //アルファベット生成 char[] alpha = new char[26]; char fir = 'A'; for (int i = 0; i < 26; i++) { ...
[ "variable_declaration.value.change" ]
655,143
655,144
u532873044
java
p02853
import static java.lang.Math.*; import static java.util.Arrays.*; import static java.util.Collections.*; import java.io.*; import java.lang.reflect.Array; import java.math.BigInteger; import java.util.*; import java.util.Map.Entry; public class Main // implements Runnable { // static int dx[]={-1,0,1,0}; // ...
import static java.lang.Math.*; import static java.util.Arrays.*; import static java.util.Collections.*; import java.io.*; import java.lang.reflect.Array; import java.math.BigInteger; import java.util.*; import java.util.Map.Entry; public class Main // implements Runnable { // static int dx[]={-1,0,1,0}; // ...
[ "literal.number.integer.change", "assignment.value.change" ]
657,967
657,968
u238640707
java
p02859
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println(n * 2); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println(n * n); } }
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
661,700
661,701
u088330160
java
p02860
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String S = sc.next(); if (N % 2 == 1) { System.out.println("No"); } for (int i = 0; i < N / 2; i++) { if (S.charAt(i) != S.charAt(i + N...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String S = sc.next(); if (N % 2 == 1) { System.out.println("No"); return; } for (int i = 0; i < N / 2; i++) { if (S.charAt(i) != ...
[ "control_flow.return.add", "control_flow.break.remove" ]
664,041
664,042
u915981080
java
p02861
import java.lang.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); double[][] xy = new double[n][2]; for (int i = 0; i < n; i++) { xy[i][0] = sc.nextDouble(); xy[i][1] = sc.nextDouble(); } ...
import java.lang.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); double[][] xy = new double[n][2]; for (int i = 0; i < n; i++) { xy[i][0] = sc.nextDouble(); xy[i][1] = sc.nextDouble(); } ...
[ "control_flow.loop.for.initializer.change" ]
665,341
665,342
u790301364
java