Submission #195590


Source Code Expand

import java.util.Arrays;
import java.util.Scanner;

public class Main{
	MyScanner sc = new MyScanner();
	Scanner sc2 = new Scanner(System.in);

	void run() {
		System.out.println(sc.nextInt()-sc.nextInt());
	}

	public static void main(String[] args) {
		new Main().run();
	}

	
	void debug(Object... o) {
		System.out.println(Arrays.deepToString(o));
	}

	void debug2(int[][] array) {
		for (int i = 0; i < array.length; i++) {
			for (int j = 0; j < array[i].length; j++) {
				System.out.print(array[i][j]);
			}
			System.out.println();
		}
	}

	class MyScanner {
		int nextInt() {
			try {
				int c = System.in.read();
				while (c != '-' && (c < '0' || '9' < c))
					c = System.in.read();
				if (c == '-')
					return -nextInt();
				int res = 0;
				do {
					res *= 10;
					res += c - '0';
					c = System.in.read();
				} while ('0' <= c && c <= '9');
				return res;
			} catch (Exception e) {
				return -1;
			}
		}

		double nextDouble() {
			return Double.parseDouble(next());
		}

		String next() {
			try {
				StringBuilder res = new StringBuilder("");
				int c = System.in.read();
				while (Character.isWhitespace(c))
					c = System.in.read();
				do {
					res.append((char) c);
				} while (!Character.isWhitespace(c = System.in.read()));
				return res.toString();
			} catch (Exception e) {
				return null;
			}
		}
	}
}

Submission Info

Submission Time
Task A - 積雪深差
User suigingin
Language Java (OpenJDK 1.7.0)
Score 100
Code Size 1420 Byte
Status AC
Exec Time 400 ms
Memory 19492 KB

Judge Result

Set Name all
Score / Max Score 100 / 100
Status
AC × 20
Set Name Test Cases
all 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt
Case Name Status Exec Time Memory
00_sample_01.txt AC 364 ms 19492 KB
00_sample_02.txt AC 371 ms 19332 KB
00_sample_03.txt AC 367 ms 19368 KB
test_01.txt AC 364 ms 19368 KB
test_02.txt AC 366 ms 19240 KB
test_03.txt AC 367 ms 19404 KB
test_04.txt AC 352 ms 19224 KB
test_05.txt AC 373 ms 19360 KB
test_06.txt AC 374 ms 19368 KB
test_07.txt AC 400 ms 19356 KB
test_08.txt AC 377 ms 19372 KB
test_09.txt AC 366 ms 19368 KB
test_10.txt AC 387 ms 19364 KB
test_11.txt AC 372 ms 19360 KB
test_12.txt AC 372 ms 19368 KB
test_13.txt AC 373 ms 19368 KB
test_14.txt AC 360 ms 19360 KB
test_15.txt AC 374 ms 19236 KB
test_16.txt AC 372 ms 19300 KB
test_17.txt AC 372 ms 19244 KB