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
p03041
u980783809
2,000
1,048,576
You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.
["n,k=map(int,input().split())\ns=input()\nif s[k-1]=='A':\n s[k-1]='a'\nelif s[k-1]=='B':\n s[k-1]='b'\nelse:\n s[k-1]='c'\nprint(s)\n", "n,k=map(int,input().split())\ns=input()\nif s[k-1]=='A':\n s[k-1]='a'\nelif s[k-1]=='B':\n s[k-1]='b'\nelse:\n s[k-1]='c':\nprint(s)", 'n, k = map(int, input().split())\ns = i...
['Runtime Error', 'Runtime Error', 'Accepted']
['s235711793', 's809851236', 's909955907']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[127, 127, 82]
p03041
u981758672
2,000
1,048,576
You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.
["n = int(input())\nk = int(input())\ns = input()\nresult = ''\nfor i in range(n):\n if i == k-1:\n result += chr(ord(s[i]) + 32)\n else:\n result += s[i]\nprint(result)", "n, k = input().split()\na = int(n)\nb = int(k)\ns = input()\nresult = ''\nfor i in range(a):\n if i == b-1:\n result ...
['Runtime Error', 'Accepted']
['s081465239', 's305002244']
[2940.0, 3060.0]
[17.0, 17.0]
[178, 189]
p03041
u985648232
2,000
1,048,576
You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.
["input1 = list(map(int, input().split()))\n\ntar_str = input()\n\noutput_str = ''\n\nfor i in range(len(tar_str)):\n if i == input1[1]:\n output_str += tar_str[i].lower()\n else:\n output_str += tar_str[i]\n\nprint(output_str)\n", "input1 = list(map(int, input().split()))\n\ntar_str = input()\n\nou...
['Wrong Answer', 'Accepted']
['s919879402', 's370197342']
[2940.0, 2940.0]
[17.0, 17.0]
[234, 238]
p03041
u985963315
2,000
1,048,576
You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.
['N, K = map(int, input().split())\ns = input()\nprint(s[:K] + s[K:].capitalize.swapcase)', 'N, K = map(int, input().split())\nM = 0\ndef coin(x):\n k = 1\n while k < x:\n k *= 2\n return 1/k\nfor i in range(N):\n M += coin(K/(i + 1))\nprint(M / N)', 'N, K = map(int, input().split())\ns = input()\nprint(s[:K-1] ...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s458337143', 's542882463', 's075590248']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[85, 153, 93]
p03041
u997134361
2,000
1,048,576
You are given a string S of length N consisting of `A`, `B` and `C`, and an integer K which is between 1 and N (inclusive). Print the string S after lowercasing the K-th character in it.
['n, k = list(map(int, input().split()))\ns = input()\n\nprint(s[:k] + s[k].lower() + s[k+1:])\n', 'n, k = list(map(int, input().split()))\ns = input()\n\nprint(s[:k-1] + s[k-1].lower() + s[k:])\n']
['Runtime Error', 'Accepted']
['s803043071', 's821556675']
[9068.0, 9088.0]
[29.0, 27.0]
[90, 92]
p03042
u004676431
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 = False\nmmyy = False\nfirst = int(s[:2])\nlast = int(s[2:])\nif first<=12 and first >0:\n mmyy = True\nif last <=12 and last>0:\n yymm = True\nif mmyy == True and yymm = True:\n print('AMBIGUOUS')\nelif mmyy == True and yymm = False:\n print('MMYY')\nelif mmyy == False and yymm = True:\n print...
['Runtime Error', 'Accepted']
['s078274198', 's638989815']
[2940.0, 3064.0]
[17.0, 17.0]
[332, 347]
p03042
u006600745
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:])\n\nif 1 <= f <= 12 and 1 <= s <= 12:\n print("AMBIGUOUS")\nelif 1 <= f <= 12:\n print("YYMM")\nelif 1 <= s <= 12:\n print("MMYY")\nelse:\n print("NA")\n', 'S = input()\nf = int(S[:2])\ns = int(S[2:])\n\nif 1 <= f <= 12 and 1 <= s <= 12:\n print("AMBIGUOUS")\n...
['Wrong Answer', 'Accepted']
['s942137950', 's009817186']
[2940.0, 2940.0]
[17.0, 17.0]
[196, 196]
p03042
u021548497
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, b = s//100, s%100\nboos = int(input())\na, b = s//100, s%100\np = bool(1 <= a <= 12)\nq = bool(1 <= b <= 12)\nif p & q:\n print("AMBIGUOUS")\nelif p:\n print("MMYY")\nelif q:\n print("YYMM")\nelse:\n print("NA")', 's = int(input())\na, b = s//100, s%100\np = bool(1 <= a <= 12)\nq = bo...
['Runtime Error', 'Accepted']
['s160562764', 's266351469']
[3064.0, 3060.0]
[17.0, 17.0]
[231, 190]
p03042
u022979415
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 = input()\n if 0 < int(S[:2]) <= 12 and 0 < int(S[2:]) <= 12:\n return "AMBIGUOUS"\n elif (int(S[:2]) > 12 or int(S[:2]) == 0) and 12 >= int(S[2:]) > 0:\n return "YYMM"\n elif 0 < int(S[:2]) <= 12 and (12 < int(S[2:]) or int(S[2:]) == 0):\n return "MMYY"\n else:\n ...
['Wrong Answer', 'Accepted']
['s860049695', 's978171074']
[3060.0, 3060.0]
[17.0, 17.0]
[367, 374]
p03042
u023077142
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:])\n\nprint(a, b)\n\nisYYMM = 1 <= b <= 12\nisMMYY = 1 <= a <= 12\n\nif isYYMM and isMMYY:\n print('NA')\nelif isYYMM:\n print('YYMM')\nelif isMMYY:\n print('MMYY')\nelse:\n print('AMBIGUOUS')\n", "S = input()\n\na = int(S[:2])\nb = int(S[2:])\n\nprint(a, b)\n\ni...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s313700298', 's836826470', 's960707862', 's000155276']
[2940.0, 3060.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[231, 231, 231, 217]
p03042
u024245528
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\nS_zen =int(S[0:2])\nS_go = int(S[2:4])\n\njudge_list_MM = [1+i for i in range(12)]\n\nprint(judge_list_MM)\n\n\nif S_zen ==0 or S_go ==0:\n print("NA")\nif S_zen in judge_list_MM :\n print("MMYY")\nelif S_go in judge_list_MM :\n print("YYMM")\nelif S_zen in judge_list_MM and S_go in judge_list...
['Wrong Answer', 'Accepted']
['s995756252', 's703929006']
[3060.0, 3060.0]
[17.0, 18.0]
[331, 311]
p03042
u024609780
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 = list(input())\nfirst = 10 * x[0] + x[1]\nsecond = 10 * x[2] + x[3]\n\n\ndef mc(num):\n if 1 <= num <= 12:\n return True\n else:\n return False\n\n\ndef yc(num):\n if 1 <= num <= 99:\n return True\n else:\n return False\n\n\nif yc(first):\n if mc(second):\n if yc(s...
['Runtime Error', 'Accepted']
['s445015190', 's500139844']
[9128.0, 9104.0]
[25.0, 28.0]
[699, 720]
p03042
u026155812
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 = ['01','02','03','04','05','06','07','08','09','10','11','12']\nfor x in ls:\n if x == S[:2]:\n for x in ls:\n if x == S[2:]:\n print('AMBIGUOUS')\n else:\n print('MMYY')\n else:\n for x in ls:\n if x == S[2:]:\n ...
['Wrong Answer', 'Accepted']
['s443250821', 's171065716']
[3060.0, 3060.0]
[18.0, 17.0]
[375, 252]
p03042
u027929618
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())\ns=input()\nprint(s[:k-1]+s[k-1].lower()+s[k:])', 's=input()\nl=int(s[:2])\nr=int(s[2:])\nif 1<=l<=12 and 1<=r<=12:\n print("AMBIGUOUS")\nelif 1<=l<=12:\n print("MMYY")\nelif 1<=r<=12:\n print("YYMM")\nelse:\n print("NA")']
['Runtime Error', 'Accepted']
['s360615443', 's431868014']
[2940.0, 2940.0]
[17.0, 18.0]
[74, 172]
p03042
u038676814
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 check(S) :\n mae = int(S[:2])\n ato = int(S[2:])\n if mae == 0 :\n return "NA"\n if ato == 0 :\n return "NA"\n if mae > 12 and ato > 12 :\n return "NA"\n if mae < 13 and ato < 13 :\n return "AMBIGUOUS"\n \n if mae < 13 :\n return "MMYY"\n if mae > 12\n...
['Runtime Error', 'Accepted']
['s371583665', 's118014780']
[2940.0, 3060.0]
[17.0, 17.0]
[355, 458]
p03042
u039749533
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,B=S//100,S%100\nprint(A,B)\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,B=S//100,S%100\nif A < 13 and B < 13 and A != 0 and B != 0:\n print("AMBIGUOUS")...
['Wrong Answer', 'Accepted']
['s336939808', 's945999291']
[3060.0, 3060.0]
[17.0, 17.0]
[205, 194]
p03042
u041382530
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()\nx=int(S[0:2])\ny=int(S[2:4])\nif x>0 & y>0 & x<13 & y<13: print('AMBIGUOUS')\nelif x>0 & x<13 & y>13: print('MMYY')\nelif y>0 & y<13 & x>13: print('YYMM')\nelse: print('NA')", "S=input()\nx=int(S[0:2])\ny=int(S[2:4])\nif (0<x<13) & (0<y<13): print('AMBIGUOUS')\nelif (0<x<=12) & ((y>=13) | (y==0)): print('M...
['Wrong Answer', 'Accepted']
['s158426077', 's600704732']
[3060.0, 3060.0]
[17.0, 17.0]
[178, 200]
p03042
u044026875
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 10*int(s[2])+int(s[3])<=12 and int(s[2])+int(s[3])!=0:\n if 10*int(s[0])+int(s[1])<=12:\n print("AMBIGUOUS")\n else:\n print("YYMM")\nif 10*int(s[0])+int(s[1])<=12 and int(s[0])+int(s[1])!=0:\n if 10*int(s[2])+int(s[3])<=12:\n print("AMBIGUOUS")\n else:\n print("MMYY")\nelse:\n print("N...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s009130450', 's009555386', 's092441045', 's172149854', 's573198583', 's955296881', 's632880125']
[3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3316.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 22.0]
[309, 363, 380, 336, 309, 378, 335]
p03042
u044964932
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...
['\ndef main():\n S = input()\n\n A = int(S[:2])\n B = int(S[2:])\n print(A, B)\n\n if A != 0 and B <= 12 and B != 0 and A <= 12:\n print("AMBIGUOUS")\n\n elif (A != 0 and B <= 12) and B != 0:\n print("YYMM")\n\n elif (B != 0 and A <= 12) and A != 0:\n print("MMYY")\n\n else...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s158713504', 's377740128', 's508919888']
[3060.0, 3060.0, 3064.0]
[17.0, 17.0, 17.0]
[363, 367, 477]
p03042
u055687574
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 0 < a < 13 and 0 < b < 13:\n print("AMBIGUOUS")\nelif 0 < a < 13:\n print("YYMM")\nelif 0 < b < 13:\n print("MMYY")\nelse:\n print("NA")\n', 'from datetime import datetime\n\nS = input()\na = S[:2]\nb = S[2:]\n\ndef is_month(m):\n m = int(m)\n return...
['Wrong Answer', 'Accepted']
['s261467374', 's550673460']
[2940.0, 3312.0]
[17.0, 19.0]
[188, 376]
p03042
u060569392
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 1<=S1<=12:\n \n if S2==0:\n print("NA")\n \n if 1<=S2<=12:\n print(\'AMBIGUOUS\')\n \n elif 12<=S2<=31:\n print(\'YYMM\')\n\nelif 12<S1<=31 and S2 !=0 :\n print("MMYY")\n\nelse:\n print(\'NA\') ', "S=input()\nS1=...
['Wrong Answer', 'Accepted']
['s367029594', 's422126903']
[3064.0, 3060.0]
[17.0, 17.0]
[275, 191]
p03042
u064246852
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\nprint(a,b)\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 = input()\na = int(s[:2])\nb = int(s[2:])\n\n\nif 1 <= a <= 12:\n ...
['Wrong Answer', 'Accepted']
['s918306821', 's856131914']
[3316.0, 2940.0]
[21.0, 17.0]
[229, 219]
p03042
u069602573
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 = a%100\na = int(a/100)\n\nif a<=12:\n if b<=12:\n print("AMBIGUOUS")\n else:\n print("YYMM")\nelse:\n if b<=12:\n print("MMYY")\n else:\n print("NA")', 'a = int(input()) \nb = a%100\na = int(a/100)\n\nif a<=12:\n if b<=12:\n print("AMBIGUOUS")\...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s347524972', 's959300638', 's196218107']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[213, 213, 236]
p03042
u072606168
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 = [int(N[:1]), int(N[1:])]\na = ['YYMM', 'MMYY', 'AMBIGUOUS', 'NA']\nif a[0] > 12:\n if a[1] == 0:\n print(a[3])\n else:\n print(a[0])\nelif a[1] > 12:\n if a[0 == 0:\n print(a[3])\n else:\n print(a[1])\nelse:\n print(a[2])", "N = input()\nn = [int(N[:2]), int(N[2:])]\na = ['YYMM', 'MM...
['Runtime Error', 'Accepted']
['s410558386', 's334011087']
[2940.0, 3064.0]
[17.0, 17.0]
[241, 253]
p03042
u073139376
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 1 <= s1 <= 12 and 1 <= s2 <= 12:\n print('AMBIGUOUS')\nelif 1 <= s1 <= 12:\n print('MMYY')\nelif 1 <= s2 <= 12:\n print('YMMM')\nelse:\n print('NA')\n ", "S = input()\ns1 = int(S[:2])\ns2 = int(S[2:])\n\nif 1 <= s1 <= 12 and 1 <= s2 <= 12:\n print('AMBIGUOUS')...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s135095051', 's270863022', 's543132665']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[196, 292, 402]
p03042
u073606136
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 = input()\n\nif 1 <= int(yymm[0:2]) and int(yymm[0:2]) <= 12 or 1 <= int(yymm[2:4]) and int(yymm[2:4]) <= 12:\n print('AMBIGUOUS')\nelif (1 <= int(yymm[0:2]) and int(yymm[0:2])) <= 12 and int(yymm[2:4]) <= 99:\n print('YYMM')\nelif int(yymm[0:2]) <= 99 and 1 <= (int(yymm[2:4]) and int(yymm[2:4]) <= 12):\n ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s109039052', 's149806153', 's300467934']
[8944.0, 9156.0, 9104.0]
[29.0, 31.0, 30.0]
[349, 350, 354]
p03042
u074338678
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,a,b,b = str(input())\n\nif 1<=int(a+a)<=12 and 1<=int(b+b)<=12:\n print("AMBIGUOUS")\nelif 1<=int(a+a)<=12:\n print("MMYY")\nelif 1<=int(b+b)<=12:\n print("YYMM")\nelse:\n print("NA")\n', 'a,b,c,d = str(input())\n\nif 1<=int(a+b)<=12 and 1<=int(c+d)<=12:\n print("AMBIGUOUS")\nelif 1<=int(a+b)<=12 \n print("MM...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s167866447', 's331782201', 's900038435', 's166075050']
[2940.0, 2940.0, 3064.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[181, 181, 242, 183]
p03042
u075628913
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:])\nprint(s[:2], a, s[2:], b)\nis_MMxx = is_xxMM = False\nif 13 > a > 0:\n is_MMxx = True\nif 13 > b > 0:\n is_xxMM = True\nif is_MMxx and is_xxMM:\n print("AMBIGUOUS")\nelif is_MMxx:\n print("MMYY")\nelif is_xxMM:\n print("YYMM")\nelse:\n print("NA")', 's = input()\na...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s687656542', 's964861187', 's630615300']
[3064.0, 3064.0, 3060.0]
[17.0, 17.0, 17.0]
[283, 283, 257]
p03042
u076996519
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:])\nif a <= 12 && a > 0:\n\tif b <=12 && b > 0:\n\t\tprint('AMBIGUOUS')\n\telse:\n\t\tprint('MMYY')\nelse:\n\tif b <=12 && b > 0:\n\t\tprint('YYMM')\n\telse:\n\t\tprint('NA')", "s = input()\na = int(s[:2])\nb = int(s[2:])\nif a <= 12 && a > 0:\n\tif b <=12 and b > 0:\n\t\tprin...
['Runtime Error', 'Runtime Error', 'Accepted']
['s242759227', 's935399390', 's769977198']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 18.0]
[191, 193, 194]
p03042
u077019541
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 = [i for i in input()]\nmae = S[0]+S[1]\nushiro = S[2]+S[3]\nmmyy = False\nyymm = False\nif int(mae)>0 and int(mae)<=12:\n mmyy = True\nelif int(ushiro)>0 and int(ushiro)<=12:\n yymm = True\n\nif mmyy and yymm:\n print("AMBIGUOUS")\nelif mmyy and yymm==False:\n print("MMYY")\nelif mmyy==False and yymm==...
['Wrong Answer', 'Accepted']
['s702949535', 's862881911']
[3064.0, 3064.0]
[17.0, 18.0]
[350, 351]
p03042
u077291787
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 - YYMM or MMYY\ns = input()\nx, y = int(s[:2]), int(s[2:])\nif x = 0 or y = 0:\n print("NA")\nelif 1 <= x <= 12 and 1 <= y <= 12:\n print("AMBIGUOUS")\nelif 1 <= x <= 12 and y <= 31:\n print("MMYY")\nelif x <= 31 and 1 <= y <= 12:\n print("YYMM")\nelse:\n print("NA")', '# ABC126B - YYMM or MM...
['Runtime Error', 'Accepted']
['s967075127', 's770588086']
[2940.0, 2940.0]
[17.0, 17.0]
[280, 242]
p03042
u080364835
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()\naa = int(s[:2])\nbb = int(s[2:])\n\nif 0<aa and aa<=12:\n if 0<bb and bb<=12:\n print('AMBIGUOUS')\n elif bb==0:\n print('NA')\n else:\n print('MMYY')\nelif aa!=0:\n 0<bb and bb<=12:\n print('YYMM')\nelse:\n print('NA')\n", "s = input()\naa = int(s[:2])\nbb = int(s[2:])\n\nif 0<aa and aa<=...
['Runtime Error', 'Accepted']
['s050322828', 's091650839']
[2940.0, 3060.0]
[17.0, 17.0]
[233, 205]
p03042
u089142196
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\nleft=int(S[:2])\nright=int(S[2:])\n\nYYMM=True\nMMYY=True\nAMBIGUOUS=True\nNA=True\n\n\nif leftL<=0 or left>12:\n MMYY=False\n AMBIGUOUS=False\nelse:\n NA=False\n \nif right<=0 or right>12:\n YYMM=False\n AMBIGUOUS=False\nelse:\n NA=False\n\nif YYMM==True:\n if MMYY==True:\n print("AMBIGOUS")\...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s491751972', 's757838473', 's650514038']
[3064.0, 3064.0, 3064.0]
[17.0, 17.0, 17.0]
[383, 449, 384]
p03042
u089711240
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, MMYY, AMBIGUOUS, NA\nS = str(input())\n\ns0 = int(S[0:2])\ns1 = int(S[2:])\n\nif s0>12:#YYMM or NA\n if s1>12:\n ans=="NA"\n else:\n ans=="YYMM"\nelif s1>12:#MMYY\n ans="MMYY"\nelse:\n ans="AMBIGUOUS"\n \nprint(ans)', '#YYMM, MMYY, AMBIGUOUS, NA\nS = str(input())\n\ns0 = int(S[0:2]...
['Runtime Error', 'Runtime Error', 'Accepted']
['s004678456', 's046465218', 's420474633']
[3068.0, 3060.0, 3064.0]
[17.0, 17.0, 17.0]
[235, 231, 260]
p03042
u094102716
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()\nn1 = int(s[:2])\nn2 = int(s[2:])\nif 1 <= n1 <= 12 and 1 <= n2 <= 12:\n print("AMBIGUOUS)\nelif (n1 > 12 or n1 == 0) and 1 <= n2 <= 12:\n print("YYMM")\nelif (n2 > 12 or n2 == 0) and 1 <= n1 <= 12:\n print("MMYY")\nelse:\n print("NA")', 's = input()\nn1 = int(s[:2])\nn2 = int(s[2:])\nif 1 <= n1 <= 12...
['Runtime Error', 'Accepted']
['s244161751', 's667951064']
[9012.0, 8980.0]
[26.0, 25.0]
[241, 243]
p03042
u094213642
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\nb = int(s[:2])\na = int(s[2:])\n\nprint(b)\nprint(a)\n\ndef yorm(i):\n flag = 'none'\n if 0<i<12:\n flag = 'MM'\n elif i<100:\n flag = 'YY'\n return flag\n \nans = bf+af\nif len(ans) != 4:\n ans = 'NA'\nif ans == 'MMMM':\n ans = 'AMBIGUOUS'\nif ans == 'YYYY':\n ans ...
['Runtime Error', 'Accepted']
['s828569360', 's512448219']
[9080.0, 9084.0]
[26.0, 24.0]
[313, 322]
p03042
u101151851
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 = int(s / 100)\nb = s % 100\nprint(a, b)\n\nif a > 0 and a < 13 and a > 0 and a < 13:\n print("AMBIGUOUS")\nelif a > 0 and a < 13:\n print("MMYY")\nelif b > 0 and b < 13:\n print("YYMM")\nelse:\n print("NA")\n', 's = input()\na = int(s[0:2])\nb = int(s[2:4])\n\nif a > 0 and a < 13 and ...
['Wrong Answer', 'Accepted']
['s394014498', 's752297305']
[2940.0, 2940.0]
[18.0, 17.0]
[228, 214]
p03042
u101574948
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()\nformer,latter=int(s[:2]),int(s[2:])\n\n\ndef decide(x):\n if x==0 or 13<=x<=99:\n return 0 \n elif 1<=x<=12:\n return 1 \nf=decide(former)\nl=decide(latter)\nprint(f,l)\nif f==0 and l==1:\n print('YYMM')\nelif f==1 and l==0:\n print('MMYY')\nelif f==0 and l==0:\n print('NA')\...
['Wrong Answer', 'Accepted']
['s311936710', 's997545073']
[3064.0, 3064.0]
[17.0, 17.0]
[430, 419]
p03042
u106181248
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:])\n\nif a == 0 and b == 0\n print("NA")\nelif a > 12 and b <= 12:\n print("YYMM")\nelif a <= 12 and b > 12:\n print("MMYY")\nelif a <= 12 and b <= 12: \n print("AMBIGUOUS")\nelse:\n print("NA") ', 's = input()\n\na = int(s[:2])\nb = int(s[2:])\n\nprint(a,b)\n\nif a ==...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s203930309', 's721817101', 's132069140']
[2940.0, 3060.0, 3064.0]
[17.0, 17.0, 17.0]
[230, 199, 260]
p03042
u109436774
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:])\ng = ""\nif 1<= s1 <=12 and 1<= s2 <= 12:\n g = "AMBIGUOUS"\n \nif 0<= s1 <=99 and 1<= s2 <= 12:\n g = "YYMM"\n \nif 1<= s1 <=12 and 0<= s2 <= 99:\n g = "MMYY"\n \nelse:\n g = "NA"', 's=(input())\ns1=int(s[:2])\ns2=int(s[2:])\n \nif 1<= s1 <=12 and 1<= s2 <= 12:\n...
['Wrong Answer', 'Accepted']
['s503344487', 's721671297']
[3060.0, 3060.0]
[18.0, 16.0]
[220, 231]
p03042
u110580875
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[:2]\naf=s[2:]\n\nif s=="0000":\n print("NA")\n\nelif int(be)<=12 and int(af)<=12 and be!="00" and af!=="00":\n print("AMBIGUOUS")\n\nelif int(af)<=12:\n if af=="00":\n print("NA")\n else:\n print("YYMM")\n \nelif int(be)<=12:\n if be=="00":\n print("NA")\n else:\n print("MMYY")\n ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s382621803', 's962691905', 's745528428']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[318, 335, 265]
p03042
u112247039
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, s2 = s[:2],s[2:]\nif s1>'12' and s2>'12':\n print('NA')\nelif s1<='12' and s2<='12':\n if s1 == '00' and s2!='00':\n print('YYMM')\n elif s2 == '00' and s1!='00':\n print('MMYY')\n elif s1 =='00' and s2 =='00':\n print('NA')\n else :\n print('AMBIGUOUS')\nel...
['Wrong Answer', 'Accepted']
['s801848709', 's676308434']
[8996.0, 9036.0]
[27.0, 26.0]
[467, 465]
p03042
u115284827
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[:2])\ns2 = int(S[2:])\n\nprint(s1, s2)\n\nif(s1 > 32):\n print('YYMM')\nelif(s2 > 32):\n print('MMYY')\nelse:\n print('AMBIGUOUS')", "S = input()\n\ns1 = int(S[:2])\ns2 = int(S[2:])\n\nprint(s1, s2)\n\nif(s1 <= 12 and s2 <= 12 and s1 is not 0 and s2 is not 0):\n print('AMBIGUOUS'...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s746358363', 's908862287', 's531328426']
[3060.0, 3064.0, 3064.0]
[17.0, 17.0, 17.0]
[153, 288, 399]
p03042
u116233709
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 a>=13 and b>=1 and b<=12:\n print("YYMM")\nelif a==0 and b>=1 and b<=12:\n print("YYMM") \nelif a>=1 and a<=12 and b>=13:\n print("MMYY")\nelif a>=1 and a<=12 and b==0:\n print("MMYY")\nelif a>=1 and a<=12 b>=1 and b<=12:\n print("AMBIGUOUS")\nelse:\n print("NA")\n',...
['Runtime Error', 'Runtime Error', 'Accepted']
['s198872490', 's819648950', 's963260692']
[2940.0, 2940.0, 3064.0]
[17.0, 18.0, 17.0]
[300, 214, 312]
p03042
u117193815
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[0])*10)+int(a[1]),(int(a[2])*10)+int(a[3])]\n\nif s[1]==0: and s[0]>=13:\n print("NA")\nelif s[0]>=13 and s[1]>=13:\n print("NA")\nelif 1<=s[0]<=12 and 1<=s[1]<=12:\n print("AMBIGUOUS")\nelif s[0]==0 or s[0]>=13 and 1<=s[1]<=12:\n print("YYMM")\nelif 1<=s[0]<=12 and s[1]==0 or s[1]>=13:\n p...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s132085656', 's925602688', 's966693322']
[2940.0, 3064.0, 3064.0]
[17.0, 17.0, 18.0]
[318, 328, 428]
p03042
u118147328
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\nmae = int(S[:2])\nato = int(S[2:])\n\nif mae <= 12 and ato <= 12:\n print("AMBIGUOUS")\nelif mae > 12 and ato <= 12 and ato == "00":\n print("YYMM")\nelif mae <= 12 and ato > 12 and mae == "00":\n print("MMYY")\nelse: \n print("NA")', "S = input()\n#print(S)\n\nmae = int(S[:2])\nato = int(S...
['Wrong Answer', 'Accepted']
['s980425717', 's252610384']
[3060.0, 3064.0]
[18.0, 17.0]
[247, 330]
p03042
u118346028
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[0:1]\ns2 = s[2:3]\n\ni1 = int(s1)\ni2 = int(s2)\n\nif i1 = 0 or i2 = 0: res =NA\nif i1 <=12:\n\tif i2 <= 12:\n\t\tres = "AMBIGUOUS"\n else:\n \tres = "MMYY"\nelif 12 < i1:\n \tif i2 <= 12:\n \tres = "YYMM"\n else:\n \tres = NA\n \nprint(res)', 's = input()\ns1 = s[0:2]...
['Runtime Error', 'Accepted']
['s845310787', 's224813035']
[2940.0, 2940.0]
[17.0, 17.0]
[264, 229]
p03042
u123745130
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()\na=x[:2]\nb=x[2:]\nans_lst=[]\nfor y in [a,b]:\n\tif "00"<y<"13":\n \t\tans_lst.append(True)\n else:ans_lst.append(False)\nif all(ans_lst):\n print("AMBIGUOUS")\nelif not any(ans_lst):\n print("NA")\nelif ans_lst[0] and ans_lst[1]==False:\n\tprint("MMYY")\nelif ans_lst[0]==False and ans_lst[1]:\n\...
['Runtime Error', 'Accepted']
['s152894119', 's590504684']
[2940.0, 3060.0]
[17.0, 17.0]
[312, 308]
p03042
u127499732
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,b=int(s[:2]),int(s[2:])\nprint(a,b)\nif (a>12 and b>12) or min(a,b)==0 :\n print("NA")\nelif a>12 and b<12:\n print("YYMM")\nelif a<12 and b>12:\n print("MMYY")\nelse:\n print("AMBIGUOUS")', 's=str(input())\na,b=int(s[:2]),int(s[2:])\nf,g= 1<=a and a<=12, 1<=b and b<=12\nif f and g:\n print("AM...
['Wrong Answer', 'Accepted']
['s679953613', 's869138723']
[3060.0, 3060.0]
[18.0, 17.0]
[200, 177]
p03042
u129978636
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())\nu=[int(s[0]+s[1]),int(s[2]+s[3])]\nif(u[0]<=12):\n m1=1\n if(u[1]<=12):\n m2=1\n else:\n m2=0\nelse:\n m1=0\n if(u[1]<=12): m2=1 ...
['Runtime Error', 'Accepted']
['s428052776', 's790667068']
[3060.0, 3064.0]
[18.0, 18.0]
[690, 536]
p03042
u131443777
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 Check_Year(year):\n if str(year).isdecimal() :\n return 1\n else:\n return 0\n\ndef Check_Month(month):\n if 0 < month < 12:\n return 1\n else:\n return 0\n\ninput_data = list(input())\nhead_chrs = int(input_data[0] + input_data[1])\ntail_chrs = int(input_data[2] + input_da...
['Wrong Answer', 'Accepted']
['s155851794', 's206494278']
[3064.0, 3064.0]
[17.0, 17.0]
[742, 808]
p03042
u132892633
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:])\nif a > 12 and b > 12:\n print('NA')\nelif a \nelif a > 12 and b <= 12:\n print('YYMM')\nelif a <= 12 and b > 12:\n print('MMYY')\nelse:\n print('AMBIGUOUS')", "n = input()\na = int(n[0:2])\nb = int(n[2:])\nif 1 <= a <= 12 and 1 <= b <= 12:\n\tprint('AMBIGUOUS')\nelif ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s876976451', 's893533339', 's085207177']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[195, 205, 182]
p03042
u133936772
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\nl = 0<int(s[:2])<13\nr = 0<int(s[2:])<13\n\nif l = 1:\n print('AMBIGUOUS' if r = 1 else 'MMYY')\nelse:\n print('YYMM' if r = 1 else 'NA')", "s=input()\nprint(['NA','YYMM','MMYY','AMBIGUOUS'][(0<int(s[:2])<13)*2+(0<int(s[2:])<13)])"]
['Runtime Error', 'Accepted']
['s946249440', 's226056592']
[2940.0, 2940.0]
[17.0, 17.0]
[146, 88]
p03042
u143212659
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...
['# #!/usr/bin/env python3\n# # -*- coding: utf-8 -*-\n\n\ndef main():\n S = input()\n\n first = int(S[:2])\n second = int(S[2:])\n\n if first == 0 or second == 0:\n print(\'NA\')\n elif first > 0 and second > 0:\n print(\'NA\')\n elif first > 12 and second <= 12:\n print(\'YYMM\'...
['Wrong Answer', 'Accepted']
['s670163519', 's053122543']
[3060.0, 3060.0]
[17.0, 21.0]
[436, 369]
p03042
u143492911
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=int(s[:2])\nmonth=int(s[2:])\njudge_YYMM=False\njudge_MMYY=False\njudge_YYMM==True if 1<=month<=12 else judge_YYMM==False\njudge_MMYY==True if 1<=year<=12 else judge_MMYY==False\nif judge_YYMM:\n if judge_MMYY:\n print("AMBIGUOUS")\n else:\n print("YYMM")\ne...
['Wrong Answer', 'Accepted']
['s404541512', 's845023464']
[3064.0, 2940.0]
[17.0, 17.0]
[405, 197]
p03042
u146575240
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\nS = int(input())\n\nA = S // 100\nB = S - (A* 100)\n\nif 1 <= A <=12:\n if 13 <= B <=99 or B == 0:\n print(\'YYMM\')\n else : #1 <= B <= 12\n print(\'AMBIGUOUS\')\nelif 1 <= B <= 12:\n if 13 <= A <=99 or A == 0:\n print(\'MMYY\')\n else : #1 <= B <= 12\n print(\...
['Wrong Answer', 'Accepted']
['s289158314', 's890640077']
[3060.0, 2940.0]
[17.0, 17.0]
[340, 343]
p03042
u155774139
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 determin_format(A, B):\n if 0 <= A <= 12 and 0 <= B <= 12:\n return "AMBIGUOUS"\n \n elif 0 < A <= 12:\n return "MMYY"\n \n elif 0 < B <= 12:\n return "YYMM"\n \n else: \n return "NA"\n\nS = input()\n\nA = int(S[:2])\nB = int(S[2:])\n\ndetermin_format(A,B)', 'def ...
['Wrong Answer', 'Accepted']
['s661257537', 's787965467']
[2940.0, 3060.0]
[17.0, 17.0]
[292, 321]
p03042
u156383602
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])<=12 and 0<int(s[2:])<=12:\n print("AMBIGUOUS")\nelif 0<int(s[:2])<=12:\n print("YYMM")\nelif 0<int(s[2:])<=12:\n print("MMYY")\nelse:\n print("NA")', 's=input()\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<...
['Wrong Answer', 'Accepted']
['s814035515', 's798244664']
[2940.0, 3060.0]
[18.0, 17.0]
[178, 178]
p03042
u159281848
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...
['inp=input()\nformer=int(inp[0]+inp[1])\nlatter=int(inp[2]+inp[3])\n\nif 0=< former <=12 and 0=< latter <=12:\n\tprint("AMBIGUOUS")\nelif 0=< former <=12 and 12=< latter:\n\tprint("MMYY")\nelif 0=< latter <=12 and 12=< former:\n\tprint("YYMM")\n\nelse:\n\tprint("NA")', 'former=int(inp[0]+inp[1])\nlatter=int(inp[2]+inp...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s127119939', 's370138299', 's964863030', 's664665527']
[2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[250, 238, 248, 215]
p03042
u166727624
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 = S[:2]\nB = S[2:]\n\nF_m = 0<int(F)<13\nF_y = 0<=int(F)<100\nB_m = 0<int(B)<13\nB_y = 0<=int(B)<100\nYM = F_y + B_m\nMY = B_y + F_m\nif YM==2 & MY==2:\n print("AMBIGUOUS")\nelif YM==2:\n print(\'YM\')\nelif MY==2:\n print(\'MY\')\nelse:\n print(\'NA\')', 'S= input()\nF = S[:2]\nB = S[2:]\n\n...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s350487934', 's955030178', 's974858404']
[3064.0, 3064.0, 3064.0]
[17.0, 17.0, 17.0]
[255, 254, 260]
p03042
u167273718
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()\nnum1 = S[:2]\nnum2 = S[2:]\nif 0 < int(num1) <= 12 and 0 < int(num2) <= 12:\n print("AMBIGUOUS")\nelif int(num1) == 0 and 12 < int(num1) <= 99 and 0 < int(num2) <= 12:\n print("YYMM")\nelif 0 < int(num1) <= 12 and 12 < int(num2) <= 31:\n print("MMYY")\nelif int(num1) > 12 and int(num2) > 12:\n ...
['Wrong Answer', 'Accepted']
['s159843558', 's503118319']
[3064.0, 3060.0]
[17.0, 17.0]
[343, 268]
p03042
u169138653
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()\nsf=int(s[:2])\nsl=int(s[2:4])\nif sf>=13 or sl<=12 and sl>0:\n print('YYMM')\nelif 12>=sf>0 and sl==0:\n print('MMYY')\nelif sf>12 and sl=0 or sf=0 and sl>12:\n print('AMBIGUOUS')\nelse:\n print('NA')", "s=input()\nsf=int(s[:2])\nsl=int(s[2:4])\nif sf>=13 and 13>sl>0 or sf==0 and 13>sl>0:\n print('YYM...
['Runtime Error', 'Accepted']
['s559902636', 's302131415']
[2940.0, 3060.0]
[17.0, 17.0]
[205, 252]
p03042
u175590965
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 and a <= 12 and 1 <= b and b <=12:\n print("AMBIGUOUS")\nelif 1 <= a <=\u300012 and (12 < b or b < 1):\n print("MMYY")\nelif (12 < a or a < 1) and 1 <= b <= 12:\n print("YYMM")\nelse:\n print("NA")', 's = input()\na = int(s[:2])\nb = int(s[2:])\n\ni...
['Runtime Error', 'Accepted']
['s296242199', 's380492090']
[2940.0, 9128.0]
[17.0, 26.0]
[252, 248]
p03042
u177645323
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()\nans = ""\na = int(s[0]+s[1])\nb = int(s[2]+s[3])\n\nif a == 0 and b == 0:\n ans = "NA"\nelif a > 12 and b == 0:\n ans = "NA"\nelif a == 0 and b > 12:\n ans = "NA"\nelif a > 12 and b > 12:\n ans = "NA"\nelif a < 13 and b < 13 and a != 0 and b != 0:\n ans = "AMBIGUOUS"\nelse:\n ans = s[2]...
['Wrong Answer', 'Accepted']
['s961684332', 's254841438']
[3060.0, 3064.0]
[17.0, 17.0]
[330, 440]
p03042
u182047166
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\n\ndef input():\n return sys.stdin.readline()[:-1]\n\n\n# N = int(input())\n# A = [int(x) for x in input().split()]\n# a, b, c = map(int, input().split())\n# name1 = str(input())\n# alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}\n\n\ns = int(input())\nYY = s // 100\nMM = s % 100\nprint(YY, MM)\nif 1 ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s090212364', 's941171383', 's563034892']
[3060.0, 3064.0, 3060.0]
[17.0, 17.0, 17.0]
[497, 532, 483]
p03042
u188138642
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:])\ndays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]\nif a<=12 and b<=12:\n print('AMBIGUOUS')\nelif 0<a<=12 and 0<b<=days[a]:\n print('YYMM')\nelif 0<b<=12 and 0<a<=days[b]:\n print('MMYY')\nelse:\n print('NA')\n", "s = input()\na = int(s[:2])\nb = int(s[2:...
['Runtime Error', 'Runtime Error', 'Accepted']
['s250689041', 's316114725', 's352687520']
[9084.0, 9028.0, 9064.0]
[29.0, 24.0, 23.0]
[261, 254, 195]
p03042
u188827677
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 0 < a <= 12 and 0 < b <= 12:\n print("AMBIGUOUS")\nelif a > 12 or a != 0 and b > 12 or b == 0:\n print("NA")\nelif a > 12 and 0 < b <= 12:\n print("YYMM")\nelif 0 < a <= 12 and b > 12:\n print("MMYY")', 's = input()\n\na = int(s[:2])\nb = int(s[2:])\n\nif a <= 12 ...
['Wrong Answer', 'Accepted']
['s077145626', 's815513610']
[3060.0, 2940.0]
[17.0, 17.0]
[243, 241]
p03042
u189023301
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 a = int(s[:2])\n if a == 0 or a > 12:\n x = "YY"\n else:\n x = "MM"\n b = int(s[2:])\n if b == 0 or b > 12:\n y = "YY"\n else:\n y = "MM"\n if x + y == "YYYY":\n print("NA")\n elif x + y == "MMMM":\n print("AMBIGUOUS")\n...
['Wrong Answer', 'Accepted']
['s694695455', 's992387500']
[8924.0, 9100.0]
[25.0, 24.0]
[344, 162]
p03042
u190332602
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:])\n \nif b > 12 and c > 12:\n print("NA")\nelif b > 12 or b == 0: \n if c < 1:\n \tprint("NA")\n else:\n\tprint("YYMM")\nelif c > 12 or c == 0: \n if b < 1:\n print("NA")\n else:\n print("MMYY")\nelse:\n print("AMBIGUOUS")', 'a = input()\nb = int(a[:2])\nc = int(...
['Runtime Error', 'Accepted']
['s481498833', 's287728924']
[2940.0, 3060.0]
[17.0, 17.0]
[274, 278]
p03042
u191874006
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])*10 + int(n[1])\nb = int(n[2])*10 + int(n[3])\n\ns = 0\nt = 0\n\nif a > 12 or a == 0:\n s = 1\nelif b > 12 or b == 0:\n t = 1\n\nif s == 0 and t == 0:\n print("AMBIGUOUS")\nelif s == 1 and t == 0:\n print("MMYY")\nelif s == 0 and t == 1:\n print("YYMM")\nelse:\n print("NA")', 'n = inpu...
['Wrong Answer', 'Accepted']
['s753890245', 's464200267']
[3064.0, 3064.0]
[17.0, 17.0]
[287, 306]
p03042
u192433528
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...
['YM=0\nMY=0\nF=int(X[0] + X[1])\nB=int(X[2] + X[3])\nif 0<F<=12 :\n MY += 1\nelse:\n pass\n\nif 0<B<=12 :\n YM += 1\nelse:\n pass\n\nif YM == 1 and MY == 1 :\n print("AMBIGUOUS")\nelif YM == 1 and MY == 0 :\n print("YYMM")\nelif YM == 0 and MY == 1 :\n print("MMYY")\nelse :\n print("NA")', 'X=i...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s126248050', 's526781414', 's890031851']
[3064.0, 3064.0, 3064.0]
[17.0, 18.0, 17.0]
[290, 314, 300]
p03042
u200527996
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 S[:2] > 12:\n if 13 > S[2:] > 0\n print("YYMM")\n else:\n print("NA")\nelif 0 < S[:2] < 13:\n if S[2:] > 12:\n print("MMYY")\n elif 0 < S[2:] < 13:\n print("AMBIGUOUS")\n else:\n print("YYMM")\nelse:#00xx\n if 0 < S[2:] <13:\n print("YYM...
['Runtime Error', 'Accepted']
['s425681242', 's474845180']
[2940.0, 3064.0]
[17.0, 17.0]
[347, 372]
p03042
u201387466
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\ninput=sys.stdin.readline\nsys.setrecursionlimit(10 ** 7)\nfrom itertools import accumulate\nfrom itertools import permutations\nfrom itertools import combinations\nfrom collections import defaultdict\nfrom collections import Counter\nimport fractions\nimport math\nfrom collections import deque\nfrom bisec...
['Runtime Error', 'Accepted']
['s339766916', 's908729578']
[2940.0, 13672.0]
[17.0, 159.0]
[1096, 1080]
p03042
u201928947
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,list(input()))\na = s[0]*10+s[1]\nb = s[2]*10+s[3]\nlst = [1,2,3,4,5,6,7,8,9,10,11,12]\nif a in lst:\n if b in lst:\n print('AMBIGUOUS')\n else:\n print('MMYY')\nelse:\n if b in lst:\n print('YYMM')\n else:\n print('NA')", "s = list(map(int,list(input())))\na =...
['Runtime Error', 'Accepted']
['s128021832', 's983517934']
[2940.0, 3060.0]
[17.0, 17.0]
[264, 265]
p03042
u204163177
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()\nym=0\nmy=0\nprint(s[0:2])\nprint(s[2:4])\nif 0<int(s[0:2]):\n ym=1\n if int(s[0:2])<=12:\n my=1\nif 0<int(s[2:4]):\n my+=1\n if int(s[2:4])<=12:\n ym+=1\n \nif ym==2 and my==2:\n print("AMBIGUOUS") \nelif ym==2:\n print("YYMM")\nelif my ==2:\n print("MMYY")\nel...
['Wrong Answer', 'Accepted']
['s054684679', 's229119366']
[3064.0, 3064.0]
[17.0, 18.0]
[317, 300]
p03042
u207464563
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(s):\n if int(s[0]) == 0:\n if int(s[0]) > 0:\n return 1\n else:\n return 0\n elif int(s[0]) == 1:\n if int(s[1]) <=2:\n return 1\n else:\n return 0\n else:\n return 0\n\nS = input()\ntmp = list(S)\nfirst = \'\'.join([tmp...
['Wrong Answer', 'Accepted']
['s391213732', 's898156464']
[3064.0, 3064.0]
[17.0, 17.0]
[687, 687]
p03042
u215743476
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[:1]) <= 12 and 0 < int(s[2:]) <= 12:\n print('AMBIGUOUS')\nelif 0 < int(s[:1]) <= 12:\n print('MMYY')\nelif 0 < int(s[2:]) <= 12:\n print('YYMM')\nelse:\n print('NA')", "s = input()\nif 0 < int(s[:2]) <= 12 and 0 < int(s[2:]) <= 12:\n print('AMBIGUOUS')\nelif 0 < int(s[:2]) <=...
['Wrong Answer', 'Accepted']
['s970110728', 's255176789']
[3060.0, 3060.0]
[17.0, 17.0]
[196, 196]
p03042
u216888678
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])\nif (a==0 a>12) and 0<b<=12:\n print("YYMM")\nelif 0<a<=12 and 0<b<=12:\n print("AMBIGUOUS")\nelif 0<a<=12 and b>12:\n print("MMYY")\nelse:\n print("NA")', 'S=input()\na=int(S[0]+S[1])\nb=int(S[2]+S[3])\nif (a==0 or a>12) and 0<b<=12:\n print("YYMM")\nelif ...
['Runtime Error', 'Accepted']
['s367095161', 's028998536']
[2940.0, 3064.0]
[17.0, 18.0]
[201, 214]
p03042
u221041683
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 13 <= int(s[0:2:]) :\n if 1 <= int(s[2::]) <= 12:\n print('YYMC')\n else:\n print('NA')\nelif 1 <= int(s[0:2:]) <= 12:\n if 13 <= int(s[2::]) or int(s[2::]) == 0 :\n print('MMYY')\n else:\n print('AMBIGUOUS')\nelif int(s[0:2:]) == 0:\n if 1 <= int(s[2::]) <=...
['Wrong Answer', 'Accepted']
['s173182075', 's117621395']
[3064.0, 3064.0]
[17.0, 19.0]
[362, 362]
p03042
u223133214
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\nAA = S[:2]\nBB = S[2:]\na = []\nfor i in range(1, 13):\n if 1 <= i <= 9:\n a.append('0' + str(i))\n else:\n a.append(str(i))\nprint(a)\n\nif not AA in a and not BB in a:\n print('WA')\nelif AA in a and BB in a:\n print('AMBIGUOUS')\nelif AA in a:\n print('MMYY')\nelse:\n ...
['Wrong Answer', 'Accepted']
['s376603920', 's846837221']
[3064.0, 3188.0]
[17.0, 19.0]
[313, 303]
p03042
u223555291
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\na=input()\nb=a[0]+a[1]\nc=a[2]+a[3]\nif int(b)==0 or int(c)==0:\n print('NA')\n sys.exit()\nelse:\n pass\nif int(b)>=13 and int(c)>=13:\n print('NA')\nelif int(b)>=13 and int(c)<13:\n print('MMYY')\nelif int(b)<13 and int(c)>=13:\n print('YYMM')\nelse:\n print('AMBIGUOUS')\n \n \n ", ' \ns=str(...
['Wrong Answer', 'Accepted']
['s855622295', 's098152556']
[3064.0, 2940.0]
[17.0, 18.0]
[285, 185]
p03042
u230416699
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\ns_1 = int(S[0:1])\ns_2 = int(S[2:])\n\nYYMM = False\nMMYY = False\n\nif 1<=s_2<=12:\n YYMM = True\nif 1<=s_1<=12:\n MMYY = True\n \nif YYMM and MMYY:\n print('AMBIGUOUS')\nelif YYMM:\n print('YYMM')\nelif MMYY:\n print('MMYY')\nelse:\n print('NA')", "S = input()\n\ns_1 = int(...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s513652662', 's715044538', 's356879713']
[3064.0, 3064.0, 3064.0]
[17.0, 17.0, 17.0]
[269, 263, 263]
p03042
u230621983
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,e = int(S[:2]),int(S[2:])\nif f==0 or e==0 or (f>12 and e>12):\n print('NA')\nelse:\n if 1<=f<=12 and e>12:\n print('MMYY')\n elif f>12 and 1<=e<=12:\n print('YYMM')\n elif 1<=f<=12, 1<=e<=12\n print('AMBIGUOUS')", "S = input()\nf,e = int(S[:2]),int(S[2:])\nif f==0 of e==0 or (f>12 and e>1...
['Runtime Error', 'Runtime Error', 'Accepted']
['s277195461', 's294175774', 's119979993']
[2940.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0]
[230, 223, 231]
p03042
u231095456
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()\nyy = ["%02d" % i for i in range(100)]\nmm = ["%02d" % i for i in range(1, 13)]\nprint(mm)\nyymm = s[:2] in yy and s[2:] in mm\nmmyy = s[:2] in mm and s[2:] in yy\nprint(["NA","MMYY","YYMM","AMBIGUOUS"][yymm*2+mmyy])\n', 's=input()\nyy = ["%02d" % i for i in range(100)]\nmm = ["%02d" % i for i in range(1, 1...
['Wrong Answer', 'Accepted']
['s921567867', 's255962948']
[8868.0, 8980.0]
[27.0, 27.0]
[221, 211]
p03042
u231615655
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_128b(a, b):\n if 1 <= a & a <= 12:\n if 1 <= b & b <= 12:\n return "AMBIGUOUS"\n else:\n return "MMYY"\n else:\n if 1 <= b & b <= 12:\n return "YYMM"\n else:\n return "NA"\n\ns = input()\ns1 = int(s[0:2])\ns2 = int(s[2:4])\nprint(...
['Wrong Answer', 'Accepted']
['s010354256', 's440983619']
[2940.0, 2940.0]
[17.0, 17.0]
[322, 324]
p03042
u239528020
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...
['#!/usr/bin/env python3\n\ns = str(input())\n\ns[0:2]\n\ns[2:]\n\n\ndef div(a):\n a = int(a)\n if a <= 12 and a >= 1:\n return True\n else:\n return False\n\n\nif div(s[0:2]) and div(s[2:]):\n print("AMBIGUOUS")\nelif not div(s[0:2]) and not div(s[2:]):\n print("NA")\nelif div(s[0:2]):\n ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s242761822', 's811828990', 's832183039']
[3060.0, 3064.0, 3060.0]
[17.0, 17.0, 17.0]
[336, 332, 338]
p03042
u240630407
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 or int(S[2:]) == 0) or (int(S[:2]) > 13 or int(S[2:]) > 13):\n print("NA")\nelif int(S[:2]) < 13 and int(S[2:]) < 13:\n print("AMBIGUOUS")\nelif int(S[:2]) < 13:\n print("MMYY")\nelse:\n print("YYMM")', 'S = input()\n\n# S = str(i).zfill(4)\n# print(S, end=":")\n# ...
['Wrong Answer', 'Accepted']
['s317653594', 's909957445']
[3060.0, 3064.0]
[17.0, 17.0]
[237, 537]
p03042
u241026150
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]) <= 12 :\n if 0 <int(s[2:]) <= 12 :\n print("AMBIGUOUS")\n else:\n print("MMYY")\nelse:\n if 0 < int(s[:2]) <= 12 :\n print("YYMM")\n else:\n print("NA")\n', 's = input()\nif 0 < int(s[:2]) <= 12 :\n if 0 <int(s[2:]) <= 12 :\n print("AMBIGUOUS")\n else:\n print("M...
['Wrong Answer', 'Accepted']
['s937938525', 's619895889']
[2940.0, 2940.0]
[17.0, 17.0]
[190, 189]
p03042
u242870549
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()))\n\nhead = s[:1]\ntail = s[1:]\n\nif head > 12:\n print("YYMM")\nif tail > 12:\n print("MMYY")\nif 0 < head <= 12 and 0 < tail <=12:\n print("AMBIGUOUS")\nif head = 0 or tail = 0:\n print("NA")\nif head > 12 and tail > 12:\n print("NA")\n', 's = input()\n\nhead = int(s[:2])\ntail = int...
['Runtime Error', 'Runtime Error', 'Accepted']
['s230579799', 's584386279', 's656185080']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[255, 205, 207]
p03042
u244836567
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]+a[1])\nc=int(a[2]+a[3])\nif b>12 or b==0:\n if c>12 or c==0:\n print("Na")\n elif 1<=c<=12:\n print("YYMM")\nif c>12 or c==0:\n if b>12 or b==0:\n print("Na")\n elif 1<=b<=12:\n print("MMYY")\nelse:\n print("AMBIGUOUS")', 'a=input(a)\nb=int(a[0]+a[1])\nc=int(a[2]+a[3])\nif 1<=b<...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s201991238', 's552189461', 's653917291']
[9196.0, 9124.0, 9184.0]
[28.0, 21.0, 24.0]
[244, 257, 183]
p03042
u246975555
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[0])*10 + int(s[1])\nl = int(s[2])*10 + int(s[3])\n\nif 1 <= f <= 12 and 1 <= l <= 12:\n print("AMBIGUOUS")\nelif 1 <= f <= 12:\n print("MMYY")\nelif 1 <= l <= 12:\n print("YYMM")\nelse:\n print("NA")\n', 's = [int(i) for i in input()]\nf = s[0]*10 + s[1]\nl = s[2]*10 + s[3]\n\nif 1 <= f <...
['Runtime Error', 'Accepted']
['s200015367', 's022200275']
[2940.0, 3060.0]
[17.0, 17.0]
[218, 213]
p03042
u248670337
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) // 100\nB = int(S) % 100\nif (F <= 12 & F > 0) & (B <= 12 & B > 0):\n print("AMBIGUOUS")\nelif F <= 12 & F > 0:\n print("MMYY")\nelif B <= 12 & B > 0:\n print("YYMM")\nelse:\n print("NA")', 'S = input()\nF = int(S) // 100\nB = int(S) % 100\nprint(F)\nprint(B)\nif (F <= 12 and F > 0) and (B...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s358843237', 's792291550', 's441670941']
[3060.0, 3060.0, 3060.0]
[18.0, 19.0, 18.0]
[205, 233, 215]
p03042
u249987458
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())\nprint(s[:2],s[2:])\nnum = [\'01\',\'02\',\'03\',\'04\',\'05\',\'06\',\'07\',\'08\',\'09\',\'10\',\'11\',\'12\']\nif s[:2] == \'00\' or s[2:] == \'00\':\n print("NA")\nelif s[:2] in num and s[2:] in num:\n print("AMBIGUOUS")\nelif s[:2] in num:\n print("MMYY")\nelif s[2:] in num:\n print(...
['Wrong Answer', 'Accepted']
['s941990574', 's377336257']
[9060.0, 9008.0]
[25.0, 25.0]
[309, 237]
p03042
u251515715
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 = S[0:2]\nll = S[2:4]\nff = int(ff)\nll = int(ll)\nprint(ff)\nprint(ll)\nif 0 < ff <= 12 and 0 < ll <= 12:\n print('AMBIGUOUS')\nelif 0 < ll <= 12:\n print('YYMM')\nelif 0 < ff <= 12:\n print('MMYY')\nelse:\n print('NA')", "s = input()\ns = [int(s[:2]),int(s[2:])] \nif 0<s[0]<13 and 0<s[1]<13:\n ...
['Wrong Answer', 'Accepted']
['s121456722', 's414119069']
[3064.0, 3060.0]
[17.0, 17.0]
[226, 173]
p03042
u257265865
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:])\nif 1<=a<=12 and 1<=b<=12:\n print("AMBIGUOUS")\nelif 1<=a<=12:\n print("MMYY")\nelif 1<=B<=12:\n print("YYMM")\nelse:\n print("NA")\n', 'S=input()\na=int(S[:2])\nb=int(S[2:])\nif 1<=a<=12 and 1<=b<=12:\n print("AMBIGUOUS")\nelif 1<=a<=12:\n print("MMYY")\nelif 1<=b<=12:\n ...
['Runtime Error', 'Accepted']
['s754234949', 's925671206']
[2940.0, 3060.0]
[17.0, 17.0]
[165, 164]
p03042
u266569040
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_1 = S[:2]\ns_2 = S[2:]\n\nif 0 < s_1 < 13 and 0 < s_2 < 13:\n print("AMBIGUOUS")\nelif 0 < s_1 < 13:\n print("MMYY")\nelif 0 < s_2 < 13:\n print("YYMM")\nelse:\n print("NA")', 'S = input()\ns_1 = int(S[:2])\ns_2 = int(S[2:])\n\nif 0 < s_1 < 13 and 0 < s_2 < 13:\n print("AMBIGUOUS")\nelif 0 < s_1 <...
['Runtime Error', 'Accepted']
['s841574942', 's218315606']
[3060.0, 3060.0]
[17.0, 17.0]
[181, 191]
p03042
u268792407
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:])\nif 0<s1<13 and 0<s2<13:\n print("AMBIGUOUS")\nif (12<s1 or s1=0) and 0<s2<13:\n print("YYMM")\nif (12<s2 or s2=0) and 0<s1<13:\n print("MMYY")\nelse:\n print("NA")', 's=input()\ns1=int(s[:2])\ns2=int(s[2:])\nif 0<s1<13 and 0<s2<13:\n print("AMBIGUOUS")\nif (12<s1 or s1==0...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s778325240', 's981384160', 's988244935', 's328031038']
[2940.0, 3060.0, 3064.0, 3060.0]
[17.0, 17.0, 18.0, 17.0]
[198, 200, 217, 204]
p03042
u276229014
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(1234))\npat1 = "YYMM"\npat2 = "MMYY"\npat3 = "AMBIGOUS"\npat4 = "NA"\nmae =int(S[0] + S[1])\nusiro = int(S[2] + S[3])\nprint(mae)\nprint(usiro)\nif mae >= 13:\n if usiro >= 13 or usiro == 0:\n print(pat4)\n else:\n print(pat1)\nelif mae != 0:\n if usiro == 0 or usiro >= 13:\n ...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s094091371', 's365476905', 's550913215', 's704111893', 's828896111', 's901907408', 's664632084']
[3064.0, 3060.0, 3060.0, 3064.0, 3064.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 20.0, 17.0, 17.0]
[435, 207, 202, 413, 435, 210, 217]
p03042
u276250981
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(map(int,input()))\na,b = n[0]+n[1],n[2]+n[3]\nif a==0 or b == 0:\n print("NA")\nelif a<=12 and b<=12:\n print("AMBIGUOUS")\nelif a<=12 and b>12:\n print("MMYY")\nelif a>12 and b<=12:\n print("YYMM")', 'n = list(input())\na,b = int(n[0]+n[1]),int(n[2]+n[3])\nif (a==0 or a>12) and (b==0 or b>12):\n print(...
['Wrong Answer', 'Accepted']
['s829414411', 's058523375']
[3064.0, 3060.0]
[17.0, 17.0]
[202, 235]
p03042
u276686572
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 = False\nMMYY = False\nf = input()\nh1 = f[0] + f[1]\nh2 = f[2] + f[3]\n\nif 1 <= h2 <= 12:\n YYMM = True\nif 1 <= h1 <= 12:\n MMYY = True\n\ndef ret(c1,c2):\n if c1 and c2:\n return "AMBIGUOUS"\n elif c1:\n return "YYMM"\n elif c2:\n return "MMYY"\n else:\n return "NA"\n \nprint(ret(YYMM,MMYY...
['Runtime Error', 'Accepted']
['s114089265', 's999664242']
[9028.0, 9108.0]
[22.0, 24.0]
[299, 309]