Submission #9805333


Source Code Expand

Copy
#include<stdio.h>
int main()
{
    int A,B;
    scanf("%d%d",&A,&B);

    if(A==1 && B==2 || A==2  && B==1)
    {
        printf("3");
    }
    else if(A==1 && B== 3 || A==3 && B==1)
    {
        printf("2");
    }
    else if(A==2 && B== 3 || A==3 && B==2)
    {
        printf("1");
    }
}

Submission Info

Submission Time
Task A - Round One
User vjudge1
Language C (GCC 5.4.1)
Score 100
Code Size 295 Byte
Status
Exec Time 1 ms
Memory 128 KB

Compile Error

./Main.c: In function ‘main’:
./Main.c:5:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d",&A,&B);
     ^

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt
Subtask1 100 / 100 sample_01.txt, sample_02.txt, sub1_01.txt, sub1_02.txt, sub1_03.txt, sub1_04.txt
Case Name Status Exec Time Memory
sample_01.txt 1 ms 128 KB
sample_02.txt 0 ms 128 KB
sub1_01.txt 0 ms 128 KB
sub1_02.txt 0 ms 128 KB
sub1_03.txt 1 ms 128 KB
sub1_04.txt 0 ms 128 KB