buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = scan.nextInt();
}
int min = a[0];
int max = a[0];
int sum = 0;
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = scan.nextInt();
}
int min = a[0];
int max = a[0];
long sum = 0;
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 227 |
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));
int n = Integer.parseInt(br.readLine());
String[] str = ... | 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));
int n = Integer.parseInt(br.readLine());
String[] str = ... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 181 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 358 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
int add = 0;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line1 = br.readLine();
String[] l... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
long add = 0;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line1 = br.readLine();
String[] li... | [["-", 0, 235, 8, 498, 0, 195, 0, 529, 0, 78], ["+", 0, 235, 8, 498, 0, 195, 0, 529, 0, 78], ["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 225 |
import java.util.Scanner;
public class Main {
private static Scanner sc;
public static void main(String[] args) {
sc = new Scanner(System.in);
int n = sc.nextInt();
int min = 0;
int max = 0;
int sum = 0;
for (int i = 0; i < n; i++) {
int num = Integer.parseInt(sc.next());
if (n... | import java.util.Scanner;
public class Main {
private static Scanner sc;
public static void main(String[] args) {
sc = new Scanner(System.in);
int n = sc.nextInt();
long min = 0;
long max = 0;
long sum = 0;
for (int i = 0; i < n; i++) {
int num = Integer.parseInt(sc.next());
if... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 150 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int min = 1000000;
int max = -1000000;
int sum = 0;
for (int i = sc.nextInt(); i > 0; i--) {
int a = sc.nextInt();
if (a <= min) {
min = a;
}
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int min = 1000000;
int max = -1000000;
long sum = 0;
for (int i = sc.nextInt(); i > 0; i--) {
int a = sc.nextInt();
if (a <= min) {
min = a;
}
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 135 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 240 |
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
if (n < 1 || 10000 < n) {
System.exit(-1);
}
int[] list = new int[n];
int a = 0;
for (int i = 0; i < n; i++) {
a = sc.nextInt();
if ... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
if (n < 1 || 10000 < n) {
System.exit(-1);
}
int[] list = new int[n];
int a = 0;
for (int i = 0; i < n; i++) {
a = sc.nextInt();
if ... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 266 |
import java.util.*;
class Main {
Scanner sc = new Scanner(System.in);
void main() {
int n = sc.nextInt();
int f = sc.nextInt();
int min = f;
int max = f;
int sum = f;
for (int i = 0; i < n - 1; i++) {
int x = sc.nextInt();
if (min > x)
min = x;
if (max < x)
... | import java.util.*;
class Main {
Scanner sc = new Scanner(System.in);
void main() {
int n = sc.nextInt();
int f = sc.nextInt();
int min = f;
int max = f;
long sum = f;
for (int i = 0; i < n - 1; i++) {
int x = sc.nextInt();
if (min > x)
min = x;
if (max < x)
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 154 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String ns = sc.nextLine();
String[] array = sc.nextLine().split(" ");
int[] iarray = new int[Integer.parseInt(ns)];
for (int i = 0; i < array.length; i++) {
iarray[i] ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String ns = sc.nextLine();
String[] array = sc.nextLine().split(" ");
int[] iarray = new int[Integer.parseInt(ns)];
for (int i = 0; i < array.length; i++) {
iarray[i] ... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 190 |
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[] = new int[n];
for (int i = 0; i < n; i++)
a[i] = sc.nextInt();
int min = a[0];
for (int i = 0; i < n; i++) {
if (a[i] < min... | 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[] = new int[n];
for (int i = 0; i < n; i++)
a[i] = sc.nextInt();
int min = a[0];
for (int i = 0; i < n; i++) {
if (a[i] < min... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 209 |
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));
int n = Integer.parseInt(br.readLine());
String str[] = br... | 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));
int n = Integer.parseInt(br.readLine());
String str[] = br... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 191 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLi... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLi... | [["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 503, 49, 200, 51, 91, 17, 33], ["+", 8, 196, 0, 503, 49, 200, 51, 91, 439, 499]] | 3 | 211 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
int cnt = sc.nextInt();
if (cnt < 0 || cnt > 10000) {
System.exit(0);
}
int[] ary = new int[cnt];
int input;
int i = 0;
while (i... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in)) {
int cnt = sc.nextInt();
if (cnt < 0 || cnt > 10000) {
System.exit(0);
}
int[] ary = new int[cnt];
int input;
int i = 0;
while (i... | [["-", 0, 530, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 530, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 205 |
import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.util.Arrays;
/**
* http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_D
*
* @author eitatsuro
*
*/
public class Main {
private final static String SPACE = " ";
public static void main(String[] args) {
try {
L... | import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.util.Arrays;
/**
* http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_D
*
* @author eitatsuro
*
*/
public class Main {
private final static String SPACE = " ";
public static void main(String[] args) {
try {
L... | [["-", 0, 246, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 246, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 299 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int[] a = new int[10000];
int max = -1000000;
int min = 1000000;
int sum = 0;
for (int i = 0; i < n; i++) {
a[i] = scanner.ne... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int[] a = new int[10000];
int max = -1000000;
int min = 1000000;
long sum = 0;
for (int i = 0; i < n; i++) {
a[i] = scanner.n... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 185 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = in.nextInt();
int min = b;
int max = b;
long sum = b;
for (int i = 0; i < a; i++) {
int c = in.nextInt();
if (min > c) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = in.nextInt();
int min = b;
int max = b;
long sum = b;
for (int i = 0; i < a - 1; i++) {
int c = in.nextInt();
if (min > c) {... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 499]] | 3 | 142 |
public class Main {
public static void main(String[] args) {
java.util.Scanner sc = new java.util.Scanner(System.in);
// StringBuilder sb = new StringBuilder();
int n = sc.nextInt();
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = sc.nextInt();
}
int mini = a[0];
for... | public class Main {
public static void main(String[] args) {
java.util.Scanner sc = new java.util.Scanner(System.in);
// StringBuilder sb = new StringBuilder();
int n = sc.nextInt();
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = sc.nextInt();
}
int mini = a[0];
for... | [["-", 0, 1, 0, 11, 12, 492, 3, 4, 0, 22], ["+", 0, 1, 0, 11, 12, 492, 3, 4, 0, 22]] | 3 | 181 |
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
int n = Integer.parseInt(br.readLine());
String[] str = br.readLine().split(" ");
in... | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
int n = Integer.parseInt(br.readLine());
String[] str = br.readLine().split(" ");
lo... | [["-", 8, 196, 0, 503, 39, 224, 468, 506, 0, 507], ["+", 8, 196, 0, 503, 39, 224, 468, 506, 0, 96], ["-", 0, 503, 49, 200, 51, 227, 39, 506, 0, 507], ["+", 0, 503, 49, 200, 51, 227, 39, 506, 0, 96], ["-", 8, 196, 0, 1, 0, 11, 12, 492, 500, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 492, 500, 22], ["-", 8, 196, 0, 1, 0, 11, 12... | 3 | 252 |
import java.util.*;
class Main {
public static void main(String args[]) {
try (Scanner sc = new Scanner(System.in)) {
long N = sc.nextInt();
long minv = 100000001L, maxv = -1, sumv = 0;
for (int i = 0; i < N; i++) {
long x = sc.nextInt();
minv = Math.min(x, minv);
maxv =... | import java.util.*;
class Main {
public static void main(String args[]) {
try (Scanner sc = new Scanner(System.in)) {
long N = sc.nextInt();
long minv = 100000001L, maxv = -1000000000L, sumv = 0;
for (int i = 0; i < N; i++) {
long x = sc.nextInt();
minv = Math.min(x, minv);
... | [["-", 8, 196, 0, 503, 49, 200, 51, 91, 439, 499], ["+", 8, 196, 0, 503, 49, 200, 51, 91, 439, 499]] | 3 | 133 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[] number = new int[n];
int max = 0, min = 0, sum = 0;
for (int i = 0; i < n; i++) {
number[i] = scan.nextInt();
if (i == 0) {
max... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[] number = new int[n];
int max = 0, min = 0;
long sum = 0;
for (int i = 0; i < n; i++) {
number[i] = scan.nextInt();
if (i == 0) {
... | [["-", 8, 498, 0, 195, 8, 196, 0, 503, 0, 21], ["+", 8, 498, 0, 195, 8, 196, 0, 503, 0, 35], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 178 |
import java.util.*;
public class Main {
private static final Scanner scan = new Scanner(System.in);
public static void main(String[] args) {
int n = scan.nextInt();
int min = 0;
int max = 0;
int sum = 0;
for (int i = 0; i < n; i++) {
int a = scan.nextInt();
sum += a;
if (i ==... | import java.util.*;
public class Main {
private static final Scanner scan = new Scanner(System.in);
public static void main(String[] args) {
int n = scan.nextInt();
int min = 0;
int max = 0;
long sum = 0;
for (int i = 0; i < n; i++) {
int a = scan.nextInt();
sum += a;
if (i =... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 149 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String x = "";
try {
x = in.readLine();
int num = Integer.parseI... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String x = "";
try {
x = in.readLine();
int num = Integer.parseI... | [["-", 0, 246, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 246, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 233 |
import java.util.Scanner;
/**
*
* @author lenovo
*/
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// int [] array ={n};
int min = 1000000;
int max = -1000000;
int sum = 0;
int n = scanner.nextInt();
for (int i = 0; i < n; i++) {... | import java.util.Scanner;
/**
*
* @author lenovo
*/
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// int [] array ={n};
int min = 1000000;
int max = -1000000;
long sum = 0;
int n = scanner.nextInt();
for (int i = 0; i < n; i++) ... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 138 |
/* ITP1_4_D */
import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// input
int quantity = Integer.parseInt(br.readLine());
String[] str = br.readLine().split(" ");
int min = 0;
i... | /* ITP1_4_D */
import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// input
int quantity = Integer.parseInt(br.readLine());
String[] str = br.readLine().split(" ");
int min = 0;
i... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 188 |
import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int[] array = new int[n];
StringTokenizer st = new StringTokenizer(br.read... | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
long[] array = new long[n];
StringTokenizer st = new StringTokenizer(br.re... | [["-", 8, 196, 0, 503, 39, 224, 468, 506, 0, 507], ["+", 8, 196, 0, 503, 39, 224, 468, 506, 0, 96], ["-", 0, 503, 49, 200, 51, 227, 39, 506, 0, 507], ["+", 0, 503, 49, 200, 51, 227, 39, 506, 0, 96], ["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 8, 196, 0, 1, 0, 11,... | 3 | 165 |
import java.io.*;
import java.util.Arrays;
class Main {
public static void main(String[] args) throws IOException {
int i, m, max, min, sum;
int[] n = new int[990000];
String[] str = new String[990000];
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
str = in.readLine().s... | import java.io.*;
import java.util.Arrays;
class Main {
public static void main(String[] args) throws IOException {
int i, m, max, min;
long sum;
int[] n = new int[990000];
String[] str = new String[990000];
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
str = in.rea... | [["-", 8, 498, 0, 195, 8, 196, 0, 503, 0, 21], ["+", 8, 498, 0, 195, 8, 196, 0, 503, 0, 35], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 224 |
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String args[]) throws IOException {
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
int max = -1000000;
int min = 1000000;
int num = sc.nextInt();
int tmp = 0;
int... | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String args[]) throws IOException {
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
int max = -1000000;
int min = 1000000;
int num = sc.nextInt();
int tmp = 0;
lon... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 177 |
import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
String nn = scan.nextLine();
int n = Integer.parseInt(nn);
String val = scan.nextLine();
String[] numnum = val.split(" ", 0);
int[] num = new int[n];
for (int i = 0; i < ... | import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
String nn = scan.nextLine();
int n = Integer.parseInt(nn);
String val = scan.nextLine();
String[] numnum = val.split(" ", 0);
int[] num = new int[n];
for (int i = 0; i < ... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 216 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
try {
int sum = 0;
int min = 1000000;
int max = -1000000;
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
Strin... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
try {
long sum = 0;
int min = 1000000;
int max = -1000000;
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
Stri... | [["-", 0, 246, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 246, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 207 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner in = new Scanner(System.in)) {
solve(in);
}
}
private static void solve(Scanner in) {
int n = in.nextInt();
int min = Integer.MAX_VALUE, max = Integer.MIN_VALUE, sum = 0;
while (n-- > 0... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner in = new Scanner(System.in)) {
solve(in);
}
}
private static void solve(Scanner in) {
int n = in.nextInt();
int min = Integer.MAX_VALUE, max = Integer.MIN_VALUE;
long sum = 0;
while... | [["-", 8, 498, 0, 195, 8, 196, 0, 503, 0, 21], ["+", 8, 498, 0, 195, 8, 196, 0, 503, 0, 35], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 140 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int time = Integer.parseInt(br.readLine());
int sum = 0;
int max = -1000000;
in... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int time = Integer.parseInt(br.readLine());
long sum = 0;
int max = -1000000;
i... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 202 |
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 kosu = br.readLine();
int nako = Integer.parseInt(kosu);
... | 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 kosu = br.readLine();
int nako = Integer.parseInt(kosu);
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 271 |
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int sum = 0;
int[] x = new int[N];
for (int i = 0; i < N; i++) {
x[i] = sc.nextInt();
}
int max = x[0];
int min = x[0];
for (i... | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
long sum = 0;
int[] x = new int[N];
for (int i = 0; i < N; i++) {
x[i] = sc.nextInt();
}
int max = x[0];
int min = x[0];
for (... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 185 |
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int nn = scan.nextInt();
int[] aiai;
aiai = new int[nn];
int total = 0;
for (int i = 0; i < nn; i++) {
aiai[i] = scan.nextInt();
... | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int nn = scan.nextInt();
int[] aiai;
aiai = new int[nn];
long total = 0;
for (int i = 0; i < nn; i++) {
aiai[i] = scan.nextInt();
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 141 |
import java.io.*;
import java.lang.*;
import java.math.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner stdIn = new Scanner(System.in);
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n, max = -1000001, min = 10000... | import java.io.*;
import java.lang.*;
import java.math.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner stdIn = new Scanner(System.in);
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n, max = -1000001, min = 10000... | [["-", 8, 498, 0, 195, 8, 196, 0, 503, 0, 21], ["+", 8, 498, 0, 195, 8, 196, 0, 503, 0, 35], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 167 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner std = new Scanner(System.in);
int n = Integer.parseInt(std.next());
int max = -1000001;
int min = 1000001;
int sum = 0;
for (int i = 1; i <= n; i++) {
int nxt = Integer.parseInt(std.next());
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner std = new Scanner(System.in);
int n = Integer.parseInt(std.next());
int max = -1000001;
int min = 1000001;
long sum = 0;
for (int i = 1; i <= n; i++) {
int nxt = Integer.parseInt(std.next());
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 140 |
import java.io.InputStreamReader;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(new InputStreamReader(System.in));
int n = sc.nextInt();
int[] a = new int[n];
a[0] = sc.nextInt();
int min = a[0], max = a[0], sum = a[0];
for (int... | import java.io.InputStreamReader;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(new InputStreamReader(System.in));
int n = sc.nextInt();
int[] a = new int[n];
a[0] = sc.nextInt();
int min = a[0], max = a[0];
long sum = a[0];
... | [["-", 8, 498, 0, 195, 8, 196, 0, 503, 0, 21], ["+", 8, 498, 0, 195, 8, 196, 0, 503, 0, 35], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 192 |
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int n[] = new int[x];
int min, max, sum;
for (int i = 0; i < x; i++) {
n[i] = scan.nextInt();
}
min = n[0];
max = n[0];
su... | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int n[] = new int[x];
int min, max;
long sum;
for (int i = 0; i < x; i++) {
n[i] = scan.nextInt();
}
min = n[0];
max = n[0... | [["-", 8, 498, 0, 195, 8, 196, 0, 503, 0, 21], ["+", 8, 498, 0, 195, 8, 196, 0, 503, 0, 35], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 187 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new java.util.Scanner(System.in);
int n = scan.nextInt();
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = scan.nextInt();
}
int sum, min, max;
sum = 0;
max = -1000000;... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new java.util.Scanner(System.in);
int n = scan.nextInt();
int[] a = new int[n];
for (int i = 0; i < n; i++) {
a[i] = scan.nextInt();
}
long sum, min, max;
sum = 0;
max = -1000000... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20]] | 3 | 186 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String n = scan.nextLine();
ArrayList<Integer> list = new ArrayList<Integer>();
int sss = 1000000;
int ddd = -1000000;
... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String n = scan.nextLine();
ArrayList<Integer> list = new ArrayList<Integer>();
int sss = 1000000;
int ddd = -1000000;
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 499]] | 3 | 218 |
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int a;
int min = 0;
int max = 0;
int sum = 0;
for (int i = 0; i < n; i++) {
a = scan.nextInt();
if (i == 0) {
min = a;
... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int a;
int min = 0;
int max = 0;
long sum = 0;
for (int i = 0; i < n; i++) {
a = scan.nextInt();
if (i == 0) {
min = a;
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 148 |
import java.util.Scanner;
/**
* @author kawakami
*
*/
class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner as = new Scanner(System.in);
int n = as.nextInt();
int tr, min, max, sum, j = 0, k = 0;
int jug[] = new int[n];
... | import java.util.Scanner;
/**
* @author kawakami
*
*/
class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner as = new Scanner(System.in);
int n = as.nextInt();
long tr, min, max, sum;
int j = 0, k = 0;
long jug[] = ne... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 8, 498, 0, 195, 8, 196, 0, 503, 0, 21], ["+", 8, 498, 0, 195, 8, 196, 0, 503, 0, 35], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["-", 0, 503, 49, 200, 51, 227, 39, 506, 0, 507], ["+", 0, 503, 49, 200, 51, 227, 39... | 3 | 250 |
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int min, max;
min = max = 0;
int sum = 0;
for (int i = 0; i < n; i++) {
int num = scanner.nextInt();
if (i == 0) {
min = n... | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int min, max;
min = max = 0;
long sum = 0;
for (int i = 0; i < n; i++) {
int num = scanner.nextInt();
if (i == 0) {
min =... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]] | 3 | 147 |
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line1 = sc.nextLine();
int n = Integer.parseInt(line1);
String line2 = sc.nextLine();
String[] set1 = line2.split(" ");
int[] set = new... | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line1 = sc.nextLine();
int n = Integer.parseInt(line1);
String line2 = sc.nextLine();
String[] set1 = line2.split(" ");
int[] set = new... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 202 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] age) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String ans = br.readLine();
int a = Integer.parseInt(ans);
... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] age) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String ans = br.readLine();
int a = Integer.parseInt(ans);
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 263 |
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] arges) {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
int v = Integer.parseInt(line);
int[] m = new int[v];
String line2 = sc.nextLine();
String[] k = line2.split(" ")... | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] arges) {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
int v = Integer.parseInt(line);
int[] m = new int[v];
String line2 = sc.nextLine();
String[] k = line2.split(" ")... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18]] | 3 | 223 |
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line1 = sc.nextLine();
int n = Integer.parseInt(line1);
String line2 = sc.nextLine();
String[] array = line2.split(" ");
int[] ai = n... | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line1 = sc.nextLine();
int n = Integer.parseInt(line1);
String line2 = sc.nextLine();
String[] array = line2.split(" ");
long[] ai = ... | [["-", 8, 196, 0, 503, 39, 224, 468, 506, 0, 507], ["+", 8, 196, 0, 503, 39, 224, 468, 506, 0, 96], ["-", 0, 503, 49, 200, 51, 227, 39, 506, 0, 507], ["+", 0, 503, 49, 200, 51, 227, 39, 506, 0, 96], ["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 206 |
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
String line1 = sc.nextLine();
String line2 = sc.nextLine();
int n = Integer.parseInt(line1);
... | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
String line1 = sc.nextLine();
String line2 = sc.nextLine();
int n = Integer.parseInt(line1);
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 193 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int numOfInput = stdIn.nextInt();
int sum = 0;
int max = -1000000;
int min = 1000000;
for (int i = 0; i < numOfInput; i++) {
int n = stdIn.nextInt();
su... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int numOfInput = stdIn.nextInt();
long sum = 0L;
int max = -1000000;
int min = 1000000;
for (int i = 0; i < numOfInput; i++) {
int n = stdIn.nextInt();
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499]] | 3 | 134 |
import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
int n = Integer.parseInt(br.readLine());
String line[] = br.readLine().split(" ");
int min ... | import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
int n = Integer.parseInt(br.readLine());
String line[] = br.readLine().split(" ");
int min ... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 175 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n, min = 0, max = 0, sum = 0, work;
n = sc.nextInt();
min = max = sum = work = sc.nextInt();
for (int i = 0; i < n - 1; i++) {
work = sc.nextInt();
if (work ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n, min = 0, max = 0, sum = 0, work;
n = sc.nextInt();
min = max = sum = work = sc.nextInt();
for (int i = 0; i < n - 1; i++) {
work = sc.nextInt();
if (work... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 149 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int a = s.nextInt();
int min = a;
int max = a;
int sum = a;
for (int i = 2; i <= n; i++) {
a = s.nextInt();
if (a < min) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int a = s.nextInt();
int min = a;
int max = a;
long sum = a;
for (int i = 2; i <= n; i++) {
a = s.nextInt();
if (a < min) {
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 141 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
int n = Integer.parseInt(line);
line = sc.nextLine();
String[] l = line.split(" ");
int[] a = new int[n];
int min = Integer.parseInt(l[0]);... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
int n = Integer.parseInt(line);
line = sc.nextLine();
String[] l = line.split(" ");
int[] a = new int[n];
int min = Integer.parseInt(l[0]);... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 215 |
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
int x = Integer.parseInt(buf.readLine());
String num[] = buf.readLine().split(" ");
int max = -99999999, min = 99999999;
int su... | import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
int x = Integer.parseInt(buf.readLine());
String num[] = buf.readLine().split(" ");
int max = -99999999, min = 99999999;
long s... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 168 |
import java.util.*;
class Main {
int n;
int[] ai;
Scanner scan = new Scanner(System.in);
public Main() {
n = scan.nextInt();
ai = new int[n];
for (int i = 0; i < n; i++) {
ai[i] = scan.nextInt();
}
int min = 1000000;
for (int i = 0; i < n; i++) {
if (min > ai[i])
min... | import java.util.*;
class Main {
int n;
int[] ai;
Scanner scan = new Scanner(System.in);
public Main() {
n = scan.nextInt();
ai = new int[n];
for (int i = 0; i < n; i++) {
ai[i] = scan.nextInt();
}
int min = 1000000;
for (int i = 0; i < n; i++) {
if (min > ai[i])
min... | [["-", 0, 263, 8, 519, 0, 503, 39, 506, 0, 507], ["+", 0, 263, 8, 519, 0, 503, 39, 506, 0, 96]] | 3 | 222 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int min = 0;
int max = 0;
int sum = 0;
int check;
for (int i = 0; i < n; i++) {
check = scan.nextInt();
if (min > check || i =... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int min = 0;
int max = 0;
long sum = 0;
int check;
for (int i = 0; i < n; i++) {
check = scan.nextInt();
if (min > check || i ... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 143 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
int min = 1000000;
int max = -1000000;
int sum = 0;
int line = sc.nextInt();
int L[] = new int[line];
for... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
int min = 1000000;
int max = -1000000;
long sum = 0;
int line = sc.nextInt();
int L[] = new int[line];
fo... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 153 |
import java.util.*;
/**
* Created by khrom on 2017/06/15.
*/
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
List<Integer> numList = new ArrayList<>();
for (int i = 0; i < n; i++)
numList.add(scanner.nextInt());... | import java.util.*;
/**
* Created by khrom on 2017/06/15.
*/
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
List<Integer> numList = new ArrayList<>();
for (int i = 0; i < n; i++)
numList.add(scanner.nextInt());... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 143 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int a = sc.nextInt();
int s = a; //????°????
int b = a; //?????§???
int num = a; //????¨????
for (i... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int a = sc.nextInt();
int s = a; //????°????
int b = a; //?????§???
long num = a; //????¨????
for... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 146 |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = 0;
String s = sc.nextLine();
s = sc.nextLine();
String[] st = s.split(" ");
int[] a = new int[st.length];
for (int i = 0; i < a.length; i++) {
... | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
long n = 0;
String s = sc.nextLine();
s = sc.nextLine();
String[] st = s.split(" ");
long[] a = new long[st.length];
for (int i = 0; i < a.length; i++) {
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 8, 196, 0, 503, 39, 224, 468, 506, 0, 507], ["+", 8, 196, 0, 503, 39, 224, 468, 506, 0, 96], ["-", 0, 503, 49, 200, 51, 227, 39, 506, 0, 507], ["+", 0, 503, 49, 200, 51, 227, 39, 506, 0, 96], ["-", 8, 196, 0, 1, 0, 11,... | 3 | 170 |
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 = new int[n];
int max = -1000000000;
int min = 1000000000;
int total = 0;
for (int i = 0; i < n; i++) {
a[i] = sc.nextInt();
... | 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 = new int[n];
int max = -1000000000;
int min = 1000000000;
long total = 0;
for (int i = 0; i < n; i++) {
a[i] = sc.nextInt();
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 154 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader reader =
new BufferedReader(new InputStreamReader(System.in));
try {
int num = Integer.parseInt(reader.readLine());
St... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader reader =
new BufferedReader(new InputStreamReader(System.in));
try {
int num = Integer.parseInt(reader.readLine());
St... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 216 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int work, n, min, max, sum;
n = scan.nextInt();
work = scan.nextInt();
min = max = sum = work;
for (int i = 1; i < n; i++) {
work = scan.nextInt();
if (min... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
long work, n, min, max, sum;
n = scan.nextInt();
work = scan.nextInt();
min = max = sum = work;
for (int i = 1; i < n; i++) {
work = scan.nextInt();
if (mi... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 139 |
import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int max = Integer.MIN_VALUE;
int min = Integer.MAX_VALUE;
int sum = 0... | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int max = Integer.MIN_VALUE;
int min = Integer.MAX_VALUE;
long sum = ... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 176 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
/**
* @param args
* @throws IOException
* @throws NumberFormatException
*/
public static void main(String[] args)
throws NumberFormatException, IOException {
... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
/**
* @param args
* @throws IOException
* @throws NumberFormatException
*/
public static void main(String[] args)
throws NumberFormatException, IOException {
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 220 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
boolean first = true;
try (BufferedReader br =
new BufferedReader(new InputStreamReader(Syste... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
boolean first = true;
try (BufferedReader br =
new BufferedReader(new InputStreamReader(Syste... | [["-", 0, 52, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 52, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 246 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
public 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);
int min = Integer.MAX... | import java.io.BufferedReader;
import java.io.InputStreamReader;
public 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);
int min = Integer.MAX... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499]] | 3 | 180 |
import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int num[] = new int[n];
int total = 0;
for (int i = 0; i < n; i++) {
int... | import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int num[] = new int[n];
long total = 0;
for (int i = 0; i < n; i++) {
in... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 161 |
import java.util.*;
public class Main {
public static void main(String[] args) {
List<Integer> numsList = new ArrayList<Integer>();
createNumsList(numsList);
System.out.println(String.format("%d %d %lld", getSmallestVal(numsList),
getLargestVal(numsList),
... | import java.util.*;
public class Main {
public static void main(String[] args) {
List<Integer> numsList = new ArrayList<Integer>();
createNumsList(numsList);
System.out.println(String.format("%d %d %d", getSmallestVal(numsList),
getLargestVal(numsList),
... | [["-", 3, 4, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 3, 4, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 253 |
import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str1 = br.readLine();
int n = Integer.parseInt(str1);
String str2 = br.readLine();
String[] arr = str2.split(" ");
int[] a... | import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str1 = br.readLine();
int n = Integer.parseInt(str1);
String str2 = br.readLine();
String[] arr = str2.split(" ");
int[] a... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 242 |
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
String str = input.readLine();
String str2 = input.readLine();
String[] atr = str2.split(" ");
int n = Integer.parseInt(str);... | import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
String str = input.readLine();
String str2 = input.readLine();
String[] atr = str2.split(" ");
int n = Integer.parseInt(str);... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 266 |
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] inputs = new int[n];
int sum = 0;
for (int i = 0; i < n; i++) {
inputs[i] = sc.nextInt();
sum += inputs[... | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] inputs = new int[n];
long sum = 0;
for (int i = 0; i < n; i++) {
inputs[i] = sc.nextInt();
sum += inputs... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 147 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int n, min, max, sum;
int m = sc.nextInt();
sum = m;
min = m;
max = m;
for (int i = 1; i < N; i++) {
n = sc.nextInt();
sum += ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int n, min, max; // 1e9
long sum; // 1e18
int m = sc.nextInt();
sum = m;
min = m;
max = m;
for (int i = 1; i < N; i++) {
... | [["-", 8, 498, 0, 195, 8, 196, 0, 503, 0, 21], ["+", 8, 498, 0, 195, 8, 196, 0, 503, 0, 35], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 147 |
import java.io.*;
import java.util.Arrays;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int dataCount = Integer.parseInt(br.readLine());
String inputData = br.readLine();
String[] inputValue ... | import java.io.*;
import java.util.Arrays;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int dataCount = Integer.parseInt(br.readLine());
String inputData = br.readLine();
String[] inputValue ... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 209 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int numbers[] = new int[n];
int min, max, sum = 0;
for (int i = 0; i < n; i++) {
numbers[i] = sc.nextInt();
sum += numbers[i];
}
m... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int numbers[] = new int[n];
int min, max = 0;
long sum = 0;
for (int i = 0; i < n; i++) {
numbers[i] = sc.nextInt();
sum += numbers[i]... | [["-", 8, 498, 0, 195, 8, 196, 0, 503, 0, 21], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 0, 32], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 8, 498, 0, 195, 8, 196, 0, 503, 0, 35], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 186 |
import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
int n = Integer.parseInt(str);
String[] a = br.readLine().split(" ");
int min = Integer.parseInt(a[0]),... | import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
int n = Integer.parseInt(str);
String[] a = br.readLine().split(" ");
int min = Integer.parseInt(a[0]),... | [["-", 8, 498, 0, 195, 8, 196, 0, 503, 0, 21], ["+", 8, 498, 0, 195, 8, 196, 0, 503, 0, 35], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 211 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
private static final long[] Ary = null;
public static void main(String[] args) {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
try {
String ab;
Stri... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
private static final long[] Ary = null;
public static void main(String[] args) {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
try {
String ab;
Stri... | [["-", 0, 246, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 246, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 298 |
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));
int n = Integer.parseInt(br.readLine());
int max = -10000... | 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));
int n = Integer.parseInt(br.readLine());
int max = -10000... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 181 |
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int sum = 0;
Scanner s = new Scanner(System.in);
int n = Integer.parseInt(s.nextLine());
int[] nums = new int[n];
boolean flag = true;
if (n > 0 && n <= 10000) {
for (int i =... | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
long sum = 0;
Scanner s = new Scanner(System.in);
int n = Integer.parseInt(s.nextLine());
int[] nums = new int[n];
boolean flag = true;
if (n > 0 && n <= 10000) {
for (int i ... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 217 |
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int sum = 0;
int max = 0;
int min = 0;
boolean flag = false;
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
sc.nextLine();
if (n > 0 && n <= 10000) {
int ... | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
long sum = 0;
int max = 0;
int min = 0;
boolean flag = false;
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
sc.nextLine();
if (n > 0 && n <= 10000) {
int... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 218 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdin = new Scanner(System.in);
int num = stdin.nextInt();
long[] numbers = new long[num];
long min = -1000001;
long max = 1000001;
long sum = 0;
for (int i = 0; i < num; i++) {
numbers... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdin = new Scanner(System.in);
int num = stdin.nextInt();
long[] numbers = new long[num];
long max = -1000001;
long min = 1000001;
long sum = 0;
for (int i = 0; i < num; i++) {
numbers... | [["-", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 141, 22]] | 3 | 166 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int[] a = new int[n];
int sum = 0;
for (int i = 0; i < n; i++) {
a[i] = in.nextInt();
}
int max = a[0];
int min = a[0];
... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int[] a = new int[n];
long sum = 0;
for (int i = 0; i < n; i++) {
a[i] = in.nextInt();
}
int max = a[0];
int min = a[0];
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 216 |
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 = new int[n];
int sum = 0, min = 1000000, max = -1000000;
for (int i = 0; i < n; i++) {
a[i] = sc.nextInt();
sum += a[i];
if... | 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 = new int[n];
long sum = 0, min = 1000000, max = -1000000;
for (int i = 0; i < n; i++) {
a[i] = sc.nextInt();
sum += a[i];
i... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 164 |
import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str1 = br.readLine();
String[] str2 = str1.split(" ");
int n = Integer.parseInt(str2[0]);
String str3 = br.readLine();
S... | import java.io.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str1 = br.readLine();
String[] str2 = str1.split(" ");
int n = Integer.parseInt(str2[0]);
String str3 = br.readLine();
S... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499]] | 3 | 192 |
import java.util.*;
/*
Main class for AOJ where there is no input.
*/
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
String str = sc.nextLine();
String[] arr = str.split(" ");
int max = Integer.parseInt(ar... | import java.util.*;
/*
Main class for AOJ where there is no input.
*/
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
String str = sc.nextLine();
String[] arr = str.split(" ");
int max = Integer.parseInt(ar... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 189 |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
String[] input = sc.nextLine().split(" ");
int[] num = new int[input.length];
for (int i = 0; i < input.length; i++) {
num[i] = Integer.par... | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
String[] input = sc.nextLine().split(" ");
long[] num = new long[input.length];
for (int i = 0; i < input.length; i++) {
num[i] = Integer.p... | [["-", 8, 196, 0, 503, 39, 224, 468, 506, 0, 507], ["+", 8, 196, 0, 503, 39, 224, 468, 506, 0, 96], ["-", 0, 503, 49, 200, 51, 227, 39, 506, 0, 507], ["+", 0, 503, 49, 200, 51, 227, 39, 506, 0, 96], ["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 220 |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
int max;
int min;
int sum = 0;
String delimiter = " ";
Scanner sc = new Scanner(System.in);
List<Integer> list = new ArrayList<>();
int loop = sc.nextInt();
for (int i = 0; i < loop; i++... | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
int max;
int min;
long sum = 0;
String delimiter = " ";
Scanner sc = new Scanner(System.in);
List<Integer> list = new ArrayList<>();
int loop = sc.nextInt();
for (int i = 0; i < loop; i+... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 161 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int max = in.nextInt();
int min = max;
int sum = max;
for (int i = 0; i < n - 1; i++) {
int t = in.nextInt();
if (t > max) {
m... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int max = in.nextInt();
int min = max;
long sum = max;
for (int i = 0; i < n - 1; i++) {
int t = in.nextInt();
if (t > max) {
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 140 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) {
BufferedReader reader =
new BufferedReader(new InputStreamReader(System.in));
String buffer;
int count = 0;
int amo... | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) {
BufferedReader reader =
new BufferedReader(new InputStreamReader(System.in));
String buffer;
int count = 0;
int amo... | [["-", 0, 57, 75, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 57, 75, 196, 0, 503, 39, 506, 0, 96]] | 3 | 356 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int i, a = 0, n = 0, min = 0, max = 0, sum = 0;
n = scan.nextInt();
for (i = 0; i < n; i++) {
a = scan.nextInt();
sum += a;
if (i == 0) {
min = max ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
long i, a = 0, n = 0, min = 0, max = 0, sum = 0;
n = scan.nextInt();
for (i = 0; i < n; i++) {
a = scan.nextInt();
sum += a;
if (i == 0) {
min = max... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 152 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void calc(String[] strAry, int n) {
long min = 10000000;
long max = -10000000;
long sum = 0;
for (int i = 0; i < n; i++) {
long tmp = Integer.parseInt(strAry[i]);
... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void calc(String[] strAry, int n) {
long min = 10000000;
long max = -10000000;
long sum = 0;
for (int i = 0; i < n; i++) {
long tmp = Integer.parseInt(strAry[i]);
... | [["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95]] | 3 | 209 |
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));
StringBuilder sb = new StringBuilder();
int count = Int... | 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));
StringBuilder sb = new StringBuilder();
int count = Int... | [["-", 8, 498, 0, 195, 8, 196, 0, 503, 0, 21], ["+", 8, 498, 0, 195, 8, 196, 0, 503, 0, 35], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 187 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int a = sc.nextInt();
int sum = a;
int min = a;
int max = a;
while (--n > 0) {
a = sc.nextInt();
sum += a;
if (a < min)
... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int a = sc.nextInt();
long sum = a;
int min = a;
int max = a;
while (--n > 0) {
a = sc.nextInt();
sum += a;
if (a < min)
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 128 |
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));
int n = Integer.parseInt(br.readLine());
String[] line =... | 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));
int n = Integer.parseInt(br.readLine());
String[] line =... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 226 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
int[] a = new int[num];
for (int i = 0; i < num; i++) {
a[i] = sc.nextInt();
}
int max = a[0];
int min = a[0];
int sum = 0;
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
int[] a = new int[num];
for (int i = 0; i < num; i++) {
a[i] = sc.nextInt();
}
int max = a[0];
int min = a[0];
long sum = 0;
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 180 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int i, max = -1000000, min = 1000000, sum = 0;
int a = sc.nextInt();
int b[] = new int[a];
for (i = 0; i < a; i++) {
int c = sc.nextInt();
b[i] = c;
}
f... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int i, max = -1000000, min = 1000000;
long sum = 0;
int a = sc.nextInt();
int b[] = new int[a];
for (i = 0; i < a; i++) {
int c = sc.nextInt();
b[i] = c;
... | [["-", 8, 498, 0, 195, 8, 196, 0, 503, 0, 21], ["+", 8, 498, 0, 195, 8, 196, 0, 503, 0, 35], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]] | 3 | 207 |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
int n = cin.nextInt();
int sum = 0;
int max = -1000000, min = 1000000;
for (int i = 0; i < n; i++) {
int x = cin.nextInt();
max = Math.max(max, x);
min = Math.min(m... | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
int n = cin.nextInt();
long sum = 0;
int max = -1000000, min = 1000000;
for (int i = 0; i < n; i++) {
int x = cin.nextInt();
max = Math.max(max, x);
min = Math.min(... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 130 |
import java.math.BigDecimal;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = scanner.nextInt();
int min = a[0];
int max = a[0... | import java.math.BigDecimal;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = scanner.nextInt();
int min = a[0];
int max = a[0... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96], ["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499]] | 3 | 192 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int count = sc.nextInt();
int max = -1000000, min = 1000000;
double sum = 0;
for (int i = 0; i < count; i++) {
int n = sc.nextInt();
if (n > max)
max... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int count = sc.nextInt();
int max = -1000000, min = 1000000;
long sum = 0;
for (int i = 0; i < count; i++) {
int n = sc.nextInt();
if (n > max)
max ... | [["-", 0, 195, 8, 196, 0, 503, 39, 511, 0, 512], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 136 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.