Submission #5880737


Source Code Expand

#include<bits/stdc++.h>
#include<fstream>


#define ll unsigned long long
#define FASTIO ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
using namespace std;

const ll maxn = 2e5+5;
const int MOD = 1e9+7;

int main(){
    FASTIO
	int n;cin >> n;
	int t1 = n/100;
	int t2 = n%100;
	
	if(1 <= t1 && t1 <= 12){
		
		if(1 <= t2 && t2 <= 12){
			cout << "AMBIGUOUS";
		}else{
			cout << "MMYY";
		}
	}
	else{
		
		if(1 <= t2 && t2 <= 12){
			cout << "YYMM";
		}else{
			cout << "NA";
		}
	}
	return 0;
}

Submission Info

Submission Time
Task B - YYMM or MMYY
User akbar1214
Language C++14 (GCC 5.4.1)
Score 200
Code Size 536 Byte
Status AC
Exec Time 1 ms
Memory 256 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 10
Set Name Test Cases
Sample 01.txt, 02.txt, 03.txt
All 01.txt, 02.txt, 03.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt
Case Name Status Exec Time Memory
01.txt AC 1 ms 256 KiB
02.txt AC 1 ms 256 KiB
03.txt AC 1 ms 256 KiB
11.txt AC 1 ms 256 KiB
12.txt AC 1 ms 256 KiB
13.txt AC 1 ms 256 KiB
14.txt AC 1 ms 256 KiB
15.txt AC 1 ms 256 KiB
16.txt AC 1 ms 256 KiB
17.txt AC 1 ms 256 KiB