problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p03042
u569742427
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["S=input()\nFF=int(S[0]+S[1])\nLL=int(S[2]+S[3])\nf=False\nl=False\nmonth=list(range(1,13))\n\n\nif FF in month:\n f=True\nif LL in month:\n l=True\n\nif FF and LL:\n print('AMBIGUOUS')\n exit(0)\nif FF:\n print('MMYY')\nelif LL:\n print('YYMM')\nelse:\n print('NA')\n", 'S=input()\nFF=int(S[0]+S[1...
['Wrong Answer', 'Accepted']
['s926535058', 's761649048']
[3060.0, 3060.0]
[17.0, 17.0]
[266, 303]
p03042
u580697892
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['#coding: utf-8\nS = input()\nyear = 19\nmonth = 12\nmae, ushiro = S[:2], S[2:]\nif 0 < mae <= month and 0 < ushiro <= month:\n\tprint("AMBIGUOUS")\nelif 0 < mae <= month and 0 < ushiro <= year:\n\tprint("MMYY")\nelif 0 < mae <= year and 0 < ushiro <= month:\n\tprint("YYMM")\nelse:\n\tprint("NA")', '#coding: utf-8\nS ...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s078907644', 's625607649', 's894181600', 's352594562']
[3060.0, 3060.0, 3060.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[280, 339, 293, 293]
p03042
u581187895
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S = int(input())\nyymm = S//100\nmmyy = S%100\nyymm = (1<=y<=12)\nmmyy = (1<=x<=12)\n\nans = "NA"\nif yymm and mmyy:\n answer = \'AMBIGUOUS\'\nelif yymm and not(mmyy):\n answer = \'YYMM\'\nelif mmyy and not(yymm):\n answer = \'MMYY\'\n\nprint(ans) ', 'S = int(input())\nx = S//100\ny = S%100\nyymm = (1<=y<=1...
['Runtime Error', 'Accepted']
['s721959026', 's156244297']
[3316.0, 3060.0]
[20.0, 17.0]
[238, 223]
p03042
u583507988
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["s = list(input())\n\na = int(s[0]+s[1])\nb = int(s[2]+s[3])\n\nif 1<=a<=12 and 1<=b<=12:\n print('AMBIGUOUS')\nelif a>12 and 1<=b<=12:\n print('YYMM')\nelif b>12 and 1<=a<=12:\n print('MMYY')\nelif a>12 and b>12:\n print('NA')\nelof a<0 and b<0:\n print('NA')", "s = input()\n\ns1 = int(s[0])*10 + int(s[1])\ns2 ...
['Runtime Error', 'Accepted']
['s289004189', 's520442879']
[2940.0, 9132.0]
[17.0, 25.0]
[251, 301]
p03042
u585498238
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S = input()\n\nif int(S[0:2]) <= 12 and int (S[0:2]) > 0:\n if int(S[2:4]) > 0 and int(S[2:4]) <= 12:\n print("AMBIGUOUS")\n elif int(S[2:4]) > 0:\n print("MMYY")\n \nelif int(S[2:4]) <= 12 and int(S[2:4]) > 0:\n if int(S[0:2]) > 0 and int(S[0:2]) <= 12:\n print("AMBIGUOUS") \n...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s059682858', 's695783328', 's969103917', 's556439594']
[3064.0, 3064.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[536, 511, 535, 228]
p03042
u586212264
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["s=input()\nword=list(s)\nflaga=0\nflagb=0\nif (s[0]=='0' and 1<=int(s[1])<=9) or (s[0]=='1' and 0<=int(s[1])<=2):\n flaga+=1\nif (s[2]=='0' and 1<=int(s[3])<=9) or (s[2]=='1' and 0<=int(s[3])<=2):\n flagb+=1\n\nif flaga==1 and flagb==1:\n print('AMBIGUOUS')\nelif flaga==1 and flagb==0:\n print('YYMM')\nelif flaga...
['Wrong Answer', 'Accepted']
['s651982704', 's914243391']
[3064.0, 3064.0]
[17.0, 17.0]
[383, 380]
p03042
u586754007
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['a = input()\nif (a[:2] >0 and a[:2]<13) and (a[2:] >0 and a[2:]<13):\n print("both")\nif (a[:2] >0 and a[:2]<13) and (a[2:] ==0 or a[2:]>13):\n print("MMYY")\nif (a[:2] ==0 or a[:2]>13) and (a[2:]>0 or a[2:]<13):\n print("YYMM")\nif (a[:2] ==0 or a[:2]>13) and (a[2:] ==0 or a[2:]>13):\n print("YYMM")\n', 'a = i...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s291396233', 's997485300', 's758992842']
[3064.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0]
[300, 204, 281]
p03042
u589969467
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["s = str(input())\nans = ['YYMM','MMYY','AMBIGUOUS','NA']\n#print(s[:2],s[-2:])\nif 0<int(s[:2])<=12 and 0<int(s[-2:]<=12:\n print(ans[3])\nelif 0<int(s[:2])<=12:\n print(ans[2])\nelif 0<int(s[-2:])<=12:\n print(ans[1])\nelse:\n print(ans[4])\n ", "s = str(input())\nans = ['YYMM','MMYY','AMBIGUOUS','NA'...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s191875750', 's481273811', 's798920767', 's643048611']
[8936.0, 9040.0, 9060.0, 9196.0]
[30.0, 26.0, 28.0, 26.0]
[248, 249, 322, 322]
p03042
u594956556
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["s=input()\ns1=int(s[:2])\ns2=int(s[2:])\n\nif s1<=12 & s1>=1:\n if s2<=12 & s2>=1:\n print('AMBIGUOUS')\n else:\n print('MMYY')\nelse:\n if s2<=12 & s2>=1:\n print('YYMM')\n else:\n print('NA')", "s=input()\ns1=int(s[:2])\ns2=int(s[2:])\n\nif (s1<=12) & (s1>=1):\n if (s2<=12) & (s2>=1):\n print('A...
['Wrong Answer', 'Accepted']
['s053650057', 's963121006']
[2940.0, 3060.0]
[18.0, 18.0]
[196, 208]
p03042
u597455618
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = input()\n\nif 0 < int(s[0:2]) <= 12 and 0 < int(s[2:4]) <= 12 :\n print("AMBIGUOUS")\nelif (12 < int(s[0:2]) or int(s[0:2]) == 0) and 0 < int(s[2:4]) <= 12:\n print("YYMM")\nelif 0 < int(s[0:2]) <= 12 and (12 < int(s[2:4] or int(s[2:4]) == 0):\n print("MMYY")\nelse:\n print("NA")', 's = input()\n\nif 0 < int...
['Runtime Error', 'Accepted']
['s422022649', 's057666701']
[3064.0, 3064.0]
[16.0, 17.0]
[280, 281]
p03042
u598229387
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["s = input()\na = int(s[0] + s[1])\nb = int(s[2] + s[3])\n\nif a = 0 or b = 0:\n print('NA')\nelif a>=13 and b >=13:\n print('NA')\nelif a >= 13:\n print('YYMM')\nelif b >= 13:\n print('MMYY')\nelse:\n print('AMBIGUOUS')", "s = input()\na = int(s[0] + s[1])\nb = int(s[2] + s[3])\n\nif 1 <= a <= 12 and ...
['Runtime Error', 'Accepted']
['s353840135', 's825305046']
[2940.0, 3060.0]
[17.0, 18.0]
[221, 206]
p03042
u600935366
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["s = str(input())\n\ndate = [int(s[:2]), int(s[2:])]\n\nif 1 <= date[0] <= 12 and 1 <= date[1] <= 12:\n print('AMBIGUOUS')\nelif 1 <= date[1] <= 12:\n print('YYMM')\nelif 1 <= date[0] <= 12:\n print('MMYY')\nelse:\n print('NA')\n \nprint(date)", "s = str(input())\n\ndate = [int(s[:2]), int(s[2:])]\n\nif...
['Wrong Answer', 'Accepted']
['s578998142', 's167960130']
[3064.0, 3060.0]
[17.0, 17.0]
[244, 227]
p03042
u607075479
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S = input()\npre, lat = int(S[0:2]), int(S[2:4])\npre_M = 1 <= pre <= 12\nlat_M = 1 <= pre <= 12\nif pre_M and lat_M:\n print("AMBIGUOUS")\nelif pre_M:\n print("MMYY")\nelif lat_M:\n print("YYMM")\nelse:\n print("NA")', 'S = input()\npre, lat = int(S[0:2]), int(S[2:4])\npre_M = 1 <= pre <= 12\nlat_M = 1 <= lat <=...
['Wrong Answer', 'Accepted']
['s106672174', 's675013042']
[3060.0, 3060.0]
[18.0, 17.0]
[210, 210]
p03042
u607729897
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["S = input()\nf = int(S[:2])\ns = int(S[2:])\nif 1 <= f <= 12:\n if 1 <= s <= 12:\n print('AMBIGUOUS')\n else:\n print('MMYY')\nelif if 1 <= s <= 12:\n print('YYMM')\nelse:\n print('NA')", "S = input()\nf = int(S[:2])\ns = int(S[2:])\nif 1 <= f <= 12:\n if 1 <= s <= 12:\n print('AMBIGUOUS')\n else:\n ...
['Runtime Error', 'Accepted']
['s119877275', 's603999512']
[2940.0, 2940.0]
[17.0, 17.0]
[184, 182]
p03042
u608088992
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
[' import sys, math, collections, heapq, itertools\nF = sys.stdin\ndef single_input(): return F.readline().strip("\\n")\ndef line_input(): return F.readline().strip("\\n").split()\ndef gcd(a, b):\n a, b = max(a, b), min(a, b)\n while a % b > 0: a, b = b, a % b\n return b\n \ndef solve():\n S = single_in...
['Runtime Error', 'Accepted']
['s511542882', 's177942795']
[2940.0, 3316.0]
[17.0, 20.0]
[606, 602]
p03042
u609814378
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S = input()\n\nif 0 < int(S[0:2]) <=12 and 0 < (int(S[2:4])) <= 12:\n print("AMBIGUOUS")\nelif int(S[0:2]) > 12 and 0 < (int(S[2:4])) <= 12:\n print("YYMM")\nelif 0 < int(S[0:2]) <= 12 and int(S[2:4]) > 12:\n print("MMYY")\nelif int(S[0:2]) == and 0 < (int(S[2:4])) <= 12:\n print("YYMM")\nelif 0 < int(S...
['Runtime Error', 'Accepted']
['s842732901', 's485972630']
[2940.0, 2940.0]
[17.0, 17.0]
[389, 200]
p03042
u612495095
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['def mmyy():\n S=input()\n \n a=int(S[:2])\n b=int(S[2:])\n \n if(1<=a<=12 and 1<=b<=12):\n print("AMBIGUOUS")\n elif(1<=a<=12):\n print("mmyy")\n elif(1<=b<=12):\n print("yymm")\n else:\n print("na")\n\nif __name__ =="__main__":\n mmyy()\n ', 'S=input()\n\na=int(S[:2])\nb=int(S[2:])\n\nif(1<=a<...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s311025422', 's325198027', 's546332488', 's877163451', 's421774401']
[2940.0, 2940.0, 3060.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[246, 170, 357, 318, 170]
p03042
u616117610
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = int(input())\n\ns1 = s // 100\ns2 = s - s1\n\nif s1 > 12 or s1 == 0:\n temp1 = 0\nelse:\n temp1 = 1\n\nif s2 > 12 or s2 == 0:\n temp2 = 0\nelse:\n temp2 = 1\n\n\nif temp1 == 0 and temp2 == 1:\n print("YYMM")\nif temp1 == 0 and temp2 == 0:\n print("NA")\nif temp1 == 1 and temp2 == 0:\n print("...
['Wrong Answer', 'Accepted']
['s359240960', 's544324747']
[3064.0, 3064.0]
[18.0, 17.0]
[356, 362]
p03042
u617556913
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S=int(input())\na=s//100\nb=s%100\nif a>0 and a<=12:\n if b>0 and b<=12:\n print("AMBIGUOUS")\n else:\n print("MMYY")\nelse:\n if b>0 and b<=12:\n print("YYMM")\n else:\n print("NA")', 's=int(input())\na=s//100\nb=s%100\nif a>0 and a<=12:\n if b>0 and b<=12:\n print("AMBIGUOUS")\n else:\n prin...
['Runtime Error', 'Accepted']
['s349365459', 's401615109']
[9172.0, 9164.0]
[31.0, 29.0]
[186, 186]
p03042
u623231048
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = int(input())\n\nb = s % 100\na = int((s-b)/100)\n\nif a ==0 or b == 0\n print(‘NA’)\nelif a> 12 and b>12\n print(‘NA’)\nelif a>12\n print(‘YYMM’)\nelif b>12\n print(‘MMYY’)\nelse\n print(‘AMBIGUOUS’)\n\n', 's = int(input())\n\nb = s % 100\na = int((s-b)/100)\n\nif a ==0 or b == 0:\n print(‘NA’)\...
['Runtime Error', 'Runtime Error', 'Accepted']
['s210567477', 's834702183', 's022769866']
[2940.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0]
[226, 231, 379]
p03042
u631429391
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["s = input()\nbe = s[0:2]\naf = s[2:4]\nif int(be) <= 12 and int(af) <= 12:\n print('AMBIGUOUS')\nelif (int(be) > 12 and af == '00') or (be == '00' and int(af) > 12):\n print('NA')\nelse:\n if int(be) > 12:\n print('MMYY')\n elif int(af) > 12:\n print('YYMM')", "s = input()\nbe = int(s[0:2])\naf = int(s[2:4]...
['Wrong Answer', 'Accepted']
['s847983876', 's128379250']
[3064.0, 2940.0]
[18.0, 17.0]
[257, 239]
p03042
u633355062
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = input()\na = int(s[:2])\nb = int(s[2:])\nf_yymm = False\nf_mmyy = False\n\nif 1 <= a <= 12:\n f_yymm = True\nif 1 <= b <= 12:\n f_mmyy = True:\n \nif f_yymm and f_mmyy:\n print("AMBIGUOUS")\nelif f_yymm and (not f_mmyy):\n print("YYMM")\nelif (not f_yymm) and f_mmyy:\n print("MMYY")\nelse:\n print("NA")\...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s066706810', 's335523301', 's215094050']
[2940.0, 3316.0, 3316.0]
[17.0, 19.0, 18.0]
[302, 301, 302]
p03042
u641384894
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["# coding: utf-8\ns = input()\ns_list=list(s)\ns_len=len(s_list)\ns_first=int(s_list[0]+s_list[1])\ns_second=int(s_list[2]+s_list[3])\nif s_first<13:#MMYY case\n if s_second<13:\n print('AMBIGOUS')\n else:\n print('MMYY')\n\nelse if: #YYMM case\n if s_second==0:\n print('NA')\n else:\n...
['Runtime Error', 'Accepted']
['s135221109', 's306245199']
[2940.0, 3060.0]
[17.0, 17.0]
[346, 367]
p03042
u642528832
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = input()\ns_f = int(s[0]+s[1])\ns_b = int(s[2]+s[3])\n\n#print(s_f)\n#print(s_b)\nif s_f==0 or s_b==0:\n print(\'NA\')\nelif s_f<=12 and s_b<=12:\n print("AMBIGUOUS")\nelif s_f<=12 and s_b>12:\n print(\'MMYY\')\nelif s_f>12 and s_b<=12:\n print(\'YYMM\')\nelif s_f>12 and s_b>12\n print(\'NA\')\n ...
['Runtime Error', 'Accepted']
['s063552360', 's040813145']
[8924.0, 9128.0]
[26.0, 24.0]
[299, 296]
p03042
u648212584
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['n = input()\n\na = int(n[0]+n[1])\nb = int(n[2]+n[3])\nif b = 0 or b > 12:\n\tif 1 <= a <= 12:\n\t\tprint("MMYY")\n\telse:\n\t\tprint("NA")\nelif 1 <= a <= 12:\n\tprint("AMBIGUOUS")\nelse:\n\tprint("YYMM")', 'n = input()\n\na = int(n[0]+n[1])\nb = int(n[2]+n[3])\nif b == 0 or b > 12:\n\tif 1 <= a <= 12:\n\t\tprint("M...
['Runtime Error', 'Accepted']
['s871672702', 's032508906']
[2940.0, 2940.0]
[17.0, 18.0]
[185, 187]
p03042
u663561584
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = str(input())\nif s[0] == "0" and s[1] == "0" and int(s[2]+s[3]) > 12:\n print("NA")\nelif s[2] == "0" and s[3] == "0" and int(s[0]+s[1]) > 12:\n print("NA")\nelif int(s[0]+s[1]) > 12 or int(s[2]+s[3]) > 12:\n print("NA")\nelif int(s[0]+s[1]) > 12 and int(s[2]+s[3]) < 12:\n print("YYMM")\nelif int(s[2]...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s009331689', 's276853224', 's233950540']
[3064.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0]
[392, 532, 533]
p03042
u665038048
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["zenhan = int(S[:2])\nkouhan = int(S[2:])\nif zenhan == 0 or kouhan == 0:\n print('NA')\nelif zenhan > 12 and kouhan > 12:\n print('NA')\nelif zenhan <= 12 and kouhan <= 12:\n print('AMBIGUOUS')\nelif zenhan <= 12 and kouhan > 12:\n print('MMYY')\nelif zenhan > 12 and kouhan <= 12:\n print('YYMM')", "S ...
['Runtime Error', 'Accepted']
['s008458696', 's716362849']
[3060.0, 3064.0]
[18.0, 17.0]
[301, 528]
p03042
u666844906
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["S = input()\n\nif (1 <= S[:2] <= 12) & (1 <= S[2:] <= 12):\n print('AMBIGUOUS')\nelif (1 <= S[:2] <= 12) & ((S[2:] == 0) or (13 <= S[2:])):\n print('MMYY')\nelif (1 <= S[2:] <= 12) & ((S[:2] == 0) or (13 <= S[:2])):\n print('YYMM')\nelse:\n print('NA')", "S = input()\n\n#print(type(S[:2]))\n#print(type(in...
['Runtime Error', 'Accepted']
['s174756501', 's451265914']
[3064.0, 3064.0]
[17.0, 17.0]
[255, 341]
p03042
u667024514
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = str(input())\nss = s[:2]\nsss = s[2:]\n\nif "01" <= ss <= "12":\n if "01" <= sss <= "12":\n print("AMBIGUOUS")\n else:\n print("YYMM")\nelse:\n if "01" <= sss <= "12":\n print("MMYY")\n else:\n print("NA")', 's = str(input())\nss = s[:2]\nsss = s[2:]\n\nif "01" <= sss <= "1...
['Wrong Answer', 'Accepted']
['s261724940', 's486097518']
[2940.0, 2940.0]
[17.0, 17.0]
[236, 243]
p03042
u670567845
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["S = input()\n\nf = int(S[0]+S[1])\ns = int(S[2]+S[3])\n\nif f >= 1 and f <= 12 and s >= 1 and s <= 12:\n print('AMBIGUOUS')\nelif f >= 1 and f <=12 and (s >= 13 or s == 0):\n print('MMYY')\nelif (f >= 13 or f == 0 and s >= 1 and s <= 12:\n print('YYMM')\nelse:\n print('NA')\n ", "S = input()\n\nf = int(S[0]+S[1]...
['Runtime Error', 'Runtime Error', 'Accepted']
['s093734493', 's420693890', 's460404541']
[3060.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[269, 243, 267]
p03042
u672494157
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['import sys\nfrom collections import deque\n\nsys.setrecursionlimit(4100000)\n\n\ndef inputs(num_of_input):\n ins = [input() for i in range(num_of_input)]\n return ins\n\n\ndef solve(inputs):\n head = int(inputs[0][:2])\n tail = int(inputs[0][2:])\n\n if head == 0 or tail == 0:\n return "NA"\n\n ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s396622383', 's990907318', 's824130017']
[3316.0, 3316.0, 3316.0]
[23.0, 22.0, 21.0]
[633, 633, 616]
p03042
u673361376
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["def is_month(input_str):\n if 1 <= int(input_str) and int(input_str) <= 12:\n return True\n else:\n return False\n \ndef is_year(input_str):\n if 0 <= int(input_str) and int(input_str) <= 99:\n return True\n else:\n return False\n\ns=input().strip()\nfirst_half = [is_month(s[:2]), is_year(s[:2])]\n...
['Wrong Answer', 'Accepted']
['s093777267', 's695100140']
[3188.0, 3064.0]
[17.0, 17.0]
[601, 603]
p03042
u677167731
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['def is_mm(target):\n n = int(target)\n print(n)\n return 1 <= n <= 12\n\n\ndef get_result(first2_is_mm, last2_is_mm):\n if first2_is_mm and last2_is_mm:\n return "AMBIGUOUS"\n if not first2_is_mm and not last2_is_mm:\n return "NA"\n if first2_is_mm:\n return "MMYY"\n return "...
['Wrong Answer', 'Accepted']
['s402957085', 's728824206']
[3060.0, 3060.0]
[17.0, 17.0]
[438, 425]
p03042
u680442866
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["s=input()\na=s[:1]\nb=s[2:]\nif (1<=a<=12 and 1<=b<=12):\n print('AMBIGUOUS')\nelif (1<=a<=12 and (b=0 or 13<b):\n print('MMYY')\nelif (1<=b<=12 and (a=0 or 13<a):\n print('YYMM')\nelse:\n print('NA')", "s=input()\na=int(s[:2])\nb=int(s[2:])\nif (1<=a<=12) and (1<=b<=12):\n print('AMBIGUOUS')\nelif (...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s096191189', 's249291750', 's769685614', 's788317541', 's230307060']
[2940.0, 2940.0, 2940.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0, 17.0, 18.0]
[206, 220, 218, 216, 222]
p03042
u681110193
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s=int(input())\nx=s//100\ny=s-x*100\n\nif x*y=0:\n print("NA")\n\nelse:\n if x<13:\n if y<13:\n print("AMBIGUOUS")\n else:\n print("MMYY")\n \n else:\n if y<13:\n print("YYMM")\n else:\n print("NA")', 's=int(input())\nx=s//100\ny=s-x*100\n\n\n\n\nif x>0 and x<13:\n if y>0 and y...
['Runtime Error', 'Accepted']
['s162751629', 's950926270']
[2940.0, 2940.0]
[17.0, 17.0]
[219, 195]
p03042
u682467216
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S = int(input())\n\nfirst_half = round(S, -2) / 100\nsecond_half = S - round(S, -2)\n\nif 1 <= second_half <= 12 and 1 <= first_half <= 12 :\n print("AMBIGUOUS")\n elif 1 <= second_half <= 12 :\n print("YYMM")\n elif 1 <= first_half <= 12 :\n print("MMYY")\n else: \n print("NA")', 'S = int(input())\n\nfi...
['Runtime Error', 'Runtime Error', 'Accepted']
['s173500167', 's933195057', 's453294108']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[280, 288, 302]
p03042
u685983477
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['def main():\n s = int(input())\n k = s//100\n t = s%100\n\n if(k>0 and k<13) and (t>0 and t<13):\n res = "AMBIGUOUS"\n elif(k>0 and k<13) and\n res = "MMYY"\n elif(t>0 and t<13):\n res = "YYMM"\n else:\n res = "NA"\n print(res)\n\n\n\n\n\n\nif __name__ == \'__main_...
['Runtime Error', 'Accepted']
['s092867439', 's922920037']
[2940.0, 3060.0]
[17.0, 16.0]
[312, 309]
p03042
u686036872
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S = input()\nif 1 <= int(S[:2]) <= 12 and 1 <= int(S[2:]) <= 12:\n print("AMBIGUOUS")\nelif int(S[:2]) > 12 and int(S[2:]) != 0:\n print("YYMM")\nelif int(S[2:]) > 12 int(S[:2]) != 0:\n print("MMYY")\nelse:\n print("NA")', 'S = input()\nif 1 <= int(S[:2]) <= 12 and 1 <= int(S[2:]) <= 12:\n print("AMBIG...
['Runtime Error', 'Accepted']
['s580212898', 's801183140']
[2940.0, 3064.0]
[17.0, 16.0]
[224, 200]
p03042
u688375653
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S = input()\n\nhead = S[:2]\ntail = S[2:]\n\n\nif 12>=int(head)>=1 and 12>=int(tail)>=1:\n print("AMBIGUOUS")\nelif 12>=int(head)>=1:\n print("YYMM")\nelif 12>=int(tail)>=1:\n print("MMYY")\nelse:\n print("NA")', 'S = input()\n\nhead = S[:2]\ntail = S[2:]\n\n\nif 12>=int(head)>=1 and 12>=int(tail)>=1:\n ...
['Wrong Answer', 'Accepted']
['s648519490', 's226596498']
[3060.0, 3060.0]
[17.0, 17.0]
[209, 209]
p03042
u689322583
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["def yymm():\n num = input()\n former = num[:2]\n latter = num[2:]\n\n former = int(former)\n latter = int(latter)\n print(former)\n print(latter)\n\n if 1 <= former <= 12 and 1<= latter <= 12:\n print('AMBIGUOUS')\n elif 1 <= former <= 12:\n print('MMYY')\n elif 1 <= latter...
['Wrong Answer', 'Accepted']
['s756154184', 's387830061']
[3316.0, 3316.0]
[18.0, 19.0]
[402, 406]
p03042
u697112825
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['if __name__ == "__main__":\n s = input()\n\n i1 = int(s[0:2])\n i2 = int(s[2:4])\n\n print(i1)\n print(i2)\n\n ans = ""\n if i1 < 1 or i2 < 1:\n ans = "NA"\n else:\n if i1 < 13:\n if i2 < 13:\n ans = "AMBIGUOUS"\n else:\n ans = ...
['Wrong Answer', 'Accepted']
['s437321476', 's010691244']
[3064.0, 3064.0]
[17.0, 17.0]
[435, 599]
p03042
u699944218
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["S = input()\nls = list(S)\nlsa = [ls[0],ls[1]]\nlsb = [ls[2],ls[3]]\n\na = int(''.join(lsa))\nb = int(''.join(lsb))\n\nprint(a,b)\n\nif (a >= 1 and a <= 12):\n if b >= 1 and b <= 12:\n print('AMBIGIOUS')\n else:\n print('MMYY')\nelif b >= 1 and b <= 12:\n print('YYMM')\nelse:\n print('NA')", "s = input()\n ...
['Wrong Answer', 'Accepted']
['s574578985', 's268963741']
[3064.0, 3064.0]
[18.0, 17.0]
[282, 270]
p03042
u701318346
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["S = input()\nS1 = S[:1]\nS2 = S[2:]\nmonth = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']\n\nif S1 in month and S2 in month:\n\tprint('AMBIGUOUS')\nelif S1 in month:\n\tprint('MMYY')\nelif S2 in month:\n\tprint('YYMM')\nelif S1 == '00': \n\tprint('MMYY')\nelif: S2 == '00':\n\tprint('YYMM')...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s017476132', 's117762152', 's301058588', 's503113076', 's723612160']
[2940.0, 3060.0, 2940.0, 3316.0, 3316.0]
[17.0, 17.0, 17.0, 20.0, 21.0]
[318, 197, 318, 169, 197]
p03042
u702213338
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S = int(input())\n\nword = "NA","YYMM","MMYY","AMBIGUOUS"\nS1 = int(S/100)\nS2 = int(S%100)\nanswer = 0\nif S1 > 0 and S1 < 13:\n if S2 >= 0 and S2 <= 99:\n answer = answer + 1\nif S2 > 0 and S2 < 13:\n if S1 >= 0 and S1 <= 99:\n answer = answer + 2\nprint(word[answer])\n', 'S = int(input())\n\nword = "NA","M...
['Wrong Answer', 'Accepted']
['s620592139', 's587163617']
[3060.0, 3060.0]
[17.0, 17.0]
[267, 266]
p03042
u703890795
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S = input()\na = int(S[0:2])\nb = int(S[2:4])\nfym = False\nfmy = False\nif 1<=a<=12:\n fmy == True\nif 1<=b<=12:\n fym == True\nif fmy and fym:\n print("AMBIGUOUS")\nelif fmy:\n print("MMYY")\nelif fym:\n print("YYMM")\nelse:\n print("NA")', 'S = input()\na = int(S[0:2])\nb = int(S[2:4])\nprint(a, b)\nfym = Fa...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s686154003', 's735203426', 's329796237']
[3064.0, 3064.0, 3064.0]
[17.0, 17.0, 18.0]
[230, 240, 228]
p03042
u704460404
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["def month(num):\n if 0 < num <= 12:\n return True\n else:\n return False\n\n\nS = input()\nfirst = int(S[:2])\nsecond = int(S[2:])\n\nif month(first)\n if month(second):\n print('AMBIGUOUS')\n else:\n print('MMYY')\n\nelif not month(first) and month(second):\n print('YYMM')\...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s003932233', 's768772910', 's084633315']
[2940.0, 3060.0, 3060.0]
[16.0, 17.0, 17.0]
[326, 334, 327]
p03042
u710482948
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["def judge_month(s):\n if '00' < s and s <= '12':\n return True\n else:\n return False\n\nS = input()\n\ns1 = S[0] + S[1]\ns2 = S[2] + S[3] \n\nmonth_1 = judge_month(s1)\nmonth_2 = judge_month(s2)\n\nif s1 and s2:\n print('AMBIGUOUS')\nelif month_1:\n print('MMYY')\nelif month_2:\n print('...
['Wrong Answer', 'Accepted']
['s148181536', 's783285740']
[3060.0, 3060.0]
[17.0, 17.0]
[329, 339]
p03042
u711950144
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["s = input()\nmmyy = (1 <= int(s[0:2]) <= 12)\nyymm = (1 <= int(s[2:-1]) <= 12)\nif mmyy:\n if yymm:\n print('AMBIGUOUS')\n else:\n print('MMYY')\nelse:\n if yymm:\n print('YYMM')\n else:\n print('NA')", "s = input()\nmmyy = (1 <= int(s[:2]) <= 12)\nyymm = (1 <= int(s[2:]) <= 12)\nif mmyy and yymm:\n ...
['Wrong Answer', 'Accepted']
['s824725698', 's762591745']
[9076.0, 8956.0]
[27.0, 30.0]
[204, 194]
p03042
u715036868
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['\tdef main():\n\t str = input()\n\t YY = []\n\t MM = []\n\t YYMM_flg = False\n\t MMYY_flg = False\n\t AMB_flg = False\n\t NA_flg = False\n\n\t for i in range(2):\n\t \tYY.append(str[i])\n\n\t for i in range(2, 4):\n\t \tMM.append(str[i])\n\n\t yy = int(\'\'.join(YY))\n\t mm = in...
['Runtime Error', 'Accepted']
['s864201884', 's246525194']
[2940.0, 3064.0]
[17.0, 18.0]
[774, 742]
p03042
u716043626
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["S = input()\nA = int(S[0:2])\nB = int(S[2:4])\n\nprint(A,B)\n\nif A == 0 & B == 0:\n print('NA')\n \nelif 1 <= A <= 12:\n if 1 <= B <= 12:\n print('AMBIGUOUS')\n else:\n print('MMYY')\n \nelif 1 <= B <= 12:\n if 1 <= A <= 12:\n print('AMBIGUOUS')\n else:\n print('Y...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s305807042', 's525450048', 's264945367']
[3064.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[335, 255, 333]
p03042
u720124072
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = int(input())\n\nif s[:1] <= 12 and s[2:] <= 12:\n print("AMBIGUOUS")\nelif s[:1] <= 12:\n print("MMYY")\nelif s[2:] <= 12:\n print("YYMM")\nelse:\n print("NA")', 's = input()\n\nif 0 < int(s[:2]) <= 12 and 0 < int(s[2:]) <= 12:\n print("AMBIGUOUS")\nelif 0 < int(s[:2]) <= 12:\n print("MMYY")\nelif 0 < int(s...
['Runtime Error', 'Accepted']
['s338985721', 's017416377']
[2940.0, 3060.0]
[17.0, 18.0]
[158, 189]
p03042
u724742135
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["from sys import stdin\nS = stdin.readline().rstrip()\nzen, kou = S[:2], S[2:]\nif 1 <= zen <= 12:\n if 1 <= kou <= 12:\n print('AMBIGUOUS')\n else:\n print('MMYY')\nelse:\n if 1 <= kou <= 12:\n print('YYMM')\n else:\n print('NA')", "from sys import stdin\nS = stdin.readline().rstrip()\nzen, kou = int(...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s059835703', 's194304132', 's530947515', 's843378265', 's767171696']
[2940.0, 3064.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 18.0, 17.0, 17.0]
[233, 388, 233, 233, 391]
p03042
u728274111
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = raw_input()\n\na = int(s[:2])\nb = int(s[2:])\n\nif 0<a<13:\n if 0<b<13:\n print("AMBIGUOUS")\n else:\n print("MMYY")\nelse:\n if -1<b<13:\n print("YYMM")\n else:\n print("NA")\n', 's = input()\na = int(s[:2])\nb = int(s[2:])\n\nif 0<a<13:\n if 0<b<13:\n print("AM...
['Runtime Error', 'Accepted']
['s697585583', 's084160673']
[8928.0, 8972.0]
[24.0, 24.0]
[207, 201]
p03042
u731362892
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['data=list(input())\na=10*int(data[0])+int(data[1])\nb=10*int(data[2])+int(data[3])\n\nif (a==0 and 1<=b<=12)or (a<=13 and 1<=b<=12):\n print ("YYMM")\nelif (b==0 and 1<=b<=12) or (b<=13 and 1<=a<=12):\n print("MMYY")\nelif 0<=a<=12 and 0<=b<=12:\n print("AMBIGUOUS")\nelse:\n print("NA")\n \n', 'data=l...
['Wrong Answer', 'Accepted']
['s812287859', 's259747165']
[3060.0, 3060.0]
[17.0, 18.0]
[295, 293]
p03042
u731866445
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["s = list(input())\nbef=int(s[0])*10+int(s[1])\naft=int(s[2])*10+int(s[3])\n\nans=''\nif 0<aft<13 and 0<bef<13:\n ans='AMBIGUOUS'\nelif 100>aft>=0 and 0<bef<32:\n ans='MMYY'\nelif 100>bef>=0 and 0<aft<32:\n ans='YYMM'\nelse:\n ans='NA'\nprint(ans)", "s = list(input())\nbef=int(s[0])*10+int(s[1])\naft=int(s[2])*10+...
['Wrong Answer', 'Accepted']
['s623855734', 's699405350']
[3064.0, 3064.0]
[17.0, 17.0]
[237, 262]
p03042
u732651691
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["def checkMM(i):\n if i >= 1 and i <= 12:\n result = 1\n else:\n result = 0\n return result\n\ndef checkYY(i):\n if i >= 0 and i <= 99:\n result = 1\n else:\n result = 0\n return result\n\n\ns = input()\n\ns1 = int(s[:3])\ns2 = int(s[3:])\n\nresult = 'NA'\n\nif checkMM(s1)...
['Wrong Answer', 'Accepted']
['s361876182', 's756793617']
[3064.0, 3064.0]
[17.0, 17.0]
[469, 470]
p03042
u733774002
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = input()\nif (s[2] == "0" and (s[3] == "1" or "2" or "3" or "4" or "5" or "6" or "7" or "8" or "9")) or (s[2] == "1" and s[3] == "0" or "1" or "2"):\n if (s[0] == "0" and (s[1] == "1" or "2" or "3" or "4" or "5" or "6" or "7" or "8" or "9")) or (s[0] == "1" and s[1] == "0" or "1" or "2"):\n print("MMYY")...
['Wrong Answer', 'Accepted']
['s548112537', 's071890028']
[3064.0, 2940.0]
[17.0, 20.0]
[580, 232]
p03042
u735069283
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["n=str(input())\na=int(n[0]+n[1])\nb=int(n[2]+n[3])\nif 1<=a<=12 and 1<=b<=12:\n print('AMBIGUOUS')\nelif 1<=a<=12:\n print('YYMM')\nelif 1<=b<=12:\n print('MMYY')\nelse:\n print('NA')", "n=str(input())\na=int(n[0]+n[1])\nprint(a)\nb=int(n[2]+n[3])\nprint(b)\nif 1<=a<=12 and 1<=b<=12:\n print('AMBIGUOUS')\nelif 1...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s396101099', 's899677985', 's144299085']
[3060.0, 3060.0, 3060.0]
[17.0, 17.0, 18.0]
[177, 195, 177]
p03042
u739959951
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["l=[i for i in str(input())]\nA=int(''.join(l[:2]))\nB=int(''.join(l[2:]))\n\nif A==00 or A>=13:\n if B==00 or B>=13:\n print('NA')\n else:\n print('YYMM')\nelif A>=01 and A<=12:\n if B==00 or B>=13:\n print('MMYY')\n else:\n print('AMBIGUOUS')\n ", "l=[i for i in str(input())]\nA=int(''.join(l[:2]))\...
['Runtime Error', 'Accepted']
['s101568704', 's777077247']
[2940.0, 3060.0]
[17.0, 17.0]
[249, 245]
p03042
u740284863
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = list(str(input()))\nA = int(s[0]+s[1])\nB = int(s[2]+s[3])\nif 0 < a < 13:\n if 0 < b < 13:\n print("AMBIGUOUS")\n else:\n print("MMYY")\n\nelse:\n if 0 < b < 13:\n print("YYMM")\n else:\n print("NA")\nprint(ans)\n', 's = list(str(input()))\na = int(s[0]+s[1])\nb = int(s[2]...
['Runtime Error', 'Accepted']
['s852819912', 's079862862']
[2940.0, 2940.0]
[17.0, 16.0]
[243, 232]
p03042
u740767776
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = input()\nfirst = s[0] + s[1]\nsecond = s[2] + s[3]\nprint(first,second)\nif first == "00" or second == "00":\n print("NA")\nelif first <= "12" and first >= "01" and second <= "12" and second >= "01":\n print("AMBIGUOUS")\nelif first <= "12" and first >= "01":\n print("MMYY")\nelse:\n print("YYMM")', '...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s564616418', 's681643478', 's865057381']
[3060.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0]
[303, 358, 277]
p03042
u748311048
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["S=str(input())\n\nif 0<int(S[0]+S[1])<=12 and 0<int(S[2]+S[3])<=12:\n print('AMBIGUOUS');exit()\nelif S[0]+S[1]=='00':\n print('NA');exit()\nelif (S[0]+S[1]<=12 or S[2]+S[3]=='00') and int(S[0]+S[1])>12:\n print('YYMM');exit()\nelse:\n print('MMYY');exit()", "S=str(input())\n\nif 0<int(S[0]+S[1])<=12 and 0<int(S[...
['Runtime Error', 'Runtime Error', 'Accepted']
['s446389639', 's790289294', 's395573366']
[3064.0, 3064.0, 3064.0]
[17.0, 17.0, 18.0]
[251, 252, 240]
p03042
u757030836
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = input()\n\nYYMM = False\nMMYY = False\nmonth = []\nfor i in range(1,13):\n if len(str(i))==1:\n month.append("0"+str(i))\n else:\n month.append(str(i))\n \nif s[:2] in month:\n MMYY = True\n \nif[2:] in month:\n YYMM = True\n \nif MMYY is True and YYMM is True:\n print("AMBIGUOUS")\nelif MMYY is T...
['Runtime Error', 'Accepted']
['s061877701', 's658148646']
[2940.0, 3064.0]
[17.0, 17.0]
[410, 414]
p03042
u762488523
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["A = str(input())\nB =int(A[0:1])\nC =int(A[2:4])\nprint(A)\nprint(B)\nprint(C)\n\nif B >=1 and B<=12:\n B_mm = True\nelse:\n B_mm = False\n\nif C >=1 and C<=12:\n C_mm = True\nelse:\n C_mm = False\n\nif B >=0 and B<=99:\n B_yy = True\nelse:\n B_yy = False\n\nif C >=0 and C<=99:\n C_yy = True\nels...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s019415738', 's102774079', 's247010226', 's366878777', 's836623496', 's341078400']
[3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[538, 503, 503, 538, 503, 511]
p03042
u763383823
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["s = list(map(int,input().split()))\nif s[0] <= 1 and s[1] <= 2:\n if s[2] <= 1 and s[3] <= 2:\n print('AMBIGUOUS')\n else:\n print('MMYY')\nelif s[2] <= 1 and s[3] <= 2:\n print('YYMM')\nelse:\n print('NA')", "s = input()\n\ns1 = int(s[0]+s[1])\ns2 = int(s[2]+s[3])\n\nif s1 <= 12 and s2 <= 1...
['Runtime Error', 'Accepted']
['s761173032', 's567095734']
[3064.0, 3060.0]
[17.0, 17.0]
[223, 238]
p03042
u764956288
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["def can_be_month(n):\n if 0 < n < 13:\n return True\n return False\n\n\nS = input()\n\nif not S:\n print('NA')\nelif can_be_month(S[:2]) and can_be_month(S[2:]):\n print('AMBIGUOUS')\nelif can_be_month(S[:2]):\n print('MMYY')\nelif can_be_month(S[2:]):\n print('YYMM')\n", "def can_be_month(n)...
['Runtime Error', 'Accepted']
['s999588067', 's349304189']
[3056.0, 2940.0]
[17.0, 17.0]
[279, 278]
p03042
u765865533
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S=list(input())\nXXYY=[]\nl=\' \'\nfor i in range(2):\n l+=S[i]\nXXYY.append(int(l))\nl=\' \'\nfor i in range(2,4):\n l+=S[i]\nXXYY.append(int(l))\nans=[]\nif XXYY[0]>31:\n ans.append("NA")\nelif XXYY[0]<=31 and XXYY[0]>12:\n if XXYY[1]<=12 and XXYY[1]>0:\n ans.append("MMYY")\n else:\n an...
['Wrong Answer', 'Accepted']
['s276815630', 's823415840']
[3064.0, 3064.0]
[17.0, 17.0]
[550, 557]
p03042
u767995501
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["s = int(input())\nl = s / 100\nr = s % 100\n\nif(1 <= l && <= 12):\n if(1 <= r && r <= 12):\n print('AMBIGUOUS')\n else:\n print('MMYY')\nelse:\n if(1 <= r && r <= 12):\n print('YYMM')\n else:\n print('NA')", "s = int(input())\nl = s / 100\nr = s % 100\n\nif(1 <= l && <= 12):\n ...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s095759469', 's156636228', 's911579471', 's918986485']
[2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[231, 233, 235, 238]
p03042
u769630892
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['import numpy as np\nimport fractions\n\n#S = input()\nS = "0101"\nF = int(S[0:2])\nE = int(S[2:4])\nif(F==0 or E==0 or (F>13 and E>13)):\n print("NA")\nelif(F<13 and E<13):\n print("AMBIGUOUS")\nelif(F<13 and E>13):\n print("MMYY")\nelif(F>13 and E<13):\n print("YYMM")\n', 'import numpy as np\nimport frac...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s545551129', 's572646873', 's328532658']
[13536.0, 2940.0, 22276.0]
[162.0, 17.0, 355.0]
[268, 258, 278]
p03042
u770077083
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = input()\np = int(s[:2])\na = int(s[2:])\n\nif 0 < p < 13 and 0 < a < 13:\n print("AMBIGUOUS")\nelif 0 < p < 13 and 0 < a < 100:\n print("MMYY")\nelif 0 < p < 100 and 0 < a < 13:\n print("YYMM")\nelse p == 0 or a == 0 or p > 12 and a > 12:\n print("NA")', 's = input()\np = int(s[:2])\na = int(s[2:])\n\...
['Runtime Error', 'Accepted']
['s606329223', 's149796069']
[2940.0, 3060.0]
[17.0, 17.0]
[257, 221]
p03042
u774160580
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S = input()\nif 1 <= int(S[0:2]) <= 12:\n if 1 <= int(S[2:]) <= 12:\n print("AMBIGUOUS")\n else:\n print("YYMM")\nelse:\n if 1 <= int(S[2:]) <= 12:\n print("MMYY")\n else:\n print("NA")\n', 'S = input()\nif 1 <= int(S[0:2]) <= 12:\n if 1 <= int(S[2:]) <= 12:\n print("...
['Wrong Answer', 'Accepted']
['s945911811', 's826241303']
[2940.0, 2940.0]
[17.0, 17.0]
[216, 216]
p03042
u778878014
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["S = list(map(int, input()))\npre = S[0] * 10 + S[1]\nsuf = S[2] * 10 + S[3]\nS2 = [pre, suf]\nans = ''\n\ndef YorM (x):\n if x == 0:\n return 'YY'\n elif x >= 1 and x <= 12:\n return 'AMB'\n else:\n return 'YY'\n\nS3 = [YorM(i) for i in S2]\n\nif S3[0] == 'YY':\n if S[1] == 'AMB':\n...
['Wrong Answer', 'Accepted']
['s253298119', 's050938260']
[3064.0, 3064.0]
[18.0, 17.0]
[458, 460]
p03042
u795323188
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = input()\n\na = int(s[:2])\nb = int(s[2:])\nif 1<= a <=12 and 1<=b<=12:\n\tprint("AMBIGUOUS")\nelif 1<=a<=12 and (b ==00 or b>=13):\n\tprint("MMYY")\nelif a == 00 and (a>=13 or 1<=b<=12):\n\tprint("YYMM")\nelse:\n\tprint("NA")', 's = input()\n\na = int(s[:2])\nb = int(s[2:])\nif 1<= a <=12 and 1<=b<=12:\n\tprint(...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s291521446', 's769238235', 's622158594']
[3060.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0]
[215, 212, 214]
p03042
u796102246
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['import sys\n\nS =int(input())\na = S//100\nb = S%100\nif 1 <= a <= 12 and 1 <= b <= 12 :\n print("AMBIGUOUS")\n sys.exit()\n\nelif 1 <= a <= 12 :\n print("YYMM")\n sys.exit()\n\nelif 1 <= b <= 12 :\n print("MMYY")\n sys.exit()\nelse : print("NA")\n', 'import sys\n\nS =int(input())\na = S//100\nb = S...
['Wrong Answer', 'Accepted']
['s076448778', 's370008736']
[2940.0, 2940.0]
[17.0, 18.0]
[249, 249]
p03042
u796789068
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S=input()\nif 1<=int(S[:2])<=12 and 13<=int(S[2:]) or int(S[2:])==0:\n print("MMYY")\nelif 1<=int(S[2:])<=12 and 13<=int(S[:2]) or int(S[:2])==0:\n print("YYMM")\nelif 1<=int(S[2:])<=12 and 1<=int(S[:2])<=12:\n print("AMBIGUOUS")2\nelif 13<=int(S[2:]) or int(S[2:])==0 and 13<=int(S[:2]) or int(S[:])==0:\n ...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s593592368', 's877383689', 's337130259']
[2940.0, 3064.0, 3064.0]
[17.0, 20.0, 17.0]
[322, 329, 329]
p03042
u799428010
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["n=input()\na=int(n[0:2])\nb=int(n[2:4])\nif a<=12 and b<=12:\n print('AMBIGUOUS')\nelif a>=12 and a<=12:\n print('MMYY')\nelif 12<=b and b<=12:\n print('YYMM')\nelse:\n print('NA')", "S=input()\na,b=int(S[:2]),int(S[2:])\nif 0<a<13 and 0<b<13:\n print('AMBIGUOUS')\nelif 0<a<13:\n print('MMYY')\nelif...
['Wrong Answer', 'Accepted']
['s969544665', 's227836352']
[9008.0, 9000.0]
[26.0, 26.0]
[182, 164]
p03042
u812803774
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = input()\nleft = int(s[:2])\nright = int(s[2:])\n\nif 1 <= left and left <=12 and 1 <= right and right <= 12:\n print("AMBIGUOUS")\nelif 1 <= left and left <= 12:\n \tprint("MMYY")\nelif 1 <= rihgt and right <= 12:\n \tprint("YYMM")\nelse:\n \tprint("NA")', 's = input()\nleft = int(s[:2])\nright = int(s[2:])...
['Runtime Error', 'Runtime Error', 'Accepted']
['s431362353', 's772760954', 's489581093']
[3060.0, 3060.0, 3060.0]
[17.0, 19.0, 17.0]
[250, 242, 246]
p03042
u813286880
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["S = input()\n\nE1 = int(S[:2])\nE2 = int(S[2:])\n\nif E1 >= 1 and E1 <= 12 and E2 >= 1 and E2 <= 12:\n print('AMBIGUOUS')\nelif E1 >= 1 and E1 <= 12:\n print('MMYY')\nelif E2 >= 1 and E2 <= 12:\n print('YYMM')\nelse\n print('NA')\n\n\n\n\n\n\n\n\n", "S = input()\n\nE1 = int(S[:2])\nE2 = int(S[2:])\n\nif E1 >= 1 a...
['Runtime Error', 'Accepted']
['s385809366', 's168301961']
[2940.0, 2940.0]
[17.0, 17.0]
[230, 231]
p03042
u814663076
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["import sys\nrr = lambda: sys.stdin.readline().strip()\nri = lambda: int(rr())\nrs = lambda: [int(_) for _ in rr().split()]\n\nS = rr()\n\nif not 1 <= int(S[:1]) <= 12:\n if not 1 <= int(S[2:]) <= 12:\n print('NA')\n else:\n print('YYMM')\nelif not 1 <= int(S[2:]) <= 12:\n\tif not 1 <= int(S[1:]) <...
['Runtime Error', 'Runtime Error', 'Accepted']
['s113650157', 's178463861', 's091040571']
[2940.0, 2940.0, 3064.0]
[17.0, 17.0, 19.0]
[390, 390, 322]
p03042
u818349438
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S = int(input())\nx = 0\na = S//100\nb = S%100\nif a>=1 and a<=12:\n x+=1\nif b>=1 and a<=12:\n x+=1\nif x = 0:\n print("NA")\nelif x = 2:\n print("AMBIGUOUS")\nif x = 1:\n if a>=1 and a<=12:\n print("MMYY")\n else:\n print("YYMM")', 'S = int(input())\nx = 0\na = S//100\nb = S%100\nif ...
['Runtime Error', 'Accepted']
['s643603531', 's899631350']
[2940.0, 3064.0]
[17.0, 17.0]
[247, 250]
p03042
u820047642
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['=input()\nL=["01","02","03","04","05","06","07","08","09","10","11","12"]\n\nif S[:2] in L:\n if S[2:] in L:\n print("AMBIGUOUS")\n else:\n print("MMYY")\nelse:\n if S[2:] in L:\n print("YYMM")\n else:\n print("NA")', 'S=input()\nL=["01","02","03","04","05","06","07","08","09",...
['Runtime Error', 'Accepted']
['s325090941', 's494026816']
[2940.0, 3060.0]
[17.0, 17.0]
[243, 244]
p03042
u821251381
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['DAY = input()\nYY = int(DAY[:2])\nMM = int(DAY[2:])\n#print(YY,MM)\n\nif YY < 1 or MM < 1:\n print("NA")\n\nelif YY <= 12 and MM <= 12:\n print("AMBIGIOUS")\n \nelse:\n if YY < MM:\n \tprint("YYMM")\n else:\n print("MMYY")', 'S = input()\na=int(S[:2])\nb=int(S[2:])\nif (1<=a and a<=12): \n if (1<=b and ...
['Wrong Answer', 'Accepted']
['s057356047', 's881500265']
[3060.0, 3060.0]
[19.0, 18.0]
[215, 228]
p03042
u821262411
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["s=str(input())\na=int(s[:2])\nb=int(s[2:])\nif a==0 or a>=13:\n astr='YY'\nelse:\n astr='MM'\n\nif b==0 or a>=13:\n bstr='YY'\nelse:\n bstr='MM'\n\nans=astr+bstr\n \nif ans=='YYYY':\n print('NA')\nelif ans=='MMMM':\n print('AMBIGUOUS')\nelse:\n print(ans)\n\n\n", "s=str(input())\na=int(s[:2])\nb=...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s055310673', 's189743294', 's825463856']
[3060.0, 3060.0, 3064.0]
[17.0, 17.0, 18.0]
[259, 256, 256]
p03042
u824647593
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S = input()\nif ((int(S[:2]) == 0) and (int(S[2:4])) == 0):\n print("{}".format("NA"))\nelif (int(S[:2]) == 0) and (12< int(S[2:4])):\n print("{}".format("NA"))\nelif(12< (int(S[:2])) and (int(S[2:4]) == 0)):\n print("{}".format("NA"))\nelif (12 < int(S[:2])) and (12 < int(S[2:4])):\n print("{}".format(...
['Wrong Answer', 'Accepted']
['s212285783', 's781213632']
[3064.0, 3064.0]
[17.0, 18.0]
[747, 652]
p03042
u824958582
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['def solve():\n s = input()\n sl = list(str(s))\n st = int("".join(sl[:2]))\n end = int("".join(sl[3:4]))\n if st > 0 and st <= 12 and end > 0 and end <= 12:\n print(\'AMBIGUOUS\')\n elif st > 0 and st <= 12 and (end == 0 or end > 12):\n print(\'YYMM\')\n elif (st == 0 or st > 12) a...
['Wrong Answer', 'Accepted']
['s109467421', 's911527737']
[3064.0, 3064.0]
[17.0, 18.0]
[422, 578]
p03042
u825378567
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["S=list(input())\nBE=[int(S[0]),int(S[1])]\nAF=[int(S[2]),int(S[3])]\nb_flag=0\na_flag=0\nif BE[0] == 0 and BE[1]>=1:\n b_flag=1\nif BE[0] == 1 and BE[0] <=2:\n b_flag=1\nif AF[0] == 0:\n a_flag=1\nif AF[0] == 1 and AF[1] <=2:\n a_flag=1\nif a_flag ==1 and b_flag==1:\n print('AMBIGUOUS')\nelif a_flag ==...
['Wrong Answer', 'Accepted']
['s243814053', 's883303374']
[3064.0, 3064.0]
[17.0, 18.0]
[380, 253]
p03042
u825981710
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S=int(input())\n\na=S/100\nb=S%100\n\nif(a>12 and b>12):\n print("NA")\n\nelif(a==0 and b==0):\n print("NA")\n\nelif((a>12 or a=0) and 1<=b<=12):\n print("YYMM")\n\nelif(1<=a<=12 and (b>12 or b=0)):\n print("MMYY")\n\nelif(1<=a<=12 and 1<=b<=12):\n print(\'AMBIGUOU\')\n\nelse:\n print("N...
['Runtime Error', 'Accepted']
['s169458262', 's356949647']
[2940.0, 3060.0]
[17.0, 17.0]
[299, 216]
p03042
u828766688
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['\nS = input()\n\nMAE = int(S[:2])\nUSIRO = int(S[2:])\n\nMMYY_Flag = False\nYYMM_Flag = False\n\n\nif 1 <= MAE and 12 >= MAE:\n MMYY_Flag = True\n\nif 1 <= USIRO and 12 >= USIRO:\n YYMM_Flag = True\n\n\nif MMYY_Flag and YYMM_Flag:\n print ("AMBIGUOUS")\n\nelif MMYY_Flag:\n print ("MMYY")\n1700\n\nelif YYM...
['Runtime Error', 'Accepted']
['s329291074', 's820478336']
[2940.0, 3060.0]
[17.0, 17.0]
[345, 340]
p03042
u831835224
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["date = input()\nfirstvalid = isMonth(date[0:2])\nsecondvalid = isMonth(date[2:])\n\nif firstvalid && secondvalid:\n print('AMBIGUOUS')\nelif firstvalid:\n print('MMYY')\nelif secondvalid:\n print('YYMM')\nelse:\n print('NA')\n \n\n\ndef isMonth(x):\n return 1 <= int(x) <= 12\n", "def isMonth(x):\n y = int(x)\n...
['Runtime Error', 'Accepted']
['s494120265', 's134399767']
[2940.0, 3060.0]
[17.0, 17.0]
[266, 279]
p03042
u835732324
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = str(input())\nw = list(map(int, input().split()))\nf = "".join(w[0:2])\nb = "".join(w[2:4])\nif 1 <= int(f) <= 12 and 1 <= int(b) <= 12:\n print("AMBIGUOUS")\nelif 1 <= int(b) <= 12 and not 1 <= int(f) <= 12:\n print("YYMM")\nelif 1 <= int(f) <= 12 and not 1 <= int(b) <= 12:\n print("MMYY")\nelse:\n ...
['Runtime Error', 'Accepted']
['s675421872', 's006635174']
[3064.0, 2940.0]
[17.0, 20.0]
[320, 240]
p03042
u840807329
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['import sys\n\ns = input()\ns = s[:4]\na = s[:2]\nb = s[2:]\n\nif (int(a) > 12 and int(b) > 12) or int(b) == 0 or int(a) == 0:\n\t\n\tprint("NA")\n\tsys.exit()\n\t\nif 0 < int(a) <= 12 and 0 < int(b) <= 12:\n\n\t\nif int(a) > 12 and 0 < int(b) <= 12:\n\n\tprint("YYMM")\n\tsys.exit()\n\nif 0 < int(a) <= 12 and int(...
['Runtime Error', 'Accepted']
['s603436157', 's431935560']
[2940.0, 3060.0]
[17.0, 17.0]
[350, 286]
p03042
u840958781
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s=input()\na=int("".join(s[0:2]))\nb=int("".join(s[2:4]))\nans=0\nif b<32 and b!=00:\n ans+=1\nif a<32 and a!=00:\n ans+=2\nif ans==3:\n print("AMBIGUOUS")\nelif ans==2:\n print("MMYY")\nelif ans==1:\n print("YYMM")\nelse:\n print("NA")\n', 's=input()\na=int("".join(s[0:2]))\nb=int("".join(s[2:4]))\...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s199826225', 's599968610', 's682568799', 's593870075']
[3060.0, 3064.0, 3064.0, 3064.0]
[17.0, 18.0, 17.0, 17.0]
[240, 219, 259, 239]
p03042
u840988663
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S=input()\nmae=S[:2]\nato=S[2:]\nmon_list=("01","02","03","04","05","06","07","08","09","10","11","12")\ntest=0\nif mae in mon_list:\n test=test+1\nif ato in mon_list:\n test=test+3\n\nif test==0:\n print("NA")\nif test==1:\n print("YYMM")\nif test==3:\n print("MMYY")\nif test==4:\n print("AMBIGUOUS")', 'S=inpu...
['Wrong Answer', 'Accepted']
['s467156535', 's708031243']
[3064.0, 3064.0]
[17.0, 17.0]
[291, 291]
p03042
u843073153
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['s = input()\nprint("{} {}".format(s[0:2],s[2:4]))\ns1 = int(s[0:2])\ns2 = int(s[2:4])\n\ns1m = False\ns1y = False\ns2m = False\ns2y = False\nif s1 <= 12 and s1 >= 1:\n s1y = True\n s1m = True\nelif s1 > 12 or s1 == 0:\n s1y = True\n \nif s2 <= 12 and s2 >= 1:\n s2y = True\n s2m = True\nelif s2 > 12 or s2 == 0:...
['Wrong Answer', 'Accepted']
['s871008095', 's196287718']
[9128.0, 9136.0]
[28.0, 29.0]
[461, 424]
p03042
u844123804
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["order = input()\nforw = int(order[:2])\nback = int(order[2:])\nflg_f = 0\nflg_b = 0\n\nif forw<=12 and forw != 0:\n flg_m = 1\nif back<=12 and back != 0:\n flg_b = 1\n\nif flg_m + flg_b == 2:\n print('AMBIGUOUS')\nelif flg_m == 1:\n print('MMYY')\nelif flg_b == 1:\n print('YYMM')\nelse:\n print('NA')", "order =...
['Runtime Error', 'Accepted']
['s750216260', 's139542415']
[3064.0, 3064.0]
[17.0, 17.0]
[289, 290]
p03042
u851704997
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S = input()\nYYMM = 0\nMMYY = 0\nstart = S[0:2]\nend = S[2:4]\ntmp1 = int(start)\ntmp2 = int(end)\nprint(tmp1,tmp2)\nif(tmp2 <= 12 and tmp2 != 0):\n YYMM = 1\nif(tmp1 <= 12 and tmp1 != 0):\n MMYY = 1\nif(YYMM == 1 and MMYY == 1):\n print("AMBIGUOUS")\nelif(YYMM == 1):\n print("YYMM")\nelif(MMYY == 1):\n ...
['Wrong Answer', 'Accepted']
['s824366764', 's711494434']
[9212.0, 9196.0]
[29.0, 28.0]
[338, 321]
p03042
u853185302
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["S = list(input())\n\nleft = int(''.join(S[0:2]))\nright = int(''.join(S[2:4]))\nprint(left)\nprint(right)\n\nif (left > 0 and left < 13) and (right > 0 and right < 13):\n print('AMBIGUOUS')\nelif left >= 0 and (right > 0 and right < 13):\n print('YYMM')\nelif (left > 0 and left < 13) and right >= 0:\n print('MMYY'...
['Wrong Answer', 'Accepted']
['s401809090', 's341769549']
[3060.0, 3060.0]
[17.0, 17.0]
[330, 305]
p03042
u854883419
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
["s = input()\ns1 = int(s[0]+s[1])\ns2 = int(s[2]+s[3])\n\nif(s1 <= 1 and s1 <=12):\n if(s2 <= 1 and s2 <=12):\n print('AMBIGUOUS')\n else:\n print('MMYY')\nelse:\n if(s2 <= 1 and s2 <=12):\n print('YYMM')\n else:\n print('NA')\n", "s = input()\ns1 = int(s[0]+s[1])\ns2 = int(s[2]+s[3])\n\nif(s1 <= 1 and...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s197014640', 's307429604', 's942795226']
[3060.0, 2940.0, 3060.0]
[18.0, 17.0, 18.0]
[229, 227, 229]
p03042
u861223045
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['def YorM(x): \n #1...YorM ...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s356997586', 's986348040', 's814432622']
[3064.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0]
[3329, 3328, 4133]
p03042
u862769810
2,000
1,048,576
You have a digit sequence S of length 4. You are wondering which of the following formats S is in: * YYMM format: the last two digits of the year and the two-digit representation of the month (example: `01` for January), concatenated in this order * MMYY format: the two-digit representation of the month and the la...
['S = str(input())\nF = int(S[0:2])\nT = int(S[2:4])\n\ndef Greaterthan12(x):\n if x > 12:\n return 0\n else:\n return 1\n \nFjudge = BorS(F)\nTjudge = BorS(T)\nif Fjudge == 0:\n if Tjudge == 0:\n print("NA")\n else:\n print("YYMM")\nelse:\n if Tjudge == 0:\n pri...
['Runtime Error', 'Accepted']
['s207081837', 's981997930']
[3064.0, 3060.0]
[17.0, 17.0]
[346, 423]