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 |
|---|---|---|---|---|---|---|---|
p03962 | puts gets.split.map(:to_i).uniq.size | puts gets.split.map(&:to_i).uniq.size
| null | 1,489,258 | 1,489,259 | u050914494 | ruby |
p03997 | a,b,h = `dd`.split.map &:to_i
p a*b*h/2
| a,b,h = `dd`.split.map &:to_i
p (a+b)*h/2
| null | 1,500,077 | 1,500,078 | u670503797 | ruby |
p04019 | a = gets.chop.split("")
uniq_data = a.sort.uniq
if uniq_data.length === 4
print "YES"
elsif uniq_data.length === 2
if uniq_data[0] === "N" && uniq_data[1] === "S"
print "YES"
elsif uniq_data[0] === "E" && uniq_data[1] === "W"
print "YES"
else
print "NO"
end
else
print "NO"
end
| a = gets.chop.split("")
uniq_data = a.sort.uniq
if uniq_data.length === 4
print "Yes"
elsif uniq_data.length === 2
if uniq_data[0] === "N" && uniq_data[1] === "S"
print "Yes"
elsif uniq_data[0] === "E" && uniq_data[1] === "W"
print "Yes"
else
print "No"
end
else
print "No"
end
| null | 1,513,958 | 1,513,959 | u562128847 | ruby |
p04019 | s = gets.chomp
x = y = 0
j = 4
if(s.include?("W") and !(s.include?("E")))
j = 0
end
if(s.include?("E") and !(s.include?("W")))
j = 0
end
if(s.include?("N") and !(s.include?("S")))
j = 0
end
if(s.include?("S") and !(s.include?("N")))
j = 0
end
puts (j == 4)? "YES" : "NO" | s = gets.chomp
x = y = 0
j = 4
if(s.include?("W") and !(s.include?("E")))
j = 0
end
if(s.include?("E") and !(s.include?("W")))
j = 0
end
if(s.include?("N") and !(s.include?("S")))
j = 0
end
if(s.include?("S") and !(s.include?("N")))
j = 0
end
puts (j == 4)? "Yes" : "No" | null | 1,515,411 | 1,515,412 | u145123922 | ruby |
p00000 |
public class Main {
public static void main(String[] args) {
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
System.out.println(i + "x" + j + "=" + i * j);
}
}
}
} |
public class Main {
public static void main(String[] args) {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
System.out.println(i + "x" + j + "=" + i * j);
}
}
}
} | [
"literal.number.integer.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 79 | 80 | u334301242 | java |
p00000 |
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
System.out.printf("%d??%d=%d\n", i, j, i * j);
}
}
}
} |
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
System.out.printf("%dx%d=%d\n", i, j, i * j);
}
}
}
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 83 | 84 | u134265565 | java |
p00000 | import java.util.stream.IntStream;
public class Main {
public static void main(String[] args) {
String s = "1x1=1";
String tmp = "x=";
IntStream.range(1, 9).forEach(n1 -> {
IntStream.range(1, 9).forEach(
n2 -> { System.out.println(n1 + "x" + n2 + "=" + (n1 * n2)); });
});
}
} | import java.util.stream.IntStream;
public class Main {
public static void main(String[] args) {
String s = "1x1=1";
String tmp = "x=";
IntStream.range(1, 10).forEach(n1 -> {
IntStream.range(1, 10).forEach(
n2 -> { System.out.println(n1 + "x" + n2 + "=" + (n1 * n2)); });
});
}
} | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 88 | 89 | u170105607 | java |
p00000 | public class Main {
public static void main(String[] args) {
for (int i = 1; i < 10; i++) {
for (int n = 1; i < 10; i++) {
System.out.println(i + "??" + n + "=" + i * n);
}
}
}
} | public class Main {
public static void main(String[] args) {
for (int i = 1; i < 10; i++) {
for (int n = 1; n < 10; n++) {
System.out.println(i + "x" + n + "=" + i * n);
}
}
}
} | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 91 | 92 | u322035943 | java |
p00000 | public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
System.out.println(i + "*" + j + "=" + i * j);
}
}
}
} | public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
System.out.println(i + "x" + j + "=" + i * j);
}
}
}
} | [
"literal.string.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 113 | 114 | u202452156 | java |
p00000 | public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
System.out.println(i + "??" + j + "=" + i * j);
}
}
}
} | public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
System.out.println(i + "x" + j + "=" + i * j);
}
}
}
} | [
"literal.string.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 115 | 114 | u202452156 | java |
p00000 |
public class Main {
public static void main(String[] args) { new Main().run(); }
private void run() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
System.out.println(i + "×" + j + "=" + i * j);
}
}
}
} |
public class Main {
public static void main(String[] args) { new Main().run(); }
private void run() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
System.out.println(i + "x" + j + "=" + i * j);
}
}
}
} | [
"literal.string.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 265 | 266 | u611290643 | java |
p00000 | public class Main {
public static void main(String[] a) {
for (int i = 0; i < 10; i++)
for (int j = 0; j < 10; j++) {
System.out.println(i + "x" + j + "=" + i * j);
}
}
} | public class Main {
public static void main(String[] a) {
for (int i = 1; i < 10; i++)
for (int j = 1; j < 10; j++) {
System.out.println(i + "x" + j + "=" + i * j);
}
}
} | [
"literal.number.integer.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 961 | 962 | u118652549 | java |
p00001 | import java.io.*;
import java.util.*;
import java.util.Collections;
class Main {
public static void main(String[] a) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
Integer[] mountains = new Integer[10];
for (int i = 0; i < 10; i++) {
mountains[i] = Inte... | import java.io.*;
import java.util.*;
import java.util.Collections;
class Main {
public static void main(String[] a) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
Integer[] mountains = new Integer[10];
for (int i = 0; i < 10; i++) {
mountains[i] = Inte... | [
"expression.operation.binary.remove"
] | 3,352 | 3,353 | u534111608 | java |
p00001 | import java.util.Scanner;
class Main {
public static void main(String[] a) {
Scanner scan = new Scanner(System.in);
int[] m = new int[10];
int[] max = new int[3];
for (int i = 0; i < 10; i++) {
m[i] = scan.nextInt();
if (m[i] > max[0]) {
max[2] = max[1];
max[1] = max[0];
... | import java.util.Scanner;
class Main {
public static void main(String[] a) {
Scanner scan = new Scanner(System.in);
int[] m = new int[10];
int[] max = new int[3];
for (int i = 0; i < 10; i++) {
m[i] = scan.nextInt();
if (m[i] >= max[0]) {
max[2] = max[1];
max[1] = max[0];... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 3,979 | 3,980 | u031194354 | java |
p00001 | import java.util.Scanner;
class Main {
public static void main(String[] a) {
Scanner scan = new Scanner(System.in);
int[] m = new int[10];
int[] max = new int[3];
for (int i = 0; i < 10; i++) {
m[i] = scan.nextInt();
if (m[i] >= max[0]) {
max[2] = max[1];
max[1] = max[0];
... | import java.util.Scanner;
class Main {
public static void main(String[] a) {
Scanner scan = new Scanner(System.in);
int[] m = new int[10];
int[] max = new int[3];
for (int i = 0; i < 10; i++) {
m[i] = scan.nextInt();
if (m[i] >= max[0]) {
max[2] = max[1];
max[1] = max[0];... | [
"assignment.value.change"
] | 3,982 | 3,980 | u031194354 | java |
p00001 | import java.util.*;
class Main {
public static void main(String[] g) {
int i = 0, a[] = new int[10];
for (Scanner S = new Scanner(System.in); i < 9;)
a[i++] = S.nextInt();
Arrays.sort(a);
for (i = 9; i > 6;)
System.out.println(a[i--]);
}
}
| import java.util.*;
class Main {
public static void main(String[] g) {
int i = 0, a[] = new int[10];
for (Scanner S = new Scanner(System.in); i < 10;)
a[i++] = S.nextInt();
Arrays.sort(a);
for (i = 9; i > 6;)
System.out.println(a[i--]);
}
}
| [
"literal.number.integer.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 4,020 | 4,021 | u458942529 | java |
p00002 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
List... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
List... | [
"misc.opposites",
"control_flow.loop.condition.change"
] | 4,571 | 4,572 | u532635730 | java |
p00003 | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int x, y, z;
int yn[] = new int[n];
for (int i = 0; i < n; i++) {
x = scan.nextInt();
y = scan.nextInt();
z = scan.nextInt();
i... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int x, y, z;
int yn[] = new int[n];
for (int i = 0; i < n; i++) {
x = scan.nextInt();
y = scan.nextInt();
z = scan.nextInt();
i... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 7,146 | 7,147 | u031194354 | java |
p00004 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
double[] ans = new double[2];
double det = 0;
... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
double[] ans = new double[2];
double det = 0;
... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 7,409 | 7,410 | u455537418 | java |
p00005 | import java.io.*;
// import java.math.BigDecimal;
// import java.lang.reflect.Array;
// import java.util.Arrays;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
try (BufferedReader br =
new BufferedReader(new InputStreamReader(System.in))) {
... | import java.io.*;
// import java.math.BigDecimal;
// import java.lang.reflect.Array;
// import java.util.Arrays;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
try (BufferedReader br =
new BufferedReader(new InputStreamReader(System.in))) {
... | [
"variable_declaration.type.primitive.change",
"identifier.change",
"expression.operation.binary.change"
] | 8,131 | 8,132 | u289245097 | java |
p00006 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] req = sc.nextLine().split("");
StringBuilder sb = new StringBuilder();
for (int i = req.length - 1; i > 0; i--) {
sb.append(req[i]);
}
System.out.println(... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] req = sc.nextLine().split("");
StringBuilder sb = new StringBuilder();
for (int i = req.length; i > 0; i--) {
sb.append(req[i - 1]);
}
System.out.println(... | [
"expression.operation.binary.remove"
] | 8,866 | 8,868 | u712957141 | java |
p00007 | import static java.lang.System.*;
import java.util.*;
import java.util.stream.Collectors;
public class Main extends CodingSupport {
protected void solve() {
int input = scanInt();
double dept = 100000.0;
for (int i = 0; i < input; i++) {
dept = dept * 1.05;
if (dept % 1000 != 0) {
d... | import static java.lang.System.*;
import java.util.*;
import java.util.stream.Collectors;
public class Main extends CodingSupport {
protected void solve() {
int input = scanInt();
double dept = 100000.0;
for (int i = 0; i < input; i++) {
dept = dept * 1.05;
if (dept % 1000 != 0) {
d... | [
"type_conversion.add"
] | 10,219 | 10,220 | u448595608 | java |
p00007 | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
String str = br.readLine();
int n = Integer.parseInt(str);
double debt = 100.0;
for (int i = ... | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
String str = br.readLine();
int n = Integer.parseInt(str);
double debt = 100.0;
for (int i = ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.number.integer.change",
"assignment.value.change"
] | 10,229 | 10,230 | u605441342 | java |
p00009 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
while (input.hasNextInt()) {
int n = input.nextInt();
int count = 1;
if (n < 2) {
System.out.println("0");
} else {
for (int i = 3; i <= n; i ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
while (input.hasNextInt()) {
int n = input.nextInt();
int count = 1;
if (n < 2) {
System.out.println("0");
} else {
for (int i = 3; i <= n; i ... | [] | 12,431 | 12,432 | u556439958 | java |
p00009 | import java.util.HashSet;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while (scan.hasNext()) {
int n = scan.nextInt();
boolean[] isPrime = new boolean[n + 1];
for (int i = 2; i <= n; i++) {
isPrime[i]... | import java.util.HashSet;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
while (scan.hasNext()) {
int n = scan.nextInt();
boolean[] isPrime = new boolean[n + 1];
for (int i = 2; i <= n; i++) {
isPrime[i]... | [
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 12,451 | 12,452 | u310778860 | java |
p00011 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in).useDelimiter("\\s*,\\s*|\\r\\n");
int VirticalLines = scan.nextInt();
int hoirizontalLines = scan.nextInt();
int[] lineNumber = new int[VirticalLines + 1];
for (int i = 1... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in).useDelimiter("\\s*,\\s*|\\n");
int VirticalLines = scan.nextInt();
int hoirizontalLines = scan.nextInt();
int[] lineNumber = new int[VirticalLines + 1];
for (int i = 1; i... | [
"literal.string.change",
"call.arguments.change"
] | 12,880 | 12,881 | u306553775 | java |
p00011 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int w = Int... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int w = Int... | [
"control_flow.loop.for.condition.change",
"call.add"
] | 13,351 | 13,352 | u879226672 | java |
p00015 | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigDecimal;
class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
int n = Integer.parseInt(line);
fo... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigDecimal;
class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
int n = Integer.parseInt(line);
fo... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 14,361 | 14,362 | u644080663 | java |
p00019 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
int x = Integer.parseInt(br.readLine());
int fa... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
int x = Integer.parseInt(br.readLine());
long f... | [
"variable_declaration.type.primitive.change"
] | 16,122 | 16,123 | u532635730 | java |
p00019 | import java.util.Scanner;
public class Main {
public static int factorial(int n) {
if (n == 0) {
return 1;
}
return n * factorial(n - 1);
}
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int n = stdIn.nextInt();
System.out.println(factorial(n));
... | import java.util.Scanner;
public class Main {
public static long factorial(int n) {
if (n == 0) {
return 1;
}
return n * factorial(n - 1);
}
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int n = stdIn.nextInt();
System.out.println(factorial(n));
... | [
"function.return_type.change"
] | 16,218 | 16,219 | u663419588 | java |
p00019 | import java.util.Scanner;
class Main {
public static void main(String[] a) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int num = n;
while (n > 1) {
n--;
num *= n;
}
System.out.println(num);
}
} | import java.util.Scanner;
class Main {
public static void main(String[] a) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
long num = n;
while (n > 1) {
n--;
num *= n;
}
System.out.println(num);
}
} | [
"variable_declaration.type.primitive.change"
] | 16,262 | 16,263 | u193339256 | java |
p00019 | import java.io.*;
class Main {
public static void main(String args[]) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(input.readLine());
int x = 1;
for (int i = n; i > 0; i--) {
x *= i;
}
System.out.println(x);
... | import java.io.*;
class Main {
public static void main(String args[]) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(input.readLine());
long x = 1;
for (int i = n; i > 0; i--) {
x *= i;
}
System.out.println(x)... | [
"variable_declaration.type.primitive.change"
] | 16,272 | 16,273 | u814387366 | java |
p00019 | import java.io.*;
class Main {
public static void main(String args[]) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(input.readLine());
int x = 1;
for (int i = n; i > 0; i--) {
x *= i;
}
System.out.println(x);... | import java.io.*;
class Main {
public static void main(String args[]) throws IOException {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(input.readLine());
long x = 1;
for (int i = n; i > 0; i--) {
x *= i;
}
System.out.println(x)... | [
"variable_declaration.type.primitive.change"
] | 16,274 | 16,273 | u814387366 | java |
p00017 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
for (; scanner.hasNext();) {
String in = scanner.nextLine();
int shift = getShift(in);
String out = "";
for (int i = 0; i < in.length(); i++) {
o... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
for (; scanner.hasNext();) {
String in = scanner.nextLine();
int shift = getShift(in);
String out = "";
for (int i = 0; i < in.length(); i++) {
o... | [
"literal.string.change",
"call.arguments.change",
"assignment.change"
] | 18,225 | 18,226 | u072001822 | java |
p00017 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
for (; scanner.hasNext();) {
String in = scanner.nextLine();
int shift = getShift(in);
String out = "";
for (int i = 0; i < in.length(); i++) {
o... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
for (; scanner.hasNext();) {
String in = scanner.nextLine();
int shift = getShift(in);
String out = "";
for (int i = 0; i < in.length(); i++) {
o... | [
"assignment.change"
] | 18,227 | 18,226 | u072001822 | java |
p00023 | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
while (n-- > 0) {
Circle a = new Circle(sc.nextDouble(), sc.nextDouble(), sc.nextDouble());
Circle b = new Circle(sc.nextDouble(), sc.nextDouble(), sc.nex... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
while (n-- > 0) {
Circle a = new Circle(sc.nextDouble(), sc.nextDouble(), sc.nextDouble());
Circle b = new Circle(sc.nextDouble(), sc.nextDouble(), sc.nex... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 20,094 | 20,095 | u195518036 | java |
p00027 | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
// BufferedReader reader=new BufferedReader(new
// InputStreamReader(System.in));
Scanner reader = new Scanner(System.in);
// int in=reader.nextInt();
int[] tmp = {31, 29, 31, 30, ... | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
// BufferedReader reader=new BufferedReader(new
// InputStreamReader(System.in));
Scanner reader = new Scanner(System.in);
// int in=reader.nextInt();
int[] tmp = {31, 29, 31, 30, ... | [
"literal.number.integer.change"
] | 21,326 | 21,327 | u214600613 | java |
p00032 | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
int hishi = 0;
int tyou = 0;
String check;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while ((check = br.readLine()) != null) {
String[] str = new String[3];
... | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
int hishi = 0;
int tyou = 0;
String check;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while ((check = br.readLine()) != null) {
String[] str = new String[3];
... | [] | 22,474 | 22,475 | u991779216 | java |
p00034 | import java.util.*;
public class Main {
private static final Scanner scan =
new Scanner(System.in).useDelimiter("[,\\s]+");
public static void main(String[] args) {
int[] l = new int[10];
int sum1 = 0, sum2 = 0;
double time = 0, tX = 0;
while (scan.hasNext()) {
for (int i = 0; i < 10; ... | import java.util.*;
public class Main {
private static final Scanner scan =
new Scanner(System.in).useDelimiter("[,\\s]+");
public static void main(String[] args) {
int[] l = new int[10];
int sum1 = 0, sum2 = 0;
double time = 0, tX = 0;
while (scan.hasNext()) {
for (int i = 0; i < 10; ... | [
"type_conversion.add"
] | 22,884 | 22,885 | u910402677 | java |
p00022 | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int n;
while ((n = scn.nextInt()) != 0) {
long min = 0, max = -1000, buf = 0;
for (int i = 0; i < n; i++) {
buf += scn.nextLong();
max = Math.max(max, b... | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int n;
while ((n = scn.nextInt()) != 0) {
long min = 0, max = -100000, buf = 0;
for (int i = 0; i < n; i++) {
buf += scn.nextLong();
max = Math.max(max,... | [
"literal.number.integer.change",
"assignment.change",
"expression.operation.binary.remove"
] | 23,017 | 23,018 | u796112608 | java |
p00022 | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int n;
while ((n = scn.nextInt()) != 0) {
long min = 0, max = 0, buf = 0;
for (int i = 0; i < n; i++) {
buf += scn.nextLong();
max = Math.max(max, buf);... | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int n;
while ((n = scn.nextInt()) != 0) {
long min = 0, max = -100000, buf = 0;
for (int i = 0; i < n; i++) {
buf += scn.nextLong();
max = Math.max(max,... | [
"expression.operation.unary.add",
"assignment.change",
"expression.operation.binary.remove"
] | 23,019 | 23,018 | u796112608 | java |
p00022 | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int n;
while ((n = scn.nextInt()) != 0) {
long min = 0, max = -100000000000l, buf = 0;
for (int i = 0; i < n; i++) {
buf += scn.nextLong();
max = Math.m... | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scn = new Scanner(System.in);
int n;
while ((n = scn.nextInt()) != 0) {
long min = 0, max = -100000, buf = 0;
for (int i = 0; i < n; i++) {
buf += scn.nextLong();
max = Math.max(max,... | [
"literal.number.integer.change",
"expression.operation.unary.remove",
"assignment.change",
"expression.operation.binary.remove"
] | 23,020 | 23,018 | u796112608 | java |
p00022 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
int n = Integer.parseInt(sc.next());
int i, j, max = 0, tmp = 0;
int[] num = new int[5001];
if (n == 0) {
break;
}
... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
int n = Integer.parseInt(sc.next());
int i, j, max = 0, tmp = 0;
int[] num = new int[5001];
if (n == 0) {
break;
}
... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change"
] | 23,058 | 23,059 | u527873595 | java |
p00047 | 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';
... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 25,347 | 25,348 | u660498157 | java |
p00048 | 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) {
... | [
"literal.string.change",
"assignment.value.change"
] | 25,452 | 25,453 | u897769968 | java |
p00049 | import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
String str;
int[] blood = new int[4];
while (scan.hasNext()) {
str = scan.next();
String[] num = str.split(",", 0);
if (num[1].equals("A"))
blood[0]++;
... | import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
String str;
int[] blood = new int[4];
while (scan.hasNext()) {
str = scan.next();
String[] num = str.split(",", 0);
if (num[1].equals("A"))
blood[0]++;
... | [
"literal.number.integer.change",
"variable_access.subscript.index.change"
] | 26,156 | 26,157 | u031194354 | java |
p00075 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
/**
* BMI
*/
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
/**
* BMI
*/
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line... | [
"call.arguments.add",
"control_flow.branch.if.condition.change"
] | 29,314 | 29,315 | u759934006 | java |
p00075 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
/**
* BMI
*/
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
/**
* BMI
*/
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line... | [
"control_flow.branch.if.condition.change"
] | 29,316 | 29,315 | u759934006 | java |
p00093 | import java.io.*;
import java.util.*;
public class Main {
public static boolean isLeap(int year) {
if (year % 400 == 0) {
return true;
} else if (year % 100 == 0) {
return false;
} else
return year % 4 == 0;
}
public static void main(String[] args) throws IOException {
Buffer... | import java.io.*;
import java.util.*;
public class Main {
public static boolean isLeap(int year) {
if (year % 400 == 0) {
return true;
} else if (year % 100 == 0) {
return false;
} else
return year % 4 == 0;
}
public static void main(String[] args) throws IOException {
Buffer... | [
"literal.string.change",
"call.arguments.change"
] | 31,475 | 31,476 | u079104535 | java |
p00101 | import java.util.*;
public class Main {
private static final Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
for (int n = scn.nextInt(); n > 0; n--) {
System.out.println(scn.nextLine().replace("Hoshino", "Hoshina"));
}
}
} | import java.util.*;
public class Main {
private static final Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
for (int n = Integer.parseInt(scn.nextLine()); n > 0; n--) {
System.out.println(scn.nextLine().replace("Hoshino", "Hoshina"));
}
}
} | [
"control_flow.loop.for.initializer.change",
"call.add",
"identifier.change",
"call.function.change",
"call.arguments.change"
] | 33,251 | 33,252 | u927626415 | java |
p00111 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] l =
"11010: :11011:.:11100:,:11101:-:11110:':11111:?:00000:A:00001:B:00010:C:00011:D:00100:E:00101:F:00110:G:00111:H:01000:I:01001:J:01010:K:01011:L:01100:M:01101:N:011... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] l =
"11010: :11011:.:11100:,:11101:-:11110:':11111:?:00000:A:00001:B:00010:C:00011:D:00100:E:00101:F:00110:G:00111:H:01000:I:01001:J:01010:K:01011:L:01100:M:01101:N:011... | [
"literal.string.change"
] | 35,857 | 35,858 | u195518036 | java |
p00147 | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] arrivals = new int[100];
int[] seats = new int[17];
int[] end_seats = new int[17];
int[] wait = new int[100];
Arrays.fill(seats, -1);
... | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] arrivals = new int[100];
int[] seats = new int[17];
int[] end_seats = new int[17];
int[] wait = new int[100];
Arrays.fill(seats, -1);
... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 39,188 | 39,189 | u197786702 | java |
p00271 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int i, max, min;
Scanner sc = new Scanner(System.in);
for (i = 0; i <= 6; i++) {
max = sc.nextInt();
min = sc.nextInt();
System.out.print(max - min);
}
// TODO 自動生成されたメソッド・スタブ
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int max, min;
Scanner sc = new Scanner(System.in);
for (int i = 0; i <= 6; i++) {
max = sc.nextInt();
min = sc.nextInt();
System.out.println(max - min);
}
}
} | [
"call.function.change",
"io.output.newline.add"
] | 46,649 | 46,650 | u837339117 | java |
p00271 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int max, min;
Scanner sc = new Scanner(System.in);
for (int i = 0; i <= 6; i++) {
max = sc.nextInt();
min = sc.nextInt();
System.out.print(max - min);
}
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int max, min;
Scanner sc = new Scanner(System.in);
for (int i = 0; i <= 6; i++) {
max = sc.nextInt();
min = sc.nextInt();
System.out.println(max - min);
}
}
} | [
"call.function.change",
"io.output.newline.add"
] | 46,651 | 46,650 | u837339117 | java |
p00434 | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int student[] = new int[30];
for (int i = 0; i < 30; i++) {
student[i] = 0;
}
for (int i = 0; i < 28; i++) {
student[scanner.nextInt()] = 1;
}
for (... | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int student[] = new int[30];
for (int i = 0; i < 30; i++) {
student[i] = 0;
}
for (int i = 0; i < 28; i++) {
student[scanner.nextInt() - 1] = 1;
}
f... | [
"assignment.change"
] | 50,249 | 50,250 | u026004148 | java |
p00434 | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int student[] = new int[30];
for (int i = 0; i < 30; i++) {
student[i] = 0;
}
for (int i = 0; i < 28; i++) {
student[scanner.nextInt() + 1] = 1;
}
f... | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int student[] = new int[30];
for (int i = 0; i < 30; i++) {
student[i] = 0;
}
for (int i = 0; i < 28; i++) {
student[scanner.nextInt() - 1] = 1;
}
f... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.variable.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 50,251 | 50,250 | u026004148 | java |
p00434 | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int student[] = new int[30];
for (int i = 0; i < 30; i++) {
student[i] = 0;
}
for (int i = 0; i < 28; i++) {
student[scanner.nextInt() - 1] = 1;
}
f... | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int student[] = new int[30];
for (int i = 0; i < 30; i++) {
student[i] = 0;
}
for (int i = 0; i < 28; i++) {
student[scanner.nextInt() - 1] = 1;
}
f... | [
"expression.operation.binary.add"
] | 50,252 | 50,250 | u026004148 | java |
p00439 | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
try (BufferedReader br =
new BufferedReader(new InputStreamReader(System.in))) {
String lin... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
try (BufferedReader br =
new BufferedReader(new InputStreamReader(System.in))) {
String lin... | [
"assignment.add",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change"
] | 51,720 | 51,721 | u371199586 | java |
p00439 | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
try (BufferedReader br =
new BufferedReader(new InputStreamReader(System.in))) {
String lin... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
try (BufferedReader br =
new BufferedReader(new InputStreamReader(System.in))) {
String lin... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change"
] | 51,722 | 51,721 | u371199586 | java |
p00505 | import java.util.*;
public class Main {
private static int check(int[] lines) {
if (lines[0] + lines[1] <= lines[2]) {
return 0;
}
for (int i = 0, i_len = lines.length; i < i_len; i += 1) {
lines[i] *= lines[i];
}
if (lines[0] + lines[1] > lines[2]) {
return 1;
} else if (... | import java.util.*;
public class Main {
private static int check(int[] lines) {
if (lines[0] + lines[1] <= lines[2]) {
return 0;
}
for (int i = 0, i_len = lines.length; i < i_len; i += 1) {
lines[i] *= lines[i];
}
if (lines[0] + lines[1] == lines[2]) {
return 1;
} else if ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 57,816 | 57,817 | u529013669 | java |
p00533 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int H = sc.nextInt();
int W = sc.nextInt();
char[][] field = new char[H][W];
for (int i = 0; i < H; i++) {
field[i] = sc.next().toCharArray();
}
for (int i = 0;... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int H = sc.nextInt();
int W = sc.nextInt();
char[][] field = new char[H][W];
for (int i = 0; i < H; i++) {
field[i] = sc.next().toCharArray();
}
for (int i = 0;... | [
"control_flow.branch.if.condition.change",
"expression.operation.unary.add"
] | 59,265 | 59,266 | u510110831 | java |
p00728 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String args[]) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
while (true) {
int parson = Integer.parseInt(br.readLine());
... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String args[]) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
while (true) {
int parson = Integer.parseInt(br.readLine());
... | [
"literal.number.integer.change",
"variable_declaration.value.change"
] | 66,826 | 66,827 | u214859999 | java |
p02255 | import java.util.Arrays;
import java.util.Scanner;
import java.util.stream.Stream;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int count = Integer.parseInt(sc.nextLine());
int[] nums = Stream.of(sc.nextLine().split(" "))
.mapToI... | import java.util.Arrays;
import java.util.Scanner;
import java.util.stream.Stream;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int count = Integer.parseInt(sc.nextLine());
int[] nums = Stream.of(sc.nextLine().split(" "))
.mapToI... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 96,302 | 96,303 | u713550401 | java |
p02255 | 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));
int N = Integer.parseInt(br.read... | 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));
int N = Integer.parseInt(br.read... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 96,361 | 96,362 | u108371401 | java |
p02257 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
static int n;
static int[] nums;
static int result;
static void input() throws IOException {
n = readInt();
nums = new int[n];
for (int i = 0; i < n; i++) {
nums[i] = readInt();
... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
static int n;
static int[] nums;
static int result;
static void input() throws IOException {
n = readInt();
nums = new int[n];
for (int i = 0; i < n; i++) {
nums[i] = readInt();
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 99,259 | 99,260 | u940492895 | java |
p02257 | import java.util.*;
public class Main {
/*
boolean[] furui() {
boolean[] tab = new boolean[100000001];
tab[0] = tab[1] = true;
for (int i = 2; i <= tab.length/2; i++) {
if (tab[i]) continue;
for (int j = i + i; j < tab.length; j+=i) {
... | import java.util.*;
public class Main {
/*
boolean[] furui() {
boolean[] tab = new boolean[100000001];
tab[0] = tab[1] = true;
for (int i = 2; i <= tab.length/2; i++) {
if (tab[i]) continue;
for (int j = i + i; j < tab.length; j+=i) {
... | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 99,305 | 99,306 | u125740762 | java |
p02258 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[] r = new int[n];
for (int i = 0; i < n; i++) {
r[i] = scan.nextInt();
}
int min = r[0];
int margin = r[1] - r[0];
for (int... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[] r = new int[n];
for (int i = 0; i < n; i++) {
r[i] = scan.nextInt();
}
int min = r[0];
int margin = r[1] - r[0];
for (int... | [
"literal.number.integer.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 100,563 | 100,564 | u003091509 | java |
p02258 | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
int rt[] = new int[n];
int diff[] = new int[n];
for (int i = 0; i < n; i++) {
rt[i] = Integer.parseInt(sc.next());
}
int minv =... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
int rt[] = new int[n];
int diff[] = new int[n];
for (int i = 0; i < n; i++) {
rt[i] = Integer.parseInt(sc.next());
}
int minv =... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 100,641 | 100,642 | u385991569 | java |
p02259 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
*
* @author Y
*/
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(br.readLine()... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
*
* @author Y
*/
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(br.readLine()... | [
"assignment.value.change"
] | 102,231 | 102,232 | u824216249 | java |
p02260 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int[] A;
A = new int[N];
int i;
for (i = 0; i < N; i++) {
A[i] = sc.nextInt();
}
int count = 0;
for (int j = 0; j < A.length - ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int[] A;
A = new int[N];
int i;
for (i = 0; i < N; i++) {
A[i] = sc.nextInt();
}
int count = 0;
for (int j = 0; j < A.length - ... | [] | 103,614 | 103,615 | u284142375 | java |
p02260 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int[] A;
A = new int[N];
int i;
for (i = 0; i < N; i++) {
A[i] = sc.nextInt();
}
int count = 0;
for (int j = 0; j < A.length - ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int[] A;
A = new int[N];
int i;
for (i = 0; i < N; i++) {
A[i] = sc.nextInt();
}
int count = 0;
for (int j = 0; j < A.length - ... | [] | 103,616 | 103,615 | u284142375 | java |
p02260 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int[] A;
A = new int[N];
int i;
for (i = 0; i < N; i++) {
A[i] = sc.nextInt();
}
int count = 0;
for (int j = 0; j < A.length - ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int[] A;
A = new int[N];
int i;
for (i = 0; i < N; i++) {
A[i] = sc.nextInt();
}
int count = 0;
for (int j = 0; j < A.length - ... | [] | 103,618 | 103,615 | u284142375 | java |
p02261 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
try {
StringBuilder sb = new StringBuilder();
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
try {
StringBuilder sb = new StringBuilder();
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 104,797 | 104,796 | u345663362 | java |
p02262 | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int A[] = new int[n];
int i;
for (i = 0; i < n; i++) {
A[i] = sc.nextInt();
}
shellSort(A, n);
for (i = 0; i < n; i++) {
System.out.pr... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int A[] = new int[n];
int i;
for (i = 0; i < n; i++) {
A[i] = sc.nextInt();
}
shellSort(A, n);
for (i = 0; i < n; i++) {
System.out.pr... | [
"literal.number.integer.change",
"variable_declaration.array_dimensions.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change",
"assignment.vari... | 105,416 | 105,417 | u941313989 | java |
p02262 | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int A[] = new int[n];
int i;
for (i = 0; i < n; i++) {
A[i] = sc.nextInt();
}
shellSort(A, n);
for (i = 0; i < n; i++) {
System.out.pr... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int A[] = new int[n];
int i;
for (i = 0; i < n; i++) {
A[i] = sc.nextInt();
}
shellSort(A, n);
for (i = 0; i < n; i++) {
System.out.pr... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change",
"assignment.variable.change",
"variable_access.subscript.index.change",
"expression.operation.bin... | 105,418 | 105,417 | u941313989 | java |
p02262 | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int A[] = new int[n];
int i;
for (i = 0; i < n; i++) {
A[i] = sc.nextInt();
}
shellSort(A, n);
for (i = 0; i < n; i++) {
System.out.pr... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int A[] = new int[n];
int i;
for (i = 0; i < n; i++) {
A[i] = sc.nextInt();
}
shellSort(A, n);
for (i = 0; i < n; i++) {
System.out.pr... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 105,419 | 105,417 | u941313989 | java |
p02266 | import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Scanner;
class Main {
public static void main(String[] args)
throws NumberFormatException, IOException {
// System.out.println(" ");
Scanner scan = new Scanner(System.in);
String text = scan.next()... | import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Scanner;
class Main {
public static void main(String[] args)
throws NumberFormatException, IOException {
// System.out.println(" ");
Scanner scan = new Scanner(System.in);
String text = scan.next()... | [
"assignment.add"
] | 110,584 | 110,585 | u895275311 | java |
p02267 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] s = new int[n];
for (int i = 0; i < n; i++) {
s[i] = sc.nextInt();
}
int q = sc.nextInt();
int[] t = new int[q];
for (int i = 0... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] s = new int[n];
for (int i = 0; i < n; i++) {
s[i] = sc.nextInt();
}
int q = sc.nextInt();
int[] t = new int[q];
for (int i = 0... | [
"control_flow.break.add"
] | 110,733 | 110,734 | u083285064 | java |
p02267 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
public static void main(String[] args)
throws NumberFormatException, IOException {
// System.setIn(new FileInputStream("./input.txt"));
BufferedReader br = new Buff... | import java.io.BufferedReader;
// import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
public static void main(String[] args)
throws NumberFormatException, IOException {
// System.setIn(new FileInputStream("./input.txt")... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 110,737 | 110,738 | u599666776 | java |
p02267 | import java.io.BufferedReader;
// import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args)
throws NumberFormatException, IOException {
// System.setIn(new FileInputStream("./ALDS1_4_A-in10.txt"));
BufferedR... | import java.io.BufferedReader;
// import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args)
throws NumberFormatException, IOException {
// System.setIn(new FileInputStream("./ALDS1_4_A-in10.txt"));
BufferedR... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 110,739 | 110,740 | u599666776 | java |
p02273 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Set;
import java.util.StringTokenizer;
import java.util.TreeMap;
import java... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Set;
import java.util.StringTokenizer;
import java.util.TreeMap;
import java... | [
"identifier.change",
"expression.operation.binary.change"
] | 117,504 | 117,503 | u329636631 | java |
p02276 | import java.util.Scanner;
public class Main {
private static Scanner s = new Scanner(System.in);
static int[] a = new int[100001];
public static void main(String[] args) {
int n = s.nextInt();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < n; i++) {
a[i] = s.nextInt();
}
i... | import java.util.Scanner;
public class Main {
private static Scanner s = new Scanner(System.in);
static int[] a = new int[100001];
public static void main(String[] args) {
int n = s.nextInt();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < n; i++) {
a[i] = s.nextInt();
}
i... | [] | 120,254 | 120,255 | u775197714 | java |
p02276 | import java.util.Scanner;
public class Main {
private static Scanner s = new Scanner(System.in);
static int[] a = new int[100001];
public static void main(String[] args) {
int n = s.nextInt();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < n; i++) {
a[i] = s.nextInt();
}
i... | import java.util.Scanner;
public class Main {
private static Scanner s = new Scanner(System.in);
static int[] a = new int[100001];
public static void main(String[] args) {
int n = s.nextInt();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < n; i++) {
a[i] = s.nextInt();
}
i... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 120,256 | 120,255 | u775197714 | java |
p02315 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
private static Scanner sc;
private static int[][] neg8 = new int[][] {
{-1, -1}, {0, -1}, {1, -1}, {-1, 0}, {1, 0}, {-1, 1}, {0, 1}, {1, 1}};
private static int[][] neg4 = new int[][] {{1, 0}, ... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
private static Scanner sc;
private static int[][] neg8 = new int[][] {
{-1, -1}, {0, -1}, {1, -1}, {-1, 0}, {1, 0}, {-1, 1}, {0, 1}, {1, 1}};
private static int[][] neg4 = new int[][] {{1, 0}, ... | [
"literal.number.integer.change",
"variable_declaration.array_dimensions.change"
] | 129,770 | 129,769 | u089952706 | java |
p02379 | import java.util.*;
public class Main {
public static void main(String args[]) {
int[] r = new int[4];
Scanner scn = new Scanner(System.in);
String inl = scn.nextLine();
String[] part = inl.split(" ");
for (int i = 0; i < 4; i++) {
r[i] = Integer.parseInt(part[i]);
}
System.out.pri... | import java.util.*;
public class Main {
public static void main(String args[]) {
double[] r = new double[4];
Scanner scn = new Scanner(System.in);
String inl = scn.nextLine();
String[] part = inl.split(" ");
for (int i = 0; i < 4; i++) {
r[i] = Double.parseDouble(part[i]);
}
System... | [
"assignment.value.change",
"identifier.change",
"call.function.change"
] | 134,703 | 134,704 | u975539923 | java |
p02380 | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner scanner = new Scanner(System.in);
String[] tmp = scanner.nextLine().split(" ");
scanner.close();
Integer side1 = Integer.valueOf(tmp[0]);
Integer side2 = ... | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner scanner = new Scanner(System.in);
String[] tmp = scanner.nextLine().split(" ");
scanner.close();
Integer side1 = Integer.valueOf(tmp[0]);
Integer side2 = ... | [
"identifier.change",
"expression.operation.binary.change"
] | 135,144 | 135,145 | u374125368 | java |
p02381 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
int i, j, k, sum = 0;
double ave, s = 0, sg = 0;
j = sc.nextInt();
int[] intarray = new int[j];
if (j == 0) {
break;
}
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
int i, j, k;
double sum = 0, ave, s = 0, sg = 0;
j = sc.nextInt();
int[] intarray = new int[j];
if (j == 0) {
break;
}
... | [] | 136,120 | 136,121 | u032898557 | java |
p02381 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
while (true) {
int n = sc.nextInt();
if (n == 0) {
break;
}
int[] scores = new int[n];
for (int i = 0; i < scores.length; i++)... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
while (true) {
int n = sc.nextInt();
if (n == 0) {
break;
}
int[] scores = new int[n];
for (int i = 0; i < scores.length; i++)... | [
"type_conversion.add"
] | 136,128 | 136,129 | u449074205 | java |
p02382 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int i, n;
n = scan.nextInt();
double x[] = new double[n], y[] = new double[n], p1 = 0, p2 = 0, p3 = 0,
p = 0;
for (i = 0; i < n; i++) {
x[i] = scan.nextD... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int i, n;
n = scan.nextInt();
double x[] = new double[n], y[] = new double[n], p1 = 0, p2 = 0, p3 = 0,
p = 0;
for (i = 0; i < n; i++) {
x[i] = scan.nextD... | [
"literal.number.integer.change",
"control_flow.branch.if.condition.change"
] | 136,544 | 136,545 | u034455014 | java |
p02383 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
String[] line = sc.nextLine().split(" ");
int[] label = new int[line.length];
for (int i = 0; i < label.length; i++)... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
String[] line = sc.nextLine().split(" ");
int[] label = new int[line.length];
for (int i = 0; i < label.length; i++)... | [
"assignment.value.change",
"identifier.change"
] | 137,310 | 137,311 | u938767283 | java |
p02384 | import java.text.ParseException;
import java.util.Scanner;
public class Main {
public static void main(String[] arges) throws ParseException {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String[] deme = line.split(" ");
int[] daice =
new int[] {Integer.parseInt(deme[0]... | import java.text.ParseException;
import java.util.Scanner;
public class Main {
public static void main(String[] arges) throws ParseException {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String[] deme = line.split(" ");
int[] daice =
new int[] {Integer.parseInt(deme[0]... | [
"literal.number.integer.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"io.output.change"
] | 137,613 | 137,614 | u776566986 | java |
p02388 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int answer = x ^ 3;
System.out.println(answer);
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int answer = x * x * x;
System.out.println(answer);
}
} | [
"expression.operation.binary.add"
] | 139,224 | 139,225 | u853919639 | java |
p02388 | 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 = br.readLine();
int n = Integer.parseInt(lin... | 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 = br.readLine();
int n = Integer.parseInt(line... | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove"
] | 139,248 | 139,249 | u759791460 | java |
p02389 | import java.math.*;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int x = in.nextInt();
int y = in.nextInt();
System.out.println(x * y + " " + 2 * (x * y));
}
} | import java.math.*;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int x = in.nextInt();
int y = in.nextInt();
System.out.println(x * y + " " + 2 * (x + y));
}
} | [
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 143,622 | 143,623 | u848559856 | java |
p02389 | 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();
System.out.println(a * b + "" + 2 * (a + b));
}
}
| 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();
System.out.println(a * b + " " + 2 * (a + b));
}
}
| [
"literal.string.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 143,821 | 143,822 | u189727512 | java |
p02389 | import java.util.Scanner;
public class Main {
public void solve() {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int men = a * b;
int syu = (a * 2) + (b * 2);
System.out.println(men + "???" + syu);
}
public static void main(String[] args) {
Main obj ... | import java.util.Scanner;
public class Main {
public void solve() {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int men = a * b;
int syu = (a * 2) + (b * 2);
System.out.println(men + " " + syu);
}
public static void main(String[] args) {
Main obj = ... | [
"literal.string.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 143,889 | 143,890 | u728581699 | java |
p02389 | import java.io.*;
public class Main {
public static void main(String[] arg) throws IOException {
InputStreamReader is = new InputStreamReader(System.in); //?????????
BufferedReader br = new BufferedReader(is);
String str = br.readLine();
String[] spl = str.split(",", 0);
System.out.println(Integer... | import java.io.*;
public class Main {
public static void main(String[] arg) throws IOException {
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
String str = br.readLine();
String[] spl = str.split(" ", 0);
System.out.println(
Integer.pa... | [
"literal.string.change",
"call.arguments.change"
] | 144,035 | 144,036 | u954671717 | java |
p02389 | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String str = s.nextLine();
String[] array = str.split(" ");
int a = Integer.parseInt(array[0]), b = Integer.parseInt(array[1]);
System.out.println(a * b + " " + a * 2 + b * 2);
}
... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String str = s.nextLine();
String[] array = str.split(" ");
int a = Integer.parseInt(array[0]), b = Integer.parseInt(array[1]);
System.out.println(a * b + " " + (a * 2 + b * 2));
... | [
"call.arguments.change"
] | 144,101 | 144,102 | u128236306 | java |
p02389 | 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();
int area = a * b;
int length = 2 * (a + b);
System.out.println(area + "" + length);
}
}
| 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();
int area = a * b;
int length = 2 * (a + b);
System.out.println(area + " " + length);
}
}
| [
"literal.string.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 144,300 | 144,301 | u799065805 | java |
p02390 | /**
* Created by kaki on 2017/04/17.
*/
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int S = Integer.parseInt(scan.next());
int m = 0;
int h = 0;
while (S > 0) {
S -= 60;
m += 1;
}
while (m > 0... | /**
* Created by kaki on 2017/04/17.
*/
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int S = Integer.parseInt(scan.next());
int m = 0;
int h = 0;
while (S > 59) {
S -= 60;
m += 1;
}
while (m > ... | [
"literal.number.integer.change",
"control_flow.loop.condition.change"
] | 149,271 | 149,272 | u385793616 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.