Submission #5746270


Source Code Expand

#include<bits/stdc++.h>

using namespace std;

int main(){
int a;scanf("%d",&a);
int L=a/100;
int R=a%100;
if(1<=L&&L<=12){
if(1<=R&&R<=12)printf("AMBIGUOUS\n");
else printf("MMYY\n");
}else{
if(1<=R&&R<=12)printf("YYMM\n");
else printf("NA\n");
}
}

Submission Info

Submission Time
Task C - Dice and Coin
User akbar1214
Language C++14 (GCC 5.4.1)
Score 0
Code Size 264 Byte
Status WA
Exec Time 1 ms
Memory 256 KiB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:6:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
 int a;scanf("%d",&a);
                     ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
WA × 2
WA × 7
Set Name Test Cases
Sample 01.txt, 02.txt
All 01.txt, 02.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt
Case Name Status Exec Time Memory
01.txt WA 1 ms 256 KiB
02.txt WA 1 ms 256 KiB
11.txt WA 1 ms 256 KiB
12.txt WA 1 ms 256 KiB
13.txt WA 1 ms 256 KiB
14.txt WA 1 ms 256 KiB
15.txt WA 1 ms 256 KiB