Submission #2522919


Source Code Expand

#include<stdio.h>
int main(){
  int x,y,a,b;
  scanf("%d%d",&x,&y);
  if(x==1 || x==3 || x==5 || x==7 || x==8 || x==10 || x==12){
    a=1;
  }
  else if(x==2){
    a=2;
  }
  else{
    a=3;
  }
  if(y==1 || y==3 || y==5 || y==7 || y==8 || y==10 || y==12){
    b=1;
  }
  else if(y==2){
    b=2;
  }
  else{
    b=3;
  }
  if(a==b){
    printf("Yes\n");
  }
  else{
    printf("No\n");
  }
  return 0;
}

Submission Info

Submission Time
Task A - Grouping
User selream3012
Language C (GCC 5.4.1)
Score 100
Code Size 433 Byte
Status AC
Exec Time 1 ms
Memory 128 KB

Compile Error

./Main.c: In function ‘main’:
./Main.c:4: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
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 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