Submission #526792


Source Code Expand

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力

		int H1 = sc.nextInt();
		while (H1 < 0 || H1 > 2000) {
			System.out.println("値が不正です");
			H1 = sc.nextInt();
		}

		int H2 = sc.nextInt();
		while (H2 < 0 || H2 > 2000) {
			System.out.println("値が不正です");
			H2 = sc.nextInt();
		}
		System.out.println(H1 - H2);
	}
}

Submission Info

Submission Time
Task A - 積雪深差
User qupht60
Language Java (OpenJDK 1.7.0)
Score 100
Code Size 464 Byte
Status AC
Exec Time 502 ms
Memory 23264 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 502 ms 23164 KB
00_sample_02.txt AC 394 ms 23212 KB
00_sample_03.txt AC 396 ms 23204 KB
test_01.txt AC 396 ms 23260 KB
test_02.txt AC 400 ms 23192 KB
test_03.txt AC 399 ms 23140 KB
test_04.txt AC 397 ms 23216 KB
test_05.txt AC 398 ms 23140 KB
test_06.txt AC 397 ms 23212 KB
test_07.txt AC 395 ms 23260 KB
test_08.txt AC 398 ms 23236 KB
test_09.txt AC 396 ms 23256 KB
test_10.txt AC 396 ms 23228 KB
test_11.txt AC 395 ms 23248 KB
test_12.txt AC 394 ms 23204 KB
test_13.txt AC 393 ms 23248 KB
test_14.txt AC 396 ms 23264 KB
test_15.txt AC 397 ms 23136 KB
test_16.txt AC 399 ms 23208 KB
test_17.txt AC 397 ms 23256 KB