Submission #19695188


Source Code Expand

#include<stdio.h>
typedef unsigned char unc;
unc N, die1, die2;
int main(){
  if(scanf("%hhu", &N)==1){
    unc count=0;
    while(scanf("%hhu %hhu", &die1, &die2)==2){
      if(die1==die2){
        if(++count==3){
          puts("Yes");
          return 0;
        }
      }else{
        count=0;
      }
    }
    puts("No");
    return 0;
  }
  puts("Something went wrong.");
  return -1;
}

Submission Info

Submission Time
Task B - Go to Jail
User Ooooiwocha
Language C (GCC 9.2.1)
Score 200
Code Size 414 Byte
Status AC
Exec Time 4 ms
Memory 1628 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 18
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All hamd_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
hamd_01.txt AC 4 ms 1560 KiB
hand_02.txt AC 2 ms 1576 KiB
hand_03.txt AC 1 ms 1572 KiB
hand_04.txt AC 1 ms 1580 KiB
hand_05.txt AC 2 ms 1576 KiB
random_01.txt AC 2 ms 1492 KiB
random_02.txt AC 1 ms 1500 KiB
random_03.txt AC 2 ms 1596 KiB
random_04.txt AC 3 ms 1628 KiB
random_05.txt AC 1 ms 1572 KiB
random_06.txt AC 1 ms 1628 KiB
random_07.txt AC 1 ms 1576 KiB
random_08.txt AC 1 ms 1580 KiB
random_09.txt AC 1 ms 1612 KiB
random_10.txt AC 2 ms 1580 KiB
sample_01.txt AC 1 ms 1584 KiB
sample_02.txt AC 1 ms 1496 KiB
sample_03.txt AC 1 ms 1572 KiB