Submission #43090755


Source Code Expand

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		try (Scanner scanner = new Scanner(System.in)) {
			int prev = -1;
			boolean result = true;
			for (int i = 0; i < 8; i++) {
				int s = scanner.nextInt();
				if (prev > s) {
					result = false;
				}
				if (s < 100 || s > 675) {
					result = false;
				}
				if (s % 25 != 0) {
					result = false;
				}
				prev = s;
			}
			System.out.println(result ? "Yes" : "No");
		}
	}
}

Submission Info

Submission Time
Task A - New Scheme
User kmatsu
Language Java (OpenJDK 11.0.6)
Score 100
Code Size 515 Byte
Status AC
Exec Time 147 ms
Memory 35460 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 20
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 02_handmade_00.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 147 ms 35260 KiB
00_sample_01.txt AC 99 ms 35460 KiB
00_sample_02.txt AC 103 ms 35196 KiB
01_random_00.txt AC 105 ms 35288 KiB
01_random_01.txt AC 110 ms 35296 KiB
01_random_02.txt AC 108 ms 35324 KiB
01_random_03.txt AC 106 ms 35320 KiB
01_random_04.txt AC 111 ms 35452 KiB
01_random_05.txt AC 101 ms 35436 KiB
01_random_06.txt AC 104 ms 35364 KiB
01_random_07.txt AC 108 ms 35332 KiB
01_random_08.txt AC 107 ms 35424 KiB
01_random_09.txt AC 101 ms 35232 KiB
01_random_10.txt AC 102 ms 35252 KiB
01_random_11.txt AC 107 ms 35312 KiB
01_random_12.txt AC 112 ms 35320 KiB
02_handmade_00.txt AC 107 ms 35456 KiB
02_handmade_01.txt AC 111 ms 35392 KiB
02_handmade_02.txt AC 108 ms 35180 KiB
02_handmade_03.txt AC 138 ms 35264 KiB