Submission #3027643


Source Code Expand

import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int[][] A= {
				{1,2,3,4,5,6,7,8,9,10,11,12},{1,3,1,2,1,2,1,1,2,1,2,1}
		}
		;

		int aa=sc.nextInt();
		int bb=sc.nextInt();

		if(A[1][aa-1]==A[1][bb-1]) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}
}

Submission Info

Submission Time
Task A - Grouping
User Digaus
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 379 Byte
Status AC
Exec Time 93 ms
Memory 21844 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 7
Set Name Test Cases
Sample 0_00.txt, 0_01.txt
All 0_00.txt, 0_01.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt
Case Name Status Exec Time Memory
0_00.txt AC 92 ms 21588 KB
0_01.txt AC 91 ms 21844 KB
1_00.txt AC 91 ms 19796 KB
1_01.txt AC 93 ms 19284 KB
1_02.txt AC 92 ms 21716 KB
1_03.txt AC 91 ms 18640 KB
1_04.txt AC 92 ms 19412 KB