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
u284363684
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\nS = input()\nx, y = S[:2], S[2:]\n\n\nnot_YY_x = (int(x) >= 13)\nnot_YY_y = (int(y) >= 13)\nzero_x = (x == "00")\nzero_y = (y == "00")\nchecker = [not_YY_x, not_YY_y, zero_x, zero_y]\n\nif checker == [True, False, False, False]:\n print("MMYY")\nelif checker == [False, True, False, False]:\n print("YYM...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s327357355', 's792645543', 's407417479']
[3064.0, 3064.0, 3064.0]
[20.0, 17.0, 17.0]
[405, 405, 467]
p03042
u290187182
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\nimport copy\nimport math\nimport fractions\n\nimport bisect\nimport pprint\nimport bisect\nfrom functools import reduce\nfrom copy import deepcopy\nfrom collections import deque\nimport numpy as np\nfrom decimal import *\n\n\nif __name__ == \'__main__\':\n s = input()\n s1 = int(s[0:2])\n s2 = in...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s498172232', 's600716541', 's299113412']
[13608.0, 3064.0, 13608.0]
[156.0, 17.0, 168.0]
[877, 653, 876]
p03042
u294385082
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...
['lst = list(input())\nlst1 = []\nlst1.append(lst[0]+lst[1])\nlst1.append(lst[2]+lst[3])\n\nif (int(lst1[0]) >=13 and int(lst1[1]) >=13) or (int(lst1[0]) >=13 and lst1[1] =="00") or (lst1[0] =="00" and lst1[1] >=13):\n print("NA")\n \nelif (0<int(lst1[0])<=12 and 0<int(lst1[1])<=12):\n print("AMBIGUOUS")\n ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s156522193', 's462104777', 's240165928']
[3064.0, 3064.0, 2940.0]
[18.0, 18.0, 17.0]
[389, 431, 182]
p03042
u297756089
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))\nt=10*s[0]+s[1]\nk=10*s[2]+s[3]\nif 1<=t<=12:\n if 1<=k<=12:\n print("AMBIGUOUS")\n elif:\n print("MMYY")\nelif 1<=k<=12:\n print("YYMM")\nelse:\n print("NA")', 's=list(input())\ns=list(map(int,s))\nt=10*s[0]+s[1]\nk=10*s[2]+s[3]\nif 1<=t<=12:\n if 1<=k<=12:\n print("AMBIG...
['Runtime Error', 'Accepted']
['s743976877', 's601639887']
[2940.0, 3060.0]
[17.0, 17.0]
[188, 192]
p03042
u298297089
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())\nif int(S[:2]) > 12 and int(S[2:]) <= 12:\n print('YYMM')\nelif int(S[:2]) <= 12 and int(S[2:]) > 12 and int(S[2:]) != 0:\n print('MMYY')\nelif int(S[:2]) <= 12 and int(S[2:]) <= 12 and int(S[:2]) != 0 and int(S[2:]) != 0:\n print('AMBIGUOUS')\nelse:\n print('NA')", "S = input()\na,b = int(S[:2]...
['Runtime Error', 'Accepted']
['s754478747', 's737918844']
[3064.0, 3064.0]
[17.0, 17.0]
[278, 252]
p03042
u300457253
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[:2]) >= 13 or s[:2] != '00' and int(s[2:4]) >= 13 or s[2:4] != '00':\n print('NA')\nelif int(s[:2]) <= 12 and int(s[2:4]) <= 12:\n print('AMBIGUOUS')\nelif int(s[:2]) <= 12:\n print('MMYY')\nelif int(s[:2]) >= 13:\n print('YYMM')\n \n", "s = input()\n\nif int(s[:2]) >= 13 or s[:...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s243048502', 's711373805', 's044363475']
[3060.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0]
[262, 262, 260]
p03042
u301870186
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 random\n\ns = input()\n\n# list = ["00", "01","02","03","04","05","06","07","08","09","10","11","12","13","14"]\n\n\n \ns1 = int(s[:2])\ns2 = int(s[2:])\n\nprint(s)\n\nif len(s) != 4:\n print("NA 1")\nelif (s1 == 0) or (s2 == 0):\n print("NA 2")\nelif (s1 > 12) and (s2 > 12):\n print("NA 3")\nelif ...
['Wrong Answer', 'Accepted']
['s359876959', 's932582133']
[4336.0, 3064.0]
[32.0, 17.0]
[460, 419]
p03042
u309834353
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...
['i = list(input())\nyy = int(i[0] + i[1])\nmm = int(i[2] + i[3])\nprint(yy, mm)\n\nif (yy > 12) and (0 < mm <= 12):\n print("YYMM")\nelif (0 < yy <= 12) and (mm > 12):\n print("MMYY")\nelif (0 < yy <= 12) and (0 < mm <= 12):\n print("AMBIGUOUS")\nelse:\n print("NA")\n', 'i = list(input())\nyy = int(i[0] + ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s217376638', 's597564658', 's516707340']
[3060.0, 3064.0, 3064.0]
[17.0, 23.0, 17.0]
[266, 281, 283]
p03042
u314050667
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...
["d=input()\na,b=map([d[:2],d[2:]])\ntemp=[]\nfor i in [a,b]:\n if 1 <= i <=12:\n temp.append(2)\n elif 0 <= i <= 99:\n temp.append(1)\n else:\n temp.append(0)\n\nif sum(temp) == 4:\n print('AMBIGUOUS')\nelif sum(temp) == 3:\n if temp[0]==2:\n print('MMYY')\n else:\n ...
['Runtime Error', 'Accepted']
['s837631967', 's369065668']
[3064.0, 3064.0]
[18.0, 17.0]
[337, 342]
p03042
u319690708
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()\nN = list(N)\n# N = int(N)\nprint(N)\n\nab = N[0] + N[1]\ncd = N[2] + N[3]\n\n\n# cd = int(cd)\n\nif N[0] == 0:\n ab = ab.zfill(2)\n\nif N[2] == 0:\n cd = cd.zfill(2)\n\n# print(ab)\n# print(cd)\n\n\nif ab == "00" or cd == "00":\n print("NA") \n\nelif int(ab) > 12 and int(cd) > 12:\n print("NA") \n\...
['Wrong Answer', 'Accepted']
['s939652245', 's204538537']
[3064.0, 3064.0]
[17.0, 18.0]
[481, 695]
p03042
u321035578
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(int(input()))\n\ns1=s[0]*10+s[1]\ns2=s[3]*10+s[4]\n\nif s1<=12 and s2<=12:\n ans='AMBIGUOUS'\nelif s1<=12 and s2>12:\n ans ='MMYY'\nelif s1>12 and s2<=12:\n ans ='YYMM'\nelse:\n ans='NA'\n\n\n", "s=list(input())\n\n# s1 = (int)(s[0] + s[1])\ns1=int(s[0])*10+int(s[1])\ns2=int(s[2])*10+int(s[3])\n\ni...
['Runtime Error', 'Runtime Error', 'Accepted']
['s647994395', 's802239972', 's381406548']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[196, 303, 306]
p03042
u325282913
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())\n\na = n[0:2]\nb = n[2:]\n\nc = int(a)\nd = int(b)\nprint(c)\nprint(d)\nyymm = False\nmmyy = False\nambiguous = False\nna = False\n\nif (c < 1) or (12 < c):\n if (d < 1) or (12 < d):\n na = True\n\nif (1 <= c) and (c <= 12):\n if (d < 1) or (12 < d):\n mmyy = True\n\nif (1 <= d) ...
['Wrong Answer', 'Accepted']
['s888838182', 's665729262']
[3064.0, 3064.0]
[17.0, 17.0]
[580, 562]
p03042
u327532412
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 re\nS = input()\nans = \'\'\nYYMMFlag = False\nMMYYFlag = False\nYYMM = \'[0-9][0-9]0[0-9] | [0-9][0-9]1[0-9]\'\nMMYY = \'0[0-9][0-9][0-9] | 1[0-9][0-9][0-9]\'\nif re.match(YYMM, S):\n YYMMFlag = True\nelif re.match(MMYY, S):\n MMYYFlag = True\n\nif YYMMFlag and MMYYFlag:\n print("AMBIGUOUS")\nelif YY...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s031837585', 's257125665', 's779191153', 's249111033']
[3188.0, 3064.0, 2940.0, 3060.0]
[19.0, 17.0, 17.0, 18.0]
[378, 268, 173, 188]
p03042
u328510800
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()\nfront, back = map(int, [s[:2], s[2:]])\n\nyymm = False\nmmyy = False\nif 1 <= front and front <= 12:\n mmyy = True\n if 1 <= back and back <= 12:\n yymm = True\nelse:\n if 1 <= back and back <= 12:\n mmyy = True\n else:\n pass\n \n\nif yymm and mmyy:\n print('AMBIGUOUS')\nelif yymm:\n p...
['Wrong Answer', 'Accepted']
['s301771335', 's497262630']
[3064.0, 3060.0]
[17.0, 17.0]
[358, 174]
p03042
u329058683
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()\nB=int(A[:2])\nC=int(A[2:4])\nif B<=12 and C<=12:\n print("AMBIGUOUS")\nelif 12>=B>=1:\n print("YYMM")\nelif 12>=C>=1:\n print("MMYY")\nelse:\n print("NA")', 'a=(input())\nb=int(a[0:2])\nc=int(a[2:4])\nif b==0 or c==o:\n print("NA")\nelif b => 12 and c=>12:\n print("NA")\nelif b =>12:\n print("YYMM")...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s171343420', 's339008729', 's262992510']
[3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[159, 192, 195]
p03042
u329706129
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, b = int(s[:2]), int(s[2:])\nif ((0 < f and f <= 12) and (b > 12 or b == 0)): print("MMYY")\nelif ((0 < b and b <= 12) and (f > 12 or f == 0)): print("YYMM")\nif (f == 0 and b == 0 or (f > 12 and b > 12)): print("NA")\nelse: print("AMBIGUOUS")\n', 's = input()\nf, b = int(s[:2]), int(s[2:])\nif ((0 < f...
['Wrong Answer', 'Accepted']
['s759264881', 's034781941']
[3060.0, 3060.0]
[17.0, 17.0]
[254, 255]
p03042
u329731898
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()\nS=[int(A[i:i+2]) for i in range(0,len(A),2)]\nif 0<=S[0] and S[0]<=12:\n if 0<=S[1] and S[1]<=12:\n print('AMBIGUOUS')\n else:\n print('MMYY')\nelse:\n if 0<=S[1] and S[1]<=12:\n print('MMYY')\n else:\n print('NA')", "A=input()\nS=[int(A[i:i+2]) for i in range(0,len(...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s437189999', 's835065356', 's836454008']
[3060.0, 3060.0, 3060.0]
[17.0, 18.0, 17.0]
[254, 254, 255]
p03042
u330799501
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...
['#k = int(input())\n#s = input()\n#a, b = map(int, input().split())\n#s, t = map(str, input().split())\n#l = list(map(int, input().split()))\n\n\nn = int(input())\na = []\nfor i in range(n):\n s, p = map(str, input().split())\n p = int(p)\n a.append((s,p,i+1))\n\na.sort(key=lambda x:x[1], reverse=True)\n\na.s...
['Runtime Error', 'Accepted']
['s956100966', 's427117988']
[9144.0, 9072.0]
[23.0, 30.0]
[471, 466]
p03042
u331997680
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 = list(input())\nif 1 <= int(N[0]+N[1]) <=12 and 1 <= int(N[2]+N[3]) <= 12:\n print('AMBIGUOUS')\nelif 1 <= int(N[0]+N[1]) <=12 and 12<int(N[2]+N[3])<1:\n print('MMYY')\nelif 12<int(N[0]+N[1])<1 and 1 <= int(N[2]+N[3]) <=12:\n print('YYMM')\nelse:\n print('NA')\n", "N = list(input())\nif 1 <= int(N[0]+N[1]) <=1...
['Wrong Answer', 'Accepted']
['s873563042', 's418742039']
[3060.0, 3060.0]
[18.0, 17.0]
[260, 211]
p03042
u337820403
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()\nl = s[:2]\nr = s[2:]\nyy = [str(i).zfill(2) for i in range(100)]\nmm = [str(i).zfill(2) for i in range(1, 13)]\n\nif l in mm and r in mm:\n print("AMBIGUOUS")\nelif l in yy and r in mm:\n print("YYMM")\nelif l in mm and r in yy:\n print("MMYY")\nelse:\n print("NA")', 's = input()\nl = s[:2]\...
['Runtime Error', 'Accepted']
['s538538161', 's647119478']
[2940.0, 3064.0]
[17.0, 18.0]
[278, 277]
p03042
u346395915
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\nx = int(s[0:2])\ny = int(s[3:])\n\nif x > 12:\n if y > 12:\n print("NA")\n elif y >= 1:\n print("YYMM")\n else:\n print("NA")\nelif x >= 1\n if y > 12:\n print("MMYY")\n elif y >= 1:\n print("AMBIGUOUS")\n else:\n print("MMYY")\nelse:\n if ...
['Runtime Error', 'Accepted']
['s093519747', 's994022245']
[2940.0, 3060.0]
[17.0, 17.0]
[401, 402]
p03042
u350093546
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:])<=12:\n if int(s[:2])!=0 int(s[:2])<=12:\n print('AMBIGUOUS')\n else:\n print('YYMM')\nelse:\n if int(s[:2])!=0 int(s[:2])<=12:\n print('MMYY')\n else:\n print('NA')\n", "s=input()\nif str(s[2:])!=0 and str(s[2:])<=12:\n if str(s[:2])!=0 str(s[:2])<=12:\n ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s360993083', 's802342105', 's100727566']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[214, 213, 222]
p03042
u350836088
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())\ndef month(i):\n if "1" <= i <=\'12\':\n return True\n else:\n return False\na = month("".join(s[0:2]))\nb = month("".join(s[2:4]))\nif a and b:\n print(\'AMBIGUOUS\')\nelif not a and b:\n print(\'YYMM\')\nelif a and not b:\n print(\'MMYY\')\nelse:\n print(\'NA\')\n \n \n ', 's = list...
['Wrong Answer', 'Accepted']
['s694874646', 's586049307']
[3060.0, 2940.0]
[17.0, 17.0]
[278, 279]
p03042
u353664889
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\na = []\nfor l in sys.stdin:\n a.append(l)\n\n_input = a[0]\n\ndef is_month(x):\n \n if 12 >= x > 0:\n return True\n else:\n return False\n\ninput_l = _input[:2]\ninput_r = _input[2:]\n\nif is_month(input_l):\n if is_month(input_r):\n result = 'AMBIGUOUS'\n else:\n ...
['Runtime Error', 'Accepted']
['s372206550', 's236395907']
[3060.0, 3060.0]
[17.0, 17.0]
[448, 451]
p03042
u358791207
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\nif 0 < A and A <= 12:\n if 0 < B and B <= 12:\n print(AMBIGUOUS)\n else:\n print(MMYY)\nelse:\n if 0 < B and B <= 12:\n print(YYMM)\n else:\n print(NA)', 'S = input()\nA = int(S[0:2])\nB = int(S[2:4])\n\nif 0 < A and A <= 12:\n if 0 < B and B <= 12:\n ...
['Runtime Error', 'Accepted']
['s309224423', 's937024415']
[3060.0, 3060.0]
[17.0, 17.0]
[203, 211]
p03042
u366886346
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-a\nif a<13 and b<13 and a>0 and b>0:\n print("AMBIGUOUS")\nelif a<13 and a>0:\n print("MMYY")\nelif b<13 and b>0:\n print("YYMM")\nelse:\n print("NA")', 's=int(input())\na=s//100\nb=s-a*100\nif a<13 and b<13 and a>0 and b>0:\n print("AMBIGUOUS")\nelif a<13 and a>0:\n pr...
['Wrong Answer', 'Accepted']
['s701601150', 's857125249']
[2940.0, 2940.0]
[17.0, 17.0]
[182, 187]
p03042
u366939485
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 0 < int(s[:2]) and int(s[2:]) < 13:\n print("AMBIGUOUS")\nelif 0 < int(s[:2]) < 13 and int(s[2:]) != 0:\n print("MMYY")\nelif 0 < int(s[2:]) < 13 and int(s[:2]) != 0:\n print("YYMM")\nelse:\n print("NA")', 's = input()\nif 0 < int(s[:2]) and int(s[2:]) < 13:\n print("AMBIGUOUS")\nelif 0...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s098576493', 's739134589', 's191121905']
[9112.0, 9076.0, 9036.0]
[27.0, 30.0, 24.0]
[223, 183, 190]
p03042
u366959492
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())\nss=s[:2]\nsss=s[2:]\nx=int("".join(ss))\ny=int("".join(sss))\nprint(x,y)\nif 1<=x<=12 and 1<=y<=12:\n print("AMBIGUOUS")\nelif 1<=x<=12 :\n print("MMYY")\nelif 1<=y<=12:\n print("YYMM")\nelif x==0 and y==0:\n print("NA")\nelif x>=13 and y==0:\n print("NA")\nelif x==0 and y>=13:\n pr...
['Wrong Answer', 'Accepted']
['s135692835', 's631839593']
[3064.0, 3060.0]
[17.0, 18.0]
[348, 213]
p03042
u367130284
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...
['print("AMBIGUOUS")', 'print("MMYY")', 'print("NA")', 's=input()\na=int(s[:2])\nb=int(s[2:])\nif 0<a<13 and 0<b<13:\n print("AMBIGUOUS")\nelif 0<=a and 0<b<13:\n print("YYMM")\nelif 0<=b and 0<a<13:\n print("MMYY")\nelse:\n print("NA")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s293410634', 's362127362', 's443122824', 's144205523']
[2940.0, 2940.0, 3068.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[18, 13, 11, 182]
p03042
u368016155
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])<=12 and int(S[2:4])!=0:\n print('AMBIGUOUS')\n else:\n print('MMYY')\nelse:\n if int(S[2:4])<=12 and int(S[2:4])!=0:\n print('YYMM')\n else:\n print('NA')", "S = input()\n\nif int(S[0:2])<=12 and int(S[0:2]...
['Runtime Error', 'Accepted']
['s211556540', 's144005979']
[2940.0, 3060.0]
[17.0, 17.0]
[255, 254]
p03042
u370429695
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[:2])\nb = int(n[2:])\nprint(a)\nprint(b)\nif(a >= 13 and b <=12 and b >= 1):\n print("YYMM")\nelif(a <= 12 and b >= 13 and a >= 1):\n print("MMYY")\nelif((a <= 12 and b <= 12 and a >= 1 and b >= 1) or (a >= 13 and b >= 13)):\n print("AMBIGUOUS")\nelse:\n print("NA")', 's = input()\n...
['Wrong Answer', 'Accepted']
['s338533312', 's841143671']
[3064.0, 3060.0]
[17.0, 17.0]
[289, 197]
p03042
u379716238
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 = int(input())\n\nfst = int(N/100)\nsec = N - fst*100\n\nf_YY = False\ns_YY = False\nf_MM = False\ns_MM = False\n\nif 0 <= fst and fst <= 99:\n f_YY = True\nif 0 <= sec and sec <= 99:\n s_YY = True\n \nif 1 <= fst and fst <= 12:\n f_MM = True\nif 1 <= sec and sec <= 12:\n s_MM = True\n \nprint...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s080175883', 's163863616', 's471112189', 's310984713']
[3064.0, 3064.0, 3064.0, 3064.0]
[18.0, 17.0, 17.0, 17.0]
[554, 581, 581, 540]
p03042
u386249594
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()\nmon30 = ["02","04","06","09","11"]\nmon31 = ["01","03","05","07","08","10","12"]\n\nf_yymm = 0\nf_mmyy = 0\n\nif (S[0]+S[1]) in mon30 and int(S[2]+S[3]) <= 30:\n\tf_yymm = 1\nelif (S[0]+S[1]) in mon31 and int(S[2]+S[3]) <= 31:\n\tf_yymm = 1\nif (S[2]+S[3]) in mon30 and int(S[0]+S[1]) <= ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s178099082', 's260390205', 's442883275']
[3064.0, 3064.0, 3064.0]
[19.0, 17.0, 17.0]
[597, 594, 289]
p03042
u387774811
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=int(input())\nB=int(A/100)\nC=A/100\nif 1<=B and B<=12:\n if 1<=C and C<=12:\n print("AMBIGUOUS")\n else:\n print("YYMM")\nelse:\n if 1<=C and C<=12:\n print("MMYY")\n else:\n print("NA")', 'A=int(input())\nB=int(A/100)\nC=A%100\nif 1<=B and B<=12:\n if 1<=C and C<=12:\n print("AMBIGUOUS")\n else:\n print("YY...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s597426250', 's705101369', 's106231397']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[181, 182, 181]
p03042
u393253137
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=a%100\ny=a//100\nprint(("AMBIGUOUS" if 0<x<13 else "MMYY") if 0<y<13 else "YYMM" if 0<x<13 else "NA")', 's=int(input())\nx=s%100\ny=s//100\nprint(("AMBIGUOUS" if 0<x<13 else "MMYY") if 0<y<13 else "YYMM" if 0<x<13 else "NA")']
['Runtime Error', 'Accepted']
['s494529377', 's496028079']
[2940.0, 2940.0]
[17.0, 17.0]
[116, 116]
p03042
u394721319
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\np = S[0]+S[1]\nq = S[2]+S[3]\n\np_flag = 0\nq_flag = 0\n\nif int(q) = 0 and int(p) == 0:\n print('NA')\nelif int(p) == 0:\n print('YYMM')\nelif int(q) == 0:\n print('MMYY')\nelse:\n if int(p) > 12:\n p_flag = 1\n if int(q) > 12:\n q_flag = 1\n\n if p_flag and q_fla...
['Runtime Error', 'Accepted']
['s641965850', 's071450585']
[2940.0, 3064.0]
[17.0, 17.0]
[436, 545]
p03042
u399967254
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 str = input()\n first = str[:2]\n second = str[2:]\n first = change(first)\n second = change(second)\n f_y = 0; s_y = 0;\n f_y = check_y(first)\n s_y = check_y(second)\n if(f_y == 0 and s_y == 0):\n print("AMBIGUOUS")\n elif(f_y == 0 and s_y == 1):\n print("MMYY")\n elif(f_y == 1 and s_...
['Runtime Error', 'Accepted']
['s759457658', 's594332898']
[3060.0, 3064.0]
[17.0, 17.0]
[572, 573]
p03042
u402428218
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\n# Your code here!\nA=input()\nY=int(A[0])*10+int(A[1])\nM=int(A[2])*10+int(A[3])\ncode=0\nif Y<20:\n if M>0 and M<13:\n code=1\n\nif M<20:\n if Y>0 and Y<13:\n if code==1:\n code=3\n else:\n code=2\nif Y==19:\n M==12:\n code=2\nif Y=12:\n ...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s091735839', 's845523296', 's896225570']
[2940.0, 3064.0, 3064.0]
[17.0, 17.0, 17.0]
[458, 476, 382]
p03042
u408262366
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...
['hoge = str(input())\na = int(hoge[:2])\nb = int(hoge[2:4])\n\nif a == 0 or b == 0:\n result = "NA"\n\nif 0 < a and a < 12:\n result = "YYMM"\n if 0 < a and a < 12:\n result = "AMBIGUOUS"\nif 0 < b and b < 12:\n result = "MMYY"\n if 0 < a and a < 12:\n result = "AMBIGUOUS"\n\nprint(result)', 'hoge = str(inp...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s096231682', 's715939311', 's862654849', 's784435656']
[3064.0, 3188.0, 3064.0, 3064.0]
[17.0, 19.0, 17.0, 17.0]
[284, 281, 281, 299]
p03042
u413960612
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()\nup = int(S[0:2])\ndown = int(S[2:4])\n\nif(up >= 13 and 0 < down < 13):\n print("YYMM")\nif(0 < up < 13 and down >= 13):\n print("MMYY")\nif(0 < up < 13 and 0 < down < 13):\n print("AMBIGUOUS")\nelse:\n print("NA") ', 'S = input()\n\nformer = int(S[:2])\nlatter = int(S[2:])\n\nif((former >=...
['Wrong Answer', 'Accepted']
['s966537197', 's925911912']
[9076.0, 9084.0]
[25.0, 27.0]
[231, 356]
p03042
u415905784
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 = int(S[:2])\npost = int(S[2:])\npreM = pre > 0 and pre < 13\npostM = post > 0 and pre < 13\nif preM and postM:\n print('AMBIGUOUS')\nelif preM:\n print('MMYY')\nelif postM:\n print('YYMM')\nelse:\n print('NA')", "S = input()\npre = int(S[:2])\npost = int(S[2:])\npreM = pre > 0 and pre < 13\npost...
['Wrong Answer', 'Accepted']
['s286587622', 's141885786']
[3060.0, 3060.0]
[17.0, 17.0]
[219, 220]
p03042
u418420470
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[3:5])\nprint(a)\nprint(b)\nif (a > 12 or a == 0) and (b > 12 or b == 0):\n print('NA')\nelif 0<a<=12 and 0<b <= 12:\n print('AMBIGUOUS')\nelif 0<a<=12:\n print('MMYY')\nelse:\n print('YYMM')", "S = input()\na =int(S[:2])\nb =int(S[3:5])\nif (a > 12 or a == 0) and (b > 12 or b ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s095550301', 's680409015', 's942409742']
[3064.0, 3060.0, 3064.0]
[17.0, 18.0, 17.0]
[219, 255, 351]
p03042
u426108351
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 <= S[:1] <= 12 and 1 <= S[2:] <= 12:\n print("AMBIGUOUS")\nelif 1 <= S[:1] <= 12:\n print("MMYY")\nelif 1 <= S[2:] <= 12:\n print("YYMM")\nelse:\n print("NA")', 'S = input()\nif 1 <= int(S[:1]) <= 12 and 1 <= int(S[2:]) <= 12:\n print("AMBIGUOUS")\nelif 1 <= int(S[:1]) <= 12:\n print("MMYY")\n...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s364752112', 's706138023', 's301183908']
[2940.0, 3060.0, 3064.0]
[17.0, 17.0, 17.0]
[172, 192, 193]
p03042
u427984570
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:])\n\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")', 's = input()\na = int(s[:2])\nb = int(s[2:])\n\nif (1 <= a <= 12) and (1 <= b <= 12):\n print("AMBIGUOUS")...
['Wrong Answer', 'Accepted']
['s069873075', 's807853129']
[3060.0, 3060.0]
[17.0, 17.0]
[197, 197]
p03042
u437215432
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...
["# ABC126B\n\ns = input()\naa = s // 100\nbb = s % 100\nif 1 <= aa and aa <= 12:\n if 1 <= bb and bb <= 12:\n print('AMBIGUOUS')\n else:\n print('MMYY')\nelse:\n if 1 <= bb and bb <= 12:\n print('YYMM')\n else:\n print('NA')\n", "# ABC126B\n\ns = int(input())\naa = s // 100\nbb...
['Runtime Error', 'Accepted']
['s361990804', 's491869781']
[2940.0, 2940.0]
[17.0, 17.0]
[251, 256]
p03042
u439063038
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])>12 or int(S[:2])==0) and (int(S[2:])>12 or int(S[2:])==0):\n print('NA')\nelif (int(S[:2])<=12 and int(S[:2])!=0) and (int(S[2:])>12 and int(S[2:])==0):\n print('MMYY')\nelif (int(S[2:])<=12 and int(S[2:])!=0) and (int(S[:2])>12 and int(S[:2])==0):\n print('YYMM')\nelse:\n prin...
['Wrong Answer', 'Accepted']
['s221300752', 's670699794']
[9096.0, 9168.0]
[26.0, 29.0]
[324, 322]
p03042
u440608859
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[0]+s[1])>12 or or int(s[0]+s[1])==00) and int(s[2]+s[3])<=12 and int(s[2]+s[3])!=00:\n print("YYMM")\nelif int(s[0]+s[1])<=12 and( int(s[2]+s[3])>12 or int(s[2]+s[3])==00) and int(s[0]+s[1])!=00:\n print("MMYY")\nelif int(s[0]+s[1])<=12 and int(s[2]+s[3])<=12 and (int(s[0]+s[1])!=00 or int...
['Runtime Error', 'Accepted']
['s110657799', 's804283512']
[2940.0, 3064.0]
[17.0, 17.0]
[375, 371]
p03042
u440845226
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...
['## YYMM or MMYY or AMBIGUOUS or NA\n\n## MM: 01~12\n\n\ns = input()\npre = int(s[:2])\nlast = int(s[2:])\n\nif 1 <= pre <= 12 and 1 <= last <= 12:\n print("AMBIGUOUS")\nelif 1 <= pre <= 12:\n print("YYMM")\nelif 1 <= last <= 12:\n print("MMYY")\nelse:\n print("NA")', '## YYMM or MMYY or AMBIGUOUS or NA\n\n## MM: ...
['Wrong Answer', 'Accepted']
['s782415206', 's725750788']
[2940.0, 2940.0]
[18.0, 17.0]
[323, 324]
p03042
u447061059
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[:2]) <= 12:\n if 0 < int(s[2:]) <= 12:\n ans = "AMBIGUOS"\n else :\n ans = "MMYY"\nelif 0 < int(s[:2]) <= 12:\n ans = "YYMM"\nelse:\n ans = "NA"\nprint(ans)', 's = str(input())\n\nif 0 < int(s[:2]) <= 12 and 0 < int(s[2:]) <= 12:\n ans = "AMBIGUOS"\nelif 0...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s112557562', 's706913745', 's920552253']
[2940.0, 3316.0, 3060.0]
[17.0, 18.0, 19.0]
[204, 236, 210]
p03042
u448161583
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...
["target = input()\nfirst, second = int(target[0:2]), int(target[2:4])\nif first = 0:\n first = 100\nif second = 0:\n second = 100\n\ndef check():\n if first >12 and second >12:\n return 'NA'\n elif first <= 12 and second <= 12:\n return 'AMBIGUOUS'\n elif first >12 and second <= 12:\n return 'YYMM'\n el...
['Runtime Error', 'Accepted']
['s199768506', 's687435183']
[2940.0, 3060.0]
[17.0, 17.0]
[370, 372]
p03042
u448720391
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\nfor i in range(4):\n s[i] = int(s[i])\n\na = s[0]*10 + s[1]\nb = s[2]*10 + s[3]\n\n\nelif a >= 13 and b >= 13:\n print("NA")\nelif a >= 13 and b <= 12:\n if b > 0:\n print("YYMM")\n else:\n print("NA")\nelif a <= 12 and b >= 13:\n if a > 0:\n print("MMYY")\n ...
['Runtime Error', 'Accepted']
['s743246219', 's783942349']
[2940.0, 3064.0]
[17.0, 17.0]
[413, 490]
p03042
u453068434
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=input()\nif(int(l[:2])>0 and int(l[2:])>0 and int(l[:2])<=12 and int(l[2:])<=12):\n print(\'AMBIGUOUS\')\nelif(int(l[:2])>0 and int(l[2:])>0 and int(l[:2])<=12 and int(l[2:])>=13):\n print("YYMM")\nelif(int(l[:2])>0 and int(l[2:])>0 and int(l[:2>=13]) and int(l[2:])<=12):\n print("MMYY")\nelse:\n print(...
['Runtime Error', 'Accepted']
['s341166102', 's201426240']
[3064.0, 3060.0]
[17.0, 17.0]
[313, 223]
p03042
u455957070
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])\ns2 = int(s[1])\ns3 = int(s[2])\ns4 = int(s[3])\nif(0 < (10 * s1 + s2) < 12 and 0 < (10 * s3 + s4) < 12):\n print('AMBIGUOUS')\nelif(0 < (10 * s1 + s2) < 12):\n print('YYMM')\nelif(0 < (10 * s3 + s4) < 12):\n print('MMYY')\nelse:\n print('NA')\n", "s = input()\ns1 = int(s[0])\ns2 = int...
['Wrong Answer', 'Accepted']
['s124665229', 's455446634']
[3060.0, 3060.0]
[17.0, 17.0]
[264, 264]
p03042
u465423770
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...
['# YYMM or MMYY or AMBIGUOUS or NA\ns = input()\n\ndef year_chack(s):\n if not (s == "00"):\n return True\n else :\n return False\n\ndef manth_check(s):\n if ( s == \'01\' or\n s == \'02\' or\n s == \'03\' or\n s == \'04\' or\n s == \'05\' or\n ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s355601998', 's791334388', 's099913575']
[3064.0, 3064.0, 3064.0]
[17.0, 17.0, 17.0]
[960, 900, 899]
p03042
u465652095
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()\nyear_list = ["01","02","03","04","04","05","06","07","08","09","10","11","12"]\n\nif S[0:2] in year_list:\n if S[2:4] in year_list:\n print("AMBIGUOUS")\n elif S[2:4] == "00":\n print("NA")\n else:\n print("YYMM")\nelif S[0:2] == "00":\n print("NA")\nelse:\n if S[2:4] ...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s067436819', 's262945040', 's734092578', 's899411056', 's444501087']
[9056.0, 9056.0, 9128.0, 9116.0, 9056.0]
[29.0, 26.0, 27.0, 30.0, 25.0]
[370, 288, 458, 458, 293]
p03042
u471499397
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...
['judge_num = "0000"\n \nbef = int(judge_num[:2])\naft = int(judge_num[2:])\n\nprint(bef)\n \nif(bef <= 12 and aft <= 12 and bef >= 1 and aft >= 1):\n print("AMBIGUOUS")\nelif(bef <= 12 and bef >= 1):\n print("MMYY")\nelif(aft <= 12):\n print("YYMM")\nelse:\n print("NA")', 'judge_num = input()\n\nbef = int(judge_nu...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s680774288', 's834214426', 's658902085']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[259, 208, 261]
p03042
u473633103
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\n# Your code here!\n\ns = input()\n\nfs = s[:2]\nbs = s[2:]\n\nif fs>"00" and fs<="12":\n if bs>"00" and bs<="12":\n print("AMBIGUOUS")\n else:\n print("YYMM")\nelse:\n if bs>"00" and bs<="12":\n print("MMYY")\n else:\n print("NA")\n', '# coding: utf-8\n# Your c...
['Wrong Answer', 'Accepted']
['s262741259', 's802028435']
[2940.0, 2940.0]
[17.0, 17.0]
[271, 271]
p03042
u474423089
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())\nh = int(s[0]+s[1])\nt = int(s[2]+s[3])\ny=0\nm=0\nif 0<h<13:\n y+=1\n m+=1\nelif 12<h<32:\n m+=1\nelif 0<t<13:\n y+=2\n m+=2\nelif 12<t<32:\n m+=2\nif y==3 and m==3:\n print("AMBIGUOUS")\nelif y==0 and m==0:\n print("NA")\nelif y==0:\n print("MMYY")\nelse:\n print("YYMM"...
['Wrong Answer', 'Accepted']
['s088869371', 's496639718']
[3064.0, 3064.0]
[17.0, 17.0]
[302, 379]
p03042
u477320129
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 f(y, m):\n\tif y in range(1, 13) and m in range(1, 13):\n return "AMBIGUOUS"\n if m in range(1, 13):\n return "YYMM"\n if y in range(1, 13):\n return "MMYY"\n return "NA"\n \nS = input()\ny, m = int(S[:2]), int(S[2:])\nprint(f(y, m))\n ', 'def f(y, m):\n\tif y in range(1, 13) and m in ra...
['Runtime Error', 'Accepted']
['s618923460', 's416857899']
[8932.0, 9176.0]
[25.0, 25.0]
[253, 233]
p03042
u483005329
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...
['sstr=list(input())\ns=[int(n) for n in sstr]\nsf=[s[0],s[1]]\nsb=[s[2],s[3]]\nfw="".join(sf)\nbk="".join(sb)\nif fw[0]==0:\n fw.pop(0)\nif bk[0]==0:\n bk.pop(0)\nif 1<=fw<=12:\n if 1<=bk<=12:\n print("AMBIGUOUS")\n else:\n print("MMYY")\nelse:\n if 1<=bk<=12:\n print("YYMM")\n else:\n print("NA")', ...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s050206035', 's393422478', 's679948362', 's703909180', 's121246658']
[3064.0, 3064.0, 3064.0, 3064.0, 3064.0]
[17.0, 17.0, 17.0, 24.0, 17.0]
[296, 2424, 296, 2362, 469]
p03042
u483885886
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 = int(input())\nb = str(a)\nover = int(b[:2])\nunder = int(b[2:])\nif 0<over<13 and 0<under<13:\n print("AMBIGUOUS")\nelif 0<over<13 and (1>under or under>12):\n print("YYMM")\nelif(0<under<13 and (1>over or over>12):\n print("MMYY")\nelse:\n print("NA")', 'a = input()\nover = int(a[:2])\nunder = int(a[2:])...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s094865026', 's257449401', 's627305165', 's675339090', 's715062378', 's955561234', 's732350664']
[2940.0, 2940.0, 2940.0, 3060.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[253, 239, 237, 239, 242, 259, 243]
p03042
u486094752
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]) + int(S[1])\nB = int(S[2]) + int(S[3])\n\nif (1 <= A <= 12 and 1 <= B <= 12):\n print("AMBIGUOUS")\nelif (1 <= A <= 12 and 13 <= B <= 99):\n print("MMYY")\nelif (1 <= B <= 12 and 13 <= A <= 99):\n print("YYMM")\nelse:\n print("NA")\n\n', 'S = int(input())\n\na = int(S/100 - (S%1...
['Wrong Answer', 'Accepted']
['s602992379', 's671989549']
[9128.0, 9220.0]
[27.0, 32.0]
[260, 398]
p03042
u488272873
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())\nyear = S[0] + S[1]\nmonth = S[2] + S[3]\nif (int(year) > 12 and int(month) >12) or (int(year) == 0) or (int(month) == 0):\n print('NA')\nelif int(year) > 12:\n print('MMYY')\nelif int(month) >12:\n print('YYMM')\nelif int(year) <= 12 and int(month) <= 12:\n print('AMBIGUOUS')", "S = str(...
['Wrong Answer', 'Accepted']
['s497632673', 's354878494']
[9144.0, 9136.0]
[26.0, 28.0]
[296, 330]
p03042
u490489966
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...
['#B\ns = list(input())\nleft = int(s[0])*10+int(s[1])\nright = int(s[2])*10+int(s[3])\nprint(left,right)\nif 0 < left <= 12:\n if 0 < right <= 12:\n print("AMBIGUOUS")\n else:\n print(\'MMYY\')\nelif 0 < right <= 12:\n print(\'YYMM\')\nelse:\n print(\'NA\')\n', "#B\ns = input()\nprint(int(s[0...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s184123550', 's547728043', 's346578537']
[3316.0, 3060.0, 3060.0]
[19.0, 17.0, 17.0]
[264, 240, 242]
p03042
u491762407
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()\nmy, ym = 0< int(s[:2]) <13, 0< int(s[2:]) <13\n\nmy,ym = 0<int(s[:2])<13,0<int(s[2:])<13\n\nif my and ym:\n print(\'AMBIGUOUS\')\n \nelif my:\n print(\'YYMM\')\n \nelif ym:\n print("MMYY")\n \nelse:\n print("NA")', 's = input()\n\nmy,ym = 0<int(s[:2])<13,0<int(s[2:])<13\n\nif my and ...
['Wrong Answer', 'Accepted']
['s858912433', 's181544786']
[3064.0, 3060.0]
[18.0, 17.0]
[227, 181]
p03042
u492447501
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\nM = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]\n\nif S[0:2] in M and not(S[2:] in M):\n print("MMYY")\nelif not(S[0:2] in M) and S[2:] in M:\n print("YYMM")\nelif S[0:2] in M and S[2:] in M:\n print("AMBIGUOUS")\nelse:\n print("NA")', 'S = list(input())\n...
['Wrong Answer', 'Accepted']
['s813830505', 's619962235']
[3064.0, 3064.0]
[18.0, 18.0]
[284, 338]
p03042
u496009935
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\ns1 = int(s[0]+s[1])\ns2 = int(s[2]+s[3])\nprint(s1, s2)\nL=[]\n\nfor i in range(1, 13):\n L.append(i)\n\n\nif s1 not in L and s2 not in L:\n print('NA')\nelif s1 in L and s2 not in L:\n print('MMYY')\nelif s1 not in L and s2 in L:\n print('YYMM')\nelse:\n print('AMBIGUOUS')\n", "s = inpu...
['Wrong Answer', 'Accepted']
['s090581215', 's889727188']
[9172.0, 9112.0]
[28.0, 27.0]
[287, 288]
p03042
u498202416
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])\nLIST = [False,False]\n\nprint(a,b)\nif 1 <= b <= 12 and a > 0:#YYMM\n LIST[0] = True \nif 1 <= a <= 12 and b > 0:#MMYY\n LIST[1] = True \n\nif LIST[0] and LIST[1]:\n print("AMBIGUOUS")\nelif LIST[0] and not LIST[1]:\n print("YYMM")\nelif not LIST[0] and LIST[...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s358839869', 's993062194', 's857711369']
[3064.0, 3064.0, 3064.0]
[17.0, 18.0, 17.0]
[346, 358, 338]
p03042
u499317876
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()\nstrdata=list(s)\ndata=list(map(int,strdata))\nFF=10*data[0]+data[1]\nLL=10*data[2]+data[3]\nif 12<FF and LL<13 and 0<LL and FF<19:\n print("YYMM\\n")\nelif 12<LL and FF<13 and 0<FF:\n print("MMYY\\n")\nelif FF<13 and LL<13 and 0<FF and 0<LL:\n print("AMBIGUOUS\\n")\nelse:\n print("NA\\n")\n', '...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s729761052', 's814779457', 's992421199']
[3060.0, 3060.0, 3064.0]
[17.0, 17.0, 17.0]
[297, 289, 377]
p03042
u508355671
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]) > 13 or int(s[:2])=0\nb = int(s[2:]) > 13 or int(s[2:])=0\nif a and b:\n print("NA")\nelif not a and not b:\n print("AMBIGUOUS")\nelif not a and b:\n print("MMYY")\nelse:\n print("YYMM")\n ', 's = input()\na = int(s[:2])\nb = int(s[2:])\nif 1<=a<=12 and 1<=b<=12:\n print("AMBIGUO...
['Runtime Error', 'Accepted']
['s630040631', 's365297798']
[2940.0, 3060.0]
[17.0, 18.0]
[215, 170]
p03042
u511449169
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 = int(input())\nzen = int(n // 100)\ngo = int(n % 100)\nif zen <= 12 and go <= 12:\n print("AMBIGUOUS")\nelif zen > 12 and go > 12:\n print("NA")\nelif zen <= 12 and go > 12:\n print("YYMM")\nelif zen > 12 and go <= 12:\n print("MMYY")', 'n = int(input())\nzen = int(n // 100)\ngo = int(n % 100)\nif zen and zen ...
['Wrong Answer', 'Accepted']
['s830266041', 's996201680']
[3060.0, 3060.0]
[17.0, 17.0]
[231, 215]
p03042
u513900925
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] == "00":\n if S[2:] > 12:\n \tprint("NA")\n else:\n print("YYMM")\nelif S[2:] == "00":\n if S[:2] > 12:\n \tprint("NA")\n else:\n print("MMYY")\nelif int(S[:2]) > 12 and S[2:] > 12:\n print("NA")\nelif int(S[:2]) < 13 and S[2:] < 13:\n print("AMBIGUOUS")\nelif int(S[:2]) < 13:\n p...
['Runtime Error', 'Accepted']
['s631231938', 's139565880']
[3064.0, 3064.0]
[17.0, 17.0]
[334, 371]
p03042
u514118270
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())\nf1 = 1\nf2 = 1\nA = int(''.join(S[:2]))\nB = int(''.join(S[2:]))\nprint(A,B)\nif A >= 13 or A == 0:\n f1 = 0\nif B >= 13 or B == 0:\n f2 = 0\nif f1 == 1 and f2 == 1:\n print('AMBIGUOUS')\nelif f1 == 1 and f2 == 0:\n print('MMYY')\nelif f1 == 0 and f2 == 1:\n print('YYMM')\nelse:\n ...
['Wrong Answer', 'Accepted']
['s160236600', 's508814875']
[3064.0, 3064.0]
[17.0, 18.0]
[313, 302]
p03042
u516272298
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[0])*10 + int(s[1])\nb = int(s[2])*10 + int(s[3])\nif (0 < a <= 12 and 0 < b) or (0 < a and 0 < b <= 12):\n print("AMBIGUOUS")\nelif 0 < a <= 12:\n print("MMYY")\nelif 0 < b <= 12:\n print("YYMM")\nelse:\n print("NA")', 's = str(input())\na = int(s[0])*10 + int(s[1])\nb = int(s[...
['Wrong Answer', 'Accepted']
['s716771866', 's078154670']
[3064.0, 3064.0]
[17.0, 17.0]
[246, 249]
p03042
u518042385
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()\nym=0\nmy=0\nif n[0]=="0":\n if int(n[1])!=0:\n my=1\n else:\n my=-1\nelif n[0]=="1":\n if int(n[1])==1 or int(n[1])==2:\n my=1\n else:\n my=-1\nelse:\n my=-1\nif n[2]=="0":\n if int(n[3])!=0:\n ym=1\n else:\n ym=-1\nelif n[2]=="1":\n if int(n[3])==1 or int(n[3])==2:\n ym=1\n e...
['Wrong Answer', 'Accepted']
['s189927409', 's508276691']
[3064.0, 3064.0]
[17.0, 18.0]
[434, 429]
p03042
u518524265
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 m(ss):\n if ss > 0 and ss <= 12:\n return 1\n return 0\n\ns = list(input())\ns1 = int(s[0]+s[1])\ns2 = int(s[2]+s[3])\nprint(s1,s2)\nif m(s1) and m(s2):\n print("AMBIGUOUS")\nelif m(s1) and not(m(s2)):\n print("MMYY")\nelif not(m(s1)) and m(s2):\n print("YYMM")\nelse:\n print("NA")', 'def...
['Wrong Answer', 'Accepted']
['s280637634', 's321248862']
[3064.0, 3064.0]
[17.0, 17.0]
[295, 296]
p03042
u522266410
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()\nb=int(a[0:2])\nc=int(a[2:4])\nif 0<b<=12 & 0<c<=12:\n print('AMBIGUOUS')\nelif 0<b<=12 & (c>12 or C ==0) :\n print('MMYY') \nelif (b>12 or b==0) & 0<c<=12:\n print('YYMM')\nelse:\n print('NA')", "a = input()\nb=int(a[0:2])\nc=int(a[2:4])\nif 1<=b<=12 and 1<=c<=12:\n print('AMBIGUOUS')\neli...
['Runtime Error', 'Accepted']
['s039054392', 's230057441']
[3064.0, 3060.0]
[17.0, 17.0]
[207, 178]
p03042
u522293645
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,b,c,d = input()\n\nli1 = [a,b]\nli2 = [c,d]\n\nint1 = int(''.join(li1))\nint2 = int(''.join(li2))\n\nif (int1 > 12 and int2 > 12):\n ans = 'NA'\nelif (int1 == 0 and int2 == 0):\n ans = 'NA'\nelif (int1 > 12 and int2 == 0):\n ans = 'NA'\nelif (int1 > 12):\n ans = 'YYMM'\nelif (int2 > 12 and int1 == 0):\n...
['Runtime Error', 'Accepted']
['s928586161', 's417855142']
[3060.0, 3064.0]
[17.0, 17.0]
[391, 352]
p03042
u522949850
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\nZ = int(S[0]) + int(S[1])\nK = int(S[2]) + int(S[3])\n\n\nif(1 <= Z <= 12):\n \n if(1 <= K <= 9):\n print("AMBIGUOUS")\n elif(10 <= K <= 12):\n print("AMBIGUOUS")\n else:\n print("MMYY")\n\n\nelse:\n \n if(1 <= K <= 9):\n print("YYMM")\n elif(10 <= K <= ...
['Wrong Answer', 'Accepted']
['s063141859', 's934597621']
[3064.0, 3064.0]
[17.0, 17.0]
[417, 341]
p03042
u524644593
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\nfr_half = int(S[0:2]) \nse_half = int(S[2::])\n\nif se_half > 0 and se_half <= 12:\n\tif fr_half > 0 and fr_half <= 12:\n\t\tprint('AMBIGUOUS')\n \telse:\n\t\tprint('YYMM')\nelse:\n\tif fr_half > 0 and fr_half <= 12:\n\t\tprint('MMYY')\n\telse:\n\t\tprint('NA')", "S = input()\n\nfr_half = int(S[0:2]...
['Runtime Error', 'Accepted']
['s956440156', 's229550515']
[2940.0, 2940.0]
[17.0, 17.0]
[253, 264]
p03042
u528807020
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-(A*100)\nif B >12:\n if A > 13: \n print("YYMM")\n else A <=12:\n print("MMYY")\nelif 1<= B <=12:\n if A >13:\n print("YYMM")\n else A <=12:\n print("AMBIGUOUS")\nelse :\n print("NA")\n', 'S = int(input())\nA = S//100\nB = S-(A*100)\ni...
['Runtime Error', 'Accepted']
['s671070037', 's455477482']
[2940.0, 3064.0]
[17.0, 17.0]
[253, 337]
p03042
u529012223
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...
['X = input()\n\nX1 = 10*int(X[0]) + int(X[1])\nX2 = 10*int(X[2]) + int(X[3])\n\nif (1 <= X1 <= 12) and ((X2 > 12) or (X2 == 0)):\n print("MMYY")\nelif ((X2 > 12) or (X2 == 0)) and (1 <= X1 <= 12):\n print("YYMM")\nelif (1 <= X1 <= 12) and (1 <= X2 <= 12):\n print("AMBIGUOUS")\nelse:\n print("NA")', 'X = in...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s152997175', 's989624099', 's643271715']
[3064.0, 2940.0, 3064.0]
[18.0, 18.0, 17.0]
[296, 295, 295]
p03042
u533232830
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\nfront = s[:2]\nback =s[2:]\n\nif (front == "00" or back == "00") or (front > 13 and back >13):\n print("NA")\nelif 1 <= int(back) <= 12:\n if 1 <= int() <= 12:\n print("AMBIGUOUS")\n else:\n print("YYMM")\nelse:\n print("MMYY")', 's = input()\n\nfront = int(s[:2])\nback = int(...
['Runtime Error', 'Accepted']
['s274649138', 's510998577']
[3060.0, 2940.0]
[17.0, 17.0]
[255, 234]
p03042
u534308356
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 = list(input())\n left = int(s[0] + s[1])\n right = int(s[2] + s[3])\n\n if 1 <= left and left <= 12:\n if 1 <= right and right <= 12:\n return "AMIGUOUS"\n else:\n return "MMYY"\n else:\n if 1 <= right and right <= 12:\n return "MMY...
['Wrong Answer', 'Accepted']
['s449053455', 's170349631']
[3060.0, 2940.0]
[17.0, 17.0]
[362, 363]
p03042
u536325690
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\nbef = int(S[:2])\naft = int(S[2:])\n\nansb = ''\nansa = ''\nprint(bef,aft)\n\nif bef == 0 or aft == 0:\n ans = 'NA'\nelif bef > 31:\n if aft > 31:\n ans = 'NA'\n elif aft <= 31:\n ans = 'YYMM'\nelif 12 < bef <= 31:\n if aft > 31:\n ans = 'MMYY'\n elif 12 < aft <= 31:...
['Wrong Answer', 'Accepted']
['s604362477', 's782159627']
[3064.0, 3064.0]
[17.0, 17.0]
[479, 823]
p03042
u536654075
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 == 0 AND S2 == 0:\n print('NA')\nif S1 == 0 AND S2 >12:\n print('NA')\nif S1 > 12 AND S2 == 0:\n print('NA')\nelif S1 > 12 and S2 > 12:\n print('NA')\nelif S1 > 12 and S2 <= 12:\n print('YYMM')\nelif S1 <= 12 and S2 > 12:\n print('MMYY')\nelse:\n p...
['Runtime Error', 'Accepted']
['s449999481', 's095872252']
[2940.0, 3060.0]
[17.0, 17.0]
[319, 318]
p03042
u536685012
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 = 0\n\nsf = s[:1] #'sf' is the formar part of the S\nsl = s[2:] #'sl' is the latter part of the S\n\nfor i in range(1,9):\n if sf[0] == 0:\n if sf[1] == i:\n a += 1\n\nfor j in range(0,2):\n if sf[0] == 1:\n if sf[1] == j:\n a += 1\n \nfor i in range(1,9):\n if sl[0] == ...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s008707480', 's034894184', 's119844546', 's170212141', 's242960275', 's337230956', 's540059318', 's709123516', 's832916714', 's852281632', 's939749671', 's212059200']
[3064.0, 2940.0, 3064.0, 3064.0, 3060.0, 3064.0, 3064.0, 3064.0, 3064.0, 3060.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[503, 569, 536, 264, 264, 536, 386, 534, 243, 262, 242, 262]
p03042
u537550206
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 1 <= s_1 <=12 and 1 <= s_2 <= 12:\n print("AMBIGUOUS")\nelif 1 <= s_1 <= 12:\n print("MMYY")\nelif 1 <= s_2 <= 12:\n print("YYMM")\nelse:\n print("NA")', 's = int(input())\ns_1 = s // 100 \ns_2 = s % 100 \n\nif 1 <= s_1 <=12 and 1 <= s_2 <= 12:\n print("AMBIGUOUS")\nelif 1 <= s_1 <= 12:\n print(...
['Runtime Error', 'Accepted']
['s385462168', 's679484847']
[2940.0, 3060.0]
[17.0, 17.0]
[159, 293]
p03042
u537782349
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()\n\nif 1 <= int(a[:2]) <= 12 and 1 <= int(a[2:]) <= 12:\n print("AMBIGUOUS")\nelif 1 <= int(a[:2]) <= 12:\n print("YYMM")\nelif 1 <= int(a[2:]) <= 12:\n print("MMYY")\nelse:\n print("NA")\n', 'a = input()\nb = int(a[:2])\nc = int(a[2:])\nif 1 <= b <= 12 and 1 <= c <= 12:\n print("AMBIGUOUS")...
['Wrong Answer', 'Accepted']
['s164584458', 's073325013']
[2940.0, 2940.0]
[17.0, 17.0]
[202, 195]
p03042
u548308904
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\n\n#v = [int(d) for d in input().split()]\nv= list(str(input()))\n\n\nli = list(np.array_split(v,2))\n\nmae = int(''.join(li[0]))\nusiro = int(''.join(li[1]))\n\nma = 0\nusi = 0\n\nif int(usiro) >= 1:\n if int(usiro) <= 12:\n usi = 1\n else:\n usi = 2\nelse:\n print('NA')\n ...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s063928928', 's545733605', 's675233531', 's803198858']
[21412.0, 21520.0, 21272.0, 21412.0]
[309.0, 316.0, 295.0, 304.0]
[688, 663, 603, 643]
p03042
u551692187
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,K = map(int, input().split())\n\nS = input()\nS_bef = int(S[:2])\nS_aft = int(S[-2:])\n\nis_bef_yy = False\nis_bef_mm = False\nis_aft_yy = False\nis_aft_mm = False\n\nif S_bef >= 1 and S_bef <= 12:\n is_bef_mm = True\nif S_bef >= 0:\n is_bef_yy = True\nif S_aft >= 1 and S_aft <= 12:\n is_aft_mm = True\nif ...
['Runtime Error', 'Accepted']
['s296853176', 's772866736']
[3064.0, 3064.0]
[19.0, 18.0]
[533, 500]
p03042
u553070631
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=int(input())\nif int(a[0])==0 and a[1]==0:\n print('NA')\nelif int(a[2])==0 and a[3]==0:\n print('NA')\nelif int(a[0])>=2:\n print ('YYMM')\nelif int(a[0])>=1 and a[1]>=3:\n print('YYMM')\nelif int(a[2])>=2:\n print ('MMYY')\nelif int(a[2])>=1 and a[3]>=3:\n print('MMYY')\n", "a=int(input())\nif a[0]==0 and a...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s017542508', 's083521954', 's104734653', 's177489651', 's258836087', 's501171879']
[3060.0, 3060.0, 2940.0, 3060.0, 3060.0, 3064.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[269, 239, 239, 233, 239, 380]
p03042
u556225812
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, b, c, d = list(input())\nif 0 < 10*a + b <= 12 and 0 < c*10 + d <= 12:\n print('AMBIGUOUS')\nelif 10*a + b >= 12 and 0 < c*10 + d <= 12:\n print('YYMM')\nelif 0 < 10*a + b <= 12 and c*10 + d >= 12:\n print('MMYY')\nelse:\n print('NA')", "a, b, c, d = list(input())\na = int(a)\nb = int(b)\nc = int(c)\nd...
['Runtime Error', 'Accepted']
['s744672146', 's285267085']
[3060.0, 3060.0]
[18.0, 17.0]
[241, 319]
p03042
u558452954
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 re \nS=input()\ndef YM(S):\n if re.match("(1[3-9]|[2-9][0-9])(0[1-9]|1[0-2])",S):\n print("YYMM")\n elif re.match("(0[1-9]|1[0-2])(1[3-9]|[2-9][0-9])",S):\n print("MMYY")\n else:\n print("AMBIGUOUS")\n\nprint("{}".format(YM(S)))', 'import re \nS=input()\ndef YM(S):\n if re.match("(1[3-9]|[2-9][0-9...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s407937474', 's507655676', 's259249363']
[3188.0, 3188.0, 3188.0]
[19.0, 19.0, 19.0]
[237, 210, 311]
p03042
u561862393
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 bisect\n\nlis = [1, 13]\n\nstr = input()\ntp = int(str[:2])\nbt = int(str[2:])\n\ntplo = bisect.bisect_right(lis, tp)\nbtlo = bisect.bisect_right(lis, bt)\n\nif tplo == 1:\n if btlo == 1:\n jd = 2\n else:\n jd = 1\nelse:\n if btlo == 1:\n jd = 0\n else:\n jd = 3\n\njudge...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s087339394', 's235351840', 's525342500', 's823245925', 's842881798', 's893710096', 's933128936', 's978188949']
[3064.0, 3064.0, 2940.0, 3060.0, 3064.0, 3064.0, 3064.0, 3060.0]
[17.0, 18.0, 17.0, 17.0, 18.0, 18.0, 17.0, 18.0]
[370, 416, 421, 346, 417, 418, 421, 353]
p03042
u562015767
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())\nAC = list(A)\nAB = int(A[0] + A[1])\nAC = int(A[2] + A[3])\n\nif AB > 13:\n if AC == 0:\n print("NA")\n else:\n print("YYMM")\nif 1 <= AB <= 12:\n if AC == 0:\n print("NA")\n else:\n print("MMYY")\nelse:\n print("AMBIGUOUS")', 'A = str(input())\nAC = list(A...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s009821675', 's056736816', 's113542817', 's436004118', 's296472646']
[3060.0, 3060.0, 2940.0, 2940.0, 3064.0]
[17.0, 17.0, 18.0, 17.0, 17.0]
[269, 231, 187, 339, 231]
p03042
u562550538
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])\nb=int(s[2:])\nprint(f,b)\nif f>=13:\n\tif 0<b and b<13:\n\t\tprint("YYMM")\n\telse:\n\t\tprint("NA")\nelif 0<f and f<13:\n\tif 0<b and b<13:\n\t\tprint("AMBIGUOUS")\n\telse:\n\t\tprint("MMYY")\nelse:\n\tprint("NA")', 's=input()\nf=int(s[:2])\nb=int(s[2:])\nprint(f,b)\nif f>13:\n\tif 0<b and b...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s195154958', 's216409065', 's380167376']
[3060.0, 3188.0, 3060.0]
[17.0, 20.0, 17.0]
[211, 201, 208]
p03042
u564770050
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()\nsa = int(s[:2])\nsb = int(s[3:])\n\nif sa >= 1 and sa <= 12 and sb >= 1 and sb <= 12:\n print('AMBIGUOUS')\n exit()\nif sa > 12 and sb > 12:\n print('NA')\n exit()\nif sa >= 1 and sa <= 12 and sb > 12:\n print('MMYY')\n exit()\nif sa > 12 and sb >= 1 sb <= 12:\n print('YYMM')\n ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s254385637', 's343986147', 's850137019']
[2940.0, 2940.0, 3060.0]
[17.0, 18.0, 17.0]
[310, 280, 281]
p03042
u564906058
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\n\nif 1 <= a <= 12:\n if 1 <= b <= 12:\n print("AMBIGUOUS")\n else:\n print("MMYY")\nelse:\n if 1 <= b <= 12:\n print("YYMM")\n else:\n print("NA")', 's = int(input())\na = s//100\nb = s%100\n\nif 1 <= a <= 12:\n if 1 <= b <= 12:\n print("AMBIGUOUS")\n els...
['Runtime Error', 'Accepted']
['s025173395', 's274631246']
[3060.0, 2940.0]
[18.0, 17.0]
[191, 190]
p03042
u566935164
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 = int(s/100)\nb = s % 100\n\nfa, fb = False, False\nif a in range(1, 13):\n fa = True\n\nif b in range(1, 13):\n fb = True\n\nif fa and fb:\n print('AMBIGUOUS')\nelif fa and not fb:\n print('MMYY')\nelif not fb and fa:\n print('YYMM')\nelse:\n print('NA')\n", "s = int(input())\...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s701630993', 's901410036', 's789948046']
[3060.0, 3316.0, 3060.0]
[17.0, 21.0, 17.0]
[277, 277, 276]