Submission #3606181
Source Code Expand
#include<stdio.h>
int main(){
int x,y,i,x1,y1;
int g1[]={1,3,5,7,8,10,12,4,6,9,11,2};
scanf("%d%d",&x,&y);
for(i=0;i<12;i++){
if(x == g1[i]) x1=i;
if(y == g1[i]) y1=i;
}
if(x1<7 &&y1<7){
puts("Yes");
}else if(7<=x1 && x1<11 && 7<=y1 && y1<11){
puts("Yes");
}else{
puts("No");
}
return 0;
}
Submission Info
Submission Time
2018-11-16 11:40:05+0900
Task
A - Grouping
User
Rew
Language
C (GCC 5.4.1)
Score
100
Code Size
348 Byte
Status
AC
Exec Time
1 ms
Memory
128 KB
Compile Error
./Main.c: In function ‘main’:
./Main.c:5:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
Judge Result
Set Name
Sample
All
Score / Max Score
0 / 0
100 / 100
Status
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
1 ms
128 KB
0_01.txt
AC
1 ms
128 KB
1_00.txt
AC
1 ms
128 KB
1_01.txt
AC
1 ms
128 KB
1_02.txt
AC
1 ms
128 KB
1_03.txt
AC
1 ms
128 KB
1_04.txt
AC
1 ms
128 KB