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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02993 | u506175293 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['input=list(input())\nif int(input[0])==int(input[1]) or int(input[1])==int(input[2]) or int(input[2])==int(input[3]):\n\u3000print("Bad")\nelse:\n print("Good")', ' input=list(input())\n \n if int(input[0])==int(input[1]) or int(input[1])==int(input[2]) or int(input[2])==int(input[3]):\n print("Bad")\n else... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s001559932', 's758582156', 's438151357'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [153, 175, 155] |
p02993 | u511870776 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['import asyncio\na, b, c, d = map(int, input().split())\nloop = asyncio.get_event_loop()\ni = c if c < d else d\nnum = 0\nglobal num\nloop_was_not_running = not loop.is_running()\nasync def y(q):\n if q % c and q % d:\n num += 1\n \ndef print_hello_world(future):\n if loop_was_not_running:\n loop.stop()\n\n... | ['Runtime Error', 'Accepted'] | ['s005000890', 's856914448'] | [2940.0, 2940.0] | [17.0, 17.0] | [506, 144] |
p02993 | u516554284 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['n=imput()\nif n[i]==n[i+1] for i in range(0,3):\n print("Bad")\nelse:\n print("Good")\n', 'n=input()\nif any(n[i]==n[i+1] for i in range(0,3)):\n print("Bad")\nelse:\n print("Good")\n'] | ['Runtime Error', 'Accepted'] | ['s027529767', 's846969320'] | [2940.0, 2940.0] | [17.0, 17.0] | [88, 93] |
p02993 | u516579758 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["s=input()\nn=''\nresult='Good'\nfor i in s:\n if s==i:\n result='Bad'\n break\n n=i\nprint(result)", "s=input()\nn=''\nresult='Good'\nfor i in s:\n if s==n:\n result='Bad'\n break\n n=i\nprint(result)", "s=input()\nfor i in range(3):\n if s[i]==s[i+1]:\n print('Bad')\... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s650102612', 's675631421', 's222169056'] | [2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0] | [110, 110, 108] |
p02993 | u519604525 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['N, L=map(int, input().split())\nif L>0:\n A=(N-1)*L+N*(N-1)/2\nelif N+L<=0:\n A=(N-1)*L+(N-1)*(N-2)/2\nelse:\n A=(L*2+N-1)*N/2\nprint(int(A))', "S=int(input())\na=int(S/1000)\nb=int((S-a*1000)/100)\nc=int((S-a*1000-b*100)/10)\nd=int(S-a*1000-b*100-c*10)\nif a==b or b==c or c==d:\n print('Bad')\nelse:\n ... | ['Runtime Error', 'Accepted'] | ['s576008624', 's957828821'] | [3060.0, 3060.0] | [17.0, 17.0] | [143, 170] |
p02993 | u521602455 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['S = input()\nif S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:\n print("Good")\nelse:\n print(\'Bad\')', 'S = input()\nif S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:\n print("Bad")\nelse:\n print(\'Good\')'] | ['Wrong Answer', 'Accepted'] | ['s701472590', 's391733400'] | [2940.0, 2940.0] | [17.0, 17.0] | [101, 101] |
p02993 | u524765246 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['w=input()\n\ncnt=0\nfor i in w:\n if w[cnt] == w[cnt+1]:\n print("Bad")\n else:\n print("Good")\n cnt += 1\n\n', 'w=input()\n\ncnt=0\nfor i in w:\n if cnt+1 < len(w):\n if w[cnt] == w[cnt+1]:\n print("Bad")\n exit()\n cnt += 1\n\nprint("Good")\n'] | ['Runtime Error', 'Accepted'] | ['s483017720', 's740864391'] | [2940.0, 2940.0] | [17.0, 17.0] | [109, 155] |
p02993 | u525090128 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['flag = True\nS = input()\nfor i in range(1,len(S)):\n if S[i] == S[i-1]:\n flag = False\n\nif flag:\n print("Good"):\nelse:\n print("Bad")\n \n ', 'flag = True\nS = input()\nfor i in range(1,len(S)):\n if S[i] == S[i-1]:\n flag = False\n\nif flag:\n print("Good")\nelse:\n print("Bad")\n \n ... | ['Runtime Error', 'Accepted'] | ['s418639562', 's361052287'] | [2940.0, 2940.0] | [17.0, 17.0] | [149, 148] |
p02993 | u527977536 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['from fractions import gcd\nA,B,C,D = map(int, input().split())\n\nA =A-1\nCD = int(C * D / gcd(C, D))\nnum_A_C = int(A / C)\nnum_A_D = int(A / D)\nnum_A_CD = int(A / CD)\nnum_B_C = int(B / C)\nnum_B_D = int(B / D)\nnum_B_CD = int(B / CD)\n\nnum_C =num_B_C - num_A_C\nnum_D =num_B_D - num_A_D\nnum_CD =num_B_CD - num_A_... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s458617055', 's943305227', 's255421768'] | [5076.0, 2940.0, 3316.0] | [35.0, 17.0, 22.0] | [354, 142, 154] |
p02993 | u527993431 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['A = str(input())\ncount = 0\nfor i in range(1,4):\n\tif A[-i]==A[-i-1]:\n\t\tcount += 1\nif count == 0:\n\tprint("good")\nelse:\n\tprint("bad")', 'A = str(input())\ncount = 0\nfor i in range(1,4):\n\tif A[-i]==A[-i-1]:\n\t\tcount += 1\nif count == 0:\n\tprint("Good")\nelse:\n\tprint("Bad")'] | ['Wrong Answer', 'Accepted'] | ['s814066215', 's043719295'] | [2940.0, 2940.0] | [17.0, 18.0] | [130, 130] |
p02993 | u531258707 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['#import collections\nSin = input()\n#print(Sin)\nS = [int(x) for x in list(str(Sin))]\n#print(S)\ntest = 0\nfor i in range(0,3):\n print(i)\n if S[i+1] == S[i]:\n print("Bad")\n test = 1\n \nif test !=1:\n print("Good")\n', '\t\nimport sys\nSin = input()\n#print(Sin)\nS = [int(x) for x i... | ['Wrong Answer', 'Accepted'] | ['s541431178', 's742298654'] | [2940.0, 2940.0] | [17.0, 17.0] | [237, 250] |
p02993 | u534308356 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['s = input()\nans = "Good"\nfor i in range(3)\n\tif s[i] == s[i+1]:\n\t\tans = "Bad"\n \nprint(ans)', 's = input()\nans = "Good"\nfor i in range(3)\n\tif s[i] == s[i+1]:\n \tans = "Bad"\n\nprint(ans)', 's = input()\nans = "Good"\nfor i in range(3):\n if s[i] == s[i+1]:\n ans = "Bad"\n \nprint(ans)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s020701184', 's833490514', 's525605191'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [89, 91, 100] |
p02993 | u536685012 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["s = input()\n\nans = 0\n\nfor i in [0, 1, 2]:\n if s[i] == s[i + 1]:\n ans += 1\n else:\n \nif ans >= 1:\n print('Bad')\nelse:\n print('Good')\n", "s = input()\n\nans = 0\n\nfor i in [0, 1, 2]:\n if s[i] == s[i + 1]:\n ans += 1\n \nif ans >= 1:\n print('Bad')\nelse:\n print('Good')\n"] | ['Runtime Error', 'Accepted'] | ['s529658474', 's113132029'] | [2940.0, 2940.0] | [18.0, 17.0] | [139, 133] |
p02993 | u537752005 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['a,b,c,d = sorted(input())\nprint (Bad)\n', 'a,b,c,d = input()\nif a==b or b==c or c==d:\n print ("Bad")\nelse:\n print ("Good") \n'] | ['Runtime Error', 'Accepted'] | ['s739531616', 's746440482'] | [2940.0, 2940.0] | [17.0, 17.0] | [38, 90] |
p02993 | u537782349 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['a = input()\nfor i in range(1, len(a)):\n if a[i] == a[i-1]:\n print("Bad")\nprint("Good")', 'a = input()\nfor i in range(1, len(a)):\n if a[i] == a[i-1]:\n print("Bad")\n exit()\nprint("Good")\n'] | ['Wrong Answer', 'Accepted'] | ['s977759675', 's115442904'] | [2940.0, 3064.0] | [17.0, 18.0] | [96, 112] |
p02993 | u538956308 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['import math\n\ndef lcm(x, y):\n return (x * y)//math.gcd(x, y)\n\nA,B,C,D = map(int,input().split())\nE = lcm(C, D)\nsample = B-A\nans = sample - ((B//C-A//C) + (B//D-A//D)-(B//E-A//E))\nprint(ans)', 'S = input()\nif S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:\n print("Bad")\nelse:\n print("Good")\n'] | ['Runtime Error', 'Accepted'] | ['s853780352', 's362282787'] | [3064.0, 2940.0] | [17.0, 17.0] | [191, 102] |
p02993 | u542541293 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['# -*- coding: utf-8 -*-\nS = map(int, input().split())\n\ns = str(S)\n\nif (s[0] == s[1]) or (s[1] == s[2]) or (s[2] == s[3]):\n print("Bad")\nelse:\n print("Good")', '# -*- coding: utf-8 -*-\nS = input().split()\n \ns = list(S[0])\n\nif (s[0] == s[1]) or (s[1] == s[2]) or (s[2] == s[3]):\n print("Bad")\nelse:\n ... | ['Wrong Answer', 'Accepted'] | ['s042335373', 's873194789'] | [2940.0, 3064.0] | [17.0, 17.0] | [158, 153] |
p02993 | u543173218 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['S = input()\nif S[0] != S[1]!= S[2] != S[3]:\n print("Bad")\nelse:\n print("Good")', 'S = input()\nif S[0] != S[1]!= S[2] != S[3]:\n print("Good")\nelse:\n print("Bad")'] | ['Wrong Answer', 'Accepted'] | ['s008156943', 's545530779'] | [8980.0, 9032.0] | [26.0, 31.0] | [80, 80] |
p02993 | u547608423 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["S=input()\n\nfor i in range(3):\n if S[i]=S[i+1]:\nprint('Bad')\n\n else:\nprint('Good')", "S=input()\n\nif S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:\n print ('Bad')\n\nelse:\n print ('Good')"] | ['Runtime Error', 'Accepted'] | ['s125845001', 's806113963'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 99] |
p02993 | u547764399 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['S = list(input(""))\ncount = 0\nfor i in range(1,4):\n if S[i] == S[i - 1]:\n count += 1\n if len(S) == 4:\n if count >= 1:\n print("Bad")\n break\n else:\n print("Good")\n break\n else:\n break', 'S = list(input(""))\ncount = 0\n\nfor i... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s245958882', 's250596243', 's417570967', 's823781641', 's844292981', 's748334965'] | [3060.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [262, 270, 278, 246, 249, 181] |
p02993 | u548545174 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['import re\nS = input()\n\npat = r"(\\d)\\1"\n\nres = re.search(pat, S)\n\nprint(res)\n\nif res:\n print("Bad")\nelse:\n print("Good")', 'import re\nS = input()\n\npat = r"(\\d)\\1"\n\nres = re.search(pat, S)\n\n\nif res:\n print("Bad")\nelse:\n print("Good")'] | ['Wrong Answer', 'Accepted'] | ['s857314638', 's406370568'] | [3188.0, 3188.0] | [19.0, 19.0] | [125, 114] |
p02993 | u551901148 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['s = list(map(int, str(input()).split()))\n\npre = None\ncheck = False\n\nfor i in s:\n if pre != None:\n if pre == i:\n print("Bad")\n check = True\n break\n pre = i\n \nif check:\n print("Good")\n ', 'n, l = input().split()\n\ndef apple_aji(i):\n return int(l) + int(i) - 1\n\ndef apple_pie(... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s424067574', 's956869446', 's087226627'] | [2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [208, 338, 207] |
p02993 | u554003615 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['n=int(input())\nl=[]\nr=[]\nfor i in range(n):\n a,b=map(int,input().split())\n r.append(a)\n l.append(b)\nm=max(l)\ns=sum(r)\nif s<m:\n print("Yes")\nelse:\n print("No")', 's=str(input())\nc=0\nfor i in range(len(s)-1):\n if s[i]==s[i+1]:\n c+=1\nif c:\n print("Bad")\nelse:\n print("Go... | ['Runtime Error', 'Accepted'] | ['s979600014', 's156660536'] | [3060.0, 2940.0] | [17.0, 17.0] | [173, 125] |
p02993 | u555947166 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["S = input()\nfor i in range(1, len(S)):\n if S[i - 1] == S[i]:\n break\n print('Bad')\nelse:\n print('Good')", "S = input()\nfor i in range(1, len(S)):\n if S[i - 1] == S[i]:\n print('Bad')\n break\nelse:\n print('Good')\n"] | ['Wrong Answer', 'Accepted'] | ['s601678655', 's328478924'] | [2940.0, 2940.0] | [17.0, 17.0] | [122, 123] |
p02993 | u556225812 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["lst = list(int(input()))\nflag = 0\nfor i in range(3):\n if lst[i] == lst[i+1]:\n flag += 1\nif flag == 0:\n print('Good')\nelse:\n print('Bad')", "lst = list(str(input()))\nflag = 0\nfor i in range(3):\n if lst[i] == lst[i+1]:\n flag += 1\nif flag == 0:\n print('Good')\nelse:\n print(... | ['Runtime Error', 'Accepted'] | ['s293071457', 's417139926'] | [3060.0, 2940.0] | [17.0, 20.0] | [152, 152] |
p02993 | u556371693 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['s=input()\nif s[0]==s[1] or s[1]==s[2] or s[2]==s[3] or s[3]==s[4]:\n print("good")\nelse:\n print("bad")', 's = list(input())\nif s//1000==s//100-s//1000*10:\n print("good")\n if s//100-s//1000*10==s//10-s//100*10+s//1000*100:\n print("good")\n if s//10-s//100*10+s//1000*100==s-s//10*10+s//... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s075925184', 's504167192', 's676817915', 's924353445'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 18.0] | [107, 240, 107, 93] |
p02993 | u556477263 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["s = input()\n\nn = len(s)\ni = 1\nwhile i != n:\n if s[i] == s[i - 1]:\n print('bad')\n exit()\n i += 1\nprint('Good')", "s = input()\n\nn = len(s) - 1\ni = 1\nwhile i != n:\n if s[i] == s[i - 1]:\n print('bad')\n exit()\n i += 1\nprint('Good')", 's = input()\nif s[0] == s[1] o... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s562448393', 's786283242', 's466515425'] | [9032.0, 9052.0, 8888.0] | [31.0, 27.0, 24.0] | [129, 133, 95] |
p02993 | u556594202 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['s=input()\nprint("Good" if len(s)=len(set(s)) else "Bad")', 's=input()\n\nflag=True\nfor i in range(len(s)-1):\n if s[i+1]==s[i]:\n flag=False\nprint("Good" if flag else "Bad") \n'] | ['Runtime Error', 'Accepted'] | ['s902452789', 's586169183'] | [8876.0, 8924.0] | [22.0, 30.0] | [56, 121] |
p02993 | u558059388 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["S=list(int(i) for i in input().split())\nfor x in range(len(S)+1):\n if S[x]==S[x+1]:\n print('Bad')\n else:\n print('Good')\n", "S=list(int(i) for i in input().split())\nfor x in range(len(S)-1):\n if S[x]==S[x+1]:\n print('Bad')\n break\n else:\n print('Good')\n", "S=list(int(i) for i in input().sp... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s236568055', 's238941280', 's557147591', 's692091028', 's871709122', 's909503838', 's987795374', 's050434161'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0] | [128, 136, 133, 135, 133, 94, 135, 126] |
p02993 | u558764629 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['w=input();print("GBoaodd"[w[0]!=w[1]!=w[2]!=w[3]::2])', 'S=input();print("GBoaodd"[1^(S[0]!=S[1]!=S[2]!=S[3])::2])'] | ['Wrong Answer', 'Accepted'] | ['s553639853', 's552582313'] | [2940.0, 2940.0] | [17.0, 17.0] | [53, 57] |
p02993 | u561862393 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['import bisect\n\nn = int(input())\n\na, b = map(int, input().split())\ntask_lis = [[b, a]]\nsum_a = 0\nch_over = 1\n\n\nfor i in range(n-1):\n a, b = map(int, input().split())\n if a > b:\n ch_over = 0\n break\n else:\n pass\n ok2 = bisect.insort_right(task_lis,[b, a])\n\n\nfor i in r... | ['Runtime Error', 'Accepted'] | ['s812649171', 's285373319'] | [3064.0, 3316.0] | [18.0, 22.0] | [514, 179] |
p02993 | u562015767 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['S = sorted(str,input())\nScnt = len(S)\nSset = set(S)\n\nif Scnt == Sset:\n print("Good")\nelse:\n print("Bad")', 'S = [str(x) for x in input()]\ncnt = 0\n \nfor i in range(0,3):\n if S[i] == S[i+1]:\n cnt += 1\n \nif cnt >= 1:\n print("Bad")\nelse:\n print("Good")'] | ['Runtime Error', 'Accepted'] | ['s502242747', 's267009167'] | [2940.0, 2940.0] | [18.0, 18.0] | [110, 156] |
p02993 | u565924121 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['S=list(map(int,input().split()))\n\nif (S[0]==S[1]) or (S[1]==S[2]) or (S[2]==S[3]):\n print("Bad")\nelse:\n print("Good")', 'S=list(map(int,input().split()))\n\nif (S[0]=S[1]) or (S[1]=S[2]) or (S[2]=S[3]):\n print("Bad")\nelse:\n print("Yes")', 'S=input()\n\nif (S[0]==S[1]) or (S[1]==S[2]) or (S[2]==S[3]):\n p... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s172412322', 's979857598', 's464814382'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [119, 115, 96] |
p02993 | u567351889 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['s = int(input())\n\nans = "Good"\n\ns_temp = 99\n\nfor num in s:\n if int(num) == s_temp:\n ans = "Bad"\n break\n else:\n s_temp = int(num)\n\nprint(ans)\n', 's = input()\n\nans = "Good"\n\ns_temp = 99\n\nfor num in s:\n if int(num) == s_temp:\n ans = "Bad"\n break\n els... | ['Runtime Error', 'Accepted'] | ['s013728744', 's577860957'] | [2940.0, 2940.0] | [17.0, 17.0] | [168, 163] |
p02993 | u572002343 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['a = input()\n\nprev = a[0]\n\nflag = False\n\nfor i in range(1, 4):\n if (prev == a[i]):\n flag = True\n break\n\nif flag:\n print("Bad")\nelse:\n print("Good")\n', 'a = input()\n\nprev = a[0]\n\nflag = False\n\nfor i in range(1, 4):\n if (prev == a[i]):\n flag = True\n break\n prev = a[i]\n\nif flag... | ['Wrong Answer', 'Accepted'] | ['s215030948', 's574388946'] | [2940.0, 2940.0] | [17.0, 17.0] | [156, 170] |
p02993 | u572940434 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['n = int(input())\nli = [tuple(map(int,input().split())) for _ in range(n)]\nli.sort(key=lambda x: x[1])\nt = 0\nfor i in range(n):\n if t + li[i][0] > li[i][1]:\n print("No")\n exit()\n else:\n t += li[i][0]\nprint("Yes")', 'S = input()\nfor i in range(len(S)-1):\n if S[i] == S[i+1]:\n ... | ['Runtime Error', 'Accepted'] | ['s029420669', 's952857291'] | [3060.0, 2940.0] | [17.0, 19.0] | [238, 100] |
p02993 | u580093517 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['e = list(map(int,input().split()))\na = e[0]\nb = e[1]\nc = e[2]\nd = e[3]\n\ncnt = 0\nfor i in range(a,b+1):\n if (int(i/c)-i/c != 0) and (int(i/d)-i/d != 0):\n cnt += 1\n\nprint(cnt)', 'e = list(map(int,input().split()))\na = e[0]\nb = e[1]\nc = e[2]\nd = e[3]\ncnt = 0\nt = [j for j in range(a,b+1) if j%c... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s370325184', 's420629396', 's444625090', 's467975713', 's683164211', 's457772023'] | [3060.0, 3064.0, 3060.0, 3064.0, 3060.0, 3060.0] | [20.0, 17.0, 17.0, 17.0, 17.0, 18.0] | [183, 241, 159, 237, 182, 118] |
p02993 | u583276018 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['n = int(input())\n\nflag = 0\nfor i in range(3):\n if(n[i] == n[i+1]):\n flag = 1\n if(flag == 1):\n print("Bad")\n break\nif(flag == 0):\n print("Good")\n', 'n = input()\n\nflag = 0\nfor i in range(3):\n if(n[i] == n[i+1]):\n flag = 1\n if(flag == 1):\n print("Bad")\n break\nif(flag == 0):\n ... | ['Runtime Error', 'Accepted'] | ['s128367746', 's070723777'] | [2940.0, 2940.0] | [17.0, 17.0] | [156, 151] |
p02993 | u588633699 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['S = input()\nfor i in range(1,4):\n if S[i-1]==S[i]:\n print("Bad")\n continue\n elif i==3:\n print("Good")', 'S = input()\nfor i in range(1,4):\n if S[i-1]==S[i]:\n print("Bad")\n break\n elif i==3:\n print("Good")'] | ['Wrong Answer', 'Accepted'] | ['s403675055', 's400874131'] | [2940.0, 3060.0] | [17.0, 17.0] | [112, 109] |
p02993 | u589432040 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['s = str(input())\nflag = 0\n\nfor i in range(0,3,1):\n if int(s[i:i+2]) % 11 == 0:\n flag = 1\n\nif flag == 1:\n print("Good")\nelse:\n print("Bad")\n', 's = str(input())\nflag = 0\n\nfor i in range(0,2,1):\n if int(s[i:i+2]) % 11 == 0:\n flag = 1\n\nif flag == 1:\n print("Good")\nelse:\n print("Bad")', '... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s336024254', 's949963128', 's630179342'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [145, 144, 145] |
p02993 | u591919975 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['S=input()\n\nif S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:\n print("bad")\nelse:\n print("good")', 'S=input()\n\nif S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:\n print("Bad")\nelse:\n print("Good")'] | ['Wrong Answer', 'Accepted'] | ['s501605512', 's686837491'] | [8956.0, 9104.0] | [30.0, 25.0] | [94, 94] |
p02993 | u593938737 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['#!/usr/bin/env python3\nimport sys\nfrom collections import namedtuple\nimport functools\n\nYES = "Yes" # type: str\nNO = "No" # type: str\n\ndef solve(N: int, t: "List[int]", x: "List[int]", y: "List[int]"):\n for i in range(N):\n min_length = abs(x[i+1] - x[i]) + abs(y[i+1] - y[i])\n travel_time ... | ['Runtime Error', 'Accepted'] | ['s605384508', 's026700484'] | [3812.0, 2940.0] | [23.0, 17.0] | [1309, 587] |
p02993 | u600319862 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["list = [int(x)for x in input()]\nfor i in range(3):\n if list[i] == list[i+1]:\n count =1\n else:\n count =0\nif count ==0:\n print('Good')\nelse:\n print('Bad')", "list = [int(x)for x in input()]\ncount =0\nfor i in range(3):\n if list[i] == list[i+1]:\n count +=1\nif count ==0:\n print('Good')\nelse:... | ['Wrong Answer', 'Accepted'] | ['s322507297', 's026636246'] | [2940.0, 2940.0] | [17.0, 17.0] | [162, 151] |
p02993 | u602677143 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['from fractions import gcd\nimport math\na,b,c,d = map(int,input().split())\n\n\nan1 = math.floor(b/c)\nan2 = math.floor((a-1)/c)\nan3 = math.floor(b/d)\nan4 = math.floor((a-1)/d)\n\ngcd = round(c * d / gcd(c, d))\n\nan5 = math.floor(b/gcd)\nan6 = math.floor((a-1)/gcd)\nan = an1-an2 + an3-an4 -(an5-an6)\nprint((b-a+1)... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s289726676', 's369665446', 's705639860'] | [5076.0, 5076.0, 2940.0] | [38.0, 35.0, 19.0] | [313, 309, 152] |
p02993 | u602773379 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['s=list(int(input()))\nf=True\nfor i in range(1,4):\n\tif s[i-1]==s[i]:\n\t\tf=False\n\t\tbreak\n\telse:\n\t\tcontinue\nif f:\n\tprint("Good")\nelse:\n\tprint("Bad")', 's=list(str(input()))\nf=True\nfor i in range(1,4):\n\tif s[i-1]==s[i]:\n\t\tf=False\n\t\tbreak\n\telse:\n\t\tcontinue\nif f:\n\tprint("Good")\nelse:\n... | ['Runtime Error', 'Accepted'] | ['s364997613', 's797438861'] | [9172.0, 9044.0] | [24.0, 25.0] | [143, 143] |
p02993 | u603324902 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["s = input()\nif n[0]==n[1] or n[1]==n[2] or n[2]==n[3]:\n\tprint('Bad')\nelse:\n\tprint('Good')", "s = input()\nif s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:\n\tprint('Bad')\nelse:\n\tprint('Good')"] | ['Runtime Error', 'Accepted'] | ['s394885037', 's916214108'] | [2940.0, 2940.0] | [18.0, 17.0] | [89, 89] |
p02993 | u610780824 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["S = str(input())\nif S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:\n print('Bud')\nelse:\n print('Good')", "S = str(input())\nif S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:\n print('Bad')\nelse:\n print('Good')"] | ['Wrong Answer', 'Accepted'] | ['s763497627', 's355845893'] | [2940.0, 2940.0] | [17.0, 17.0] | [106, 106] |
p02993 | u611386050 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['#coding:utf-8\nimport sys\n\nL = list(input())\nprint(L)\nfor i in range(len(L)):\n for j in range(len(L)):\n if (i != j) and (abs(i-j) == 1) and (L[i] == L[j]):\n print("Bad")\n sys.exit()\nprint("Good")\n', '#coding:utf-8\nimport sys\n\nL = list(input())\nfor i in range(len(L)):\n ... | ['Wrong Answer', 'Accepted'] | ['s599480006', 's487905148'] | [2940.0, 2940.0] | [17.0, 17.0] | [227, 218] |
p02993 | u613783019 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['\nS = input()\n\n\nif S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:\n print("bad")\n\n\nelse:\n print("good")', '\nS = input()\n\n\nif S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:\n print("Bad")\n\n\nelse:\n print("Good")'] | ['Wrong Answer', 'Accepted'] | ['s617685573', 's154994147'] | [2940.0, 2940.0] | [17.0, 17.0] | [195, 195] |
p02993 | u614215819 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['A,B,C,D = map(int, input().split())\ndef gcd(x, y):\n if x == 0:\n return y\n else:\n return gcd(y % x, x)\ndef lcm(x,y):\n return x * y // gcd(x,y)\nL = lcm(C,D)\nb = B - (B // C) - (B // D) + (B // L)\na = (A-1) - ((A-1) // C) - ((A-1) // D) + ((A-1) // L)\nprint(b - a)', 'A,B,C,D = 10, 40, 6... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s050514637', 's118800027', 's885688498', 's996162165', 's666941751'] | [3064.0, 3064.0, 2940.0, 3064.0, 3060.0] | [18.0, 17.0, 17.0, 17.0, 17.0] | [284, 305, 154, 318, 164] |
p02993 | u615968644 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['a, b, c, d = map(int, input().split())\n\nfor i in range(a, b):\n if i%c != 0:\n if i%d !=0:\n print(i)', 'count=0\n\nsecurity=input()\nsec_list=list(security)\n\nfor s in range(0,len(security)-1):\n if sec_list[s]==sec_list[s+1]:\n count+=1\n\nif count != 0:\n print("Bad")\nelse:\n ... | ['Runtime Error', 'Accepted'] | ['s418188286', 's626898820'] | [3188.0, 2940.0] | [18.0, 17.0] | [119, 194] |
p02993 | u616468898 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["key_no = input()\nret = 'Good'\nfor i in range(len(key_no)-1):\n if key_no[i] == key_no[i+1]:\n ret = 'Bad'\n \tbreak\nprint(ret)", "key_no = input()\nret = 'Good'\nfor i in range(len(key_no)-1):\n if key_no[i] == key_no[i+1]:\n ret = 'Bad'\n break \nprint(ret)"] | ['Runtime Error', 'Accepted'] | ['s096546617', 's036486949'] | [2940.0, 2940.0] | [17.0, 18.0] | [127, 130] |
p02993 | u623036684 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['N = str(input())\nif N[0]==N[1] or N[1]==N[2] or N[2]==N[3] or N[3]==N[4]:\n print("Bad")\nelse:\n print("Good)', 'N = str(input())\nif N[0]==N[1] or N[1]==N[2] or N[2]==N[3]:\n print("Bad")\nelse:\n print("Good")'] | ['Runtime Error', 'Accepted'] | ['s081148866', 's289024212'] | [2940.0, 2940.0] | [18.0, 17.0] | [113, 100] |
p02993 | u626228246 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['S = list(input())\ncount = 0\nfor i in range(3):\n if S[i] == S[i+1]:\n count += 1\nprint("Yes" if count > 0 else "No")', 'S = list(input())\ncount = 0\nfor i in range(3):\n if S[i] == S[i+1]:\n count += 1\nprint("Bad" if count > 0 else "Good")'] | ['Wrong Answer', 'Accepted'] | ['s451113143', 's730615372'] | [2940.0, 2940.0] | [17.0, 17.0] | [118, 120] |
p02993 | u626468554 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['#n = int(input())\n#n,k = map(int,input().split())\n#x = list(map(int,input().split()))\n\n\ns = list(input())\n\nif a[0] == a[1] or a[1] == a[2] or a[2] == a[3]:\n print("Bad")\nelse:\n print("Good")', '#n = int(input())\n#n,k = map(int,input().split())\n#x = list(map(int,input().split()))\n\n\na = list(input(... | ['Runtime Error', 'Accepted'] | ['s001834431', 's688400486'] | [3188.0, 2940.0] | [18.0, 17.0] | [196, 196] |
p02993 | u629350026 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['n=int(input())\nn=list(str(n))\nif n[0]==n[1] or n[0]==n[2] or n[0]==n[3] or n[1]==n[2] or n[1]==n[3] or n[2]==n[3]:\n print("Good")\nelse:\n print("Bad")\n', 'n=str(input())\nn=list(n)\nif n[0]==n[1] or n[1]==n[2] or n[2]==n[3]:\n print("Bad")\nelse:\n print("Good")\n'] | ['Runtime Error', 'Accepted'] | ['s855616968', 's096360346'] | [2940.0, 2940.0] | [17.0, 17.0] | [152, 105] |
p02993 | u632423548 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['lock_num = input()\n#lock_num = [int(x) for x in lock_num]\ntag = 0\nfor i in range(len(lock_num)-1):\n if int(lock_num[i]) == int(lock_num[i+1]):\n tag = 1\nif tag == 0:\n print("Good")\nelse tag ==1:\n print("Bad")', 'lock_num = input().split()\nlock_num = [int(x) for x in lock_num]\ntag = 0\nfor i in range(l... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s009489566', 's088594616', 's860504380', 's689732883'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 19.0] | [213, 210, 205, 201] |
p02993 | u634173914 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["S = input()\nflag = True\n\nfor i in range(len(S)-1):\n if S[i] == S[i+1]:\n flag = False\n else:\n pass\n\nif flag:\n print('good')\nelse:\n print('bad')", "S = input()\nflag = True\n\nfor i in range(len(S)-1):\n if S[i] == S[i+1]:\n flag = False\n else:\n pass\n\nif fla... | ['Wrong Answer', 'Accepted'] | ['s600105754', 's713835787'] | [2940.0, 2940.0] | [17.0, 17.0] | [168, 168] |
p02993 | u635141733 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['a = int(input())\nprint(a)\nb = a%10\nprint(b)\nc = int(((a-b)/10)%10)\nprint(c)\nd = int(((a-b-c*10)/100)%10)\nprint(d)\ne = int(((a-b-c*10-d*100)/1000)%10)\nprint(e)\nmylst = [e, d, c, b]\nif e == d:\n print("Bad")\nelif d == c:\n print("Bad")\nelif c == b:\n print("Bad")\nelse:\n print("Good")', 'a = i... | ['Wrong Answer', 'Accepted'] | ['s579094682', 's791940005'] | [3064.0, 3064.0] | [17.0, 17.0] | [291, 246] |
p02993 | u635540732 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["s = input()\ni = str(s)\nfor i in range(3):\n if s[i] == s[i+1]:\n print('Bad')\n break\n else:\n print('Good')", "s = input()\ni = str(s)\nt = 0\nfor i in range(3):\n if s[i] == s[i+1]:\n print('Bad')\n break\n else:\n t += 1\nif t == 3:\n print('Good')"] | ['Wrong Answer', 'Accepted'] | ['s465387145', 's304609570'] | [2940.0, 2940.0] | [17.0, 17.0] | [115, 141] |
p02993 | u636489589 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['p = input().split()\n\nfor i in range(3):\n if p[i] == p[i + 1]:\n print("Bad")\n quit()\nprint("Good")', 'p = input()\n\nfor i in range(3):\n if p[i] == p[i + 1]:\n print("Bad")\n quit()\nprint("Good")\n'] | ['Runtime Error', 'Accepted'] | ['s287864683', 's254926410'] | [2940.0, 2940.0] | [17.0, 17.0] | [104, 97] |
p02993 | u638393586 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['S = list(int(input()))\n\nif S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:\n print("Bad")\nelse:\n print("Good")\n', 'S = list(input())\nif S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:\n print("Bad")\nelse:\n print("Good")\n'] | ['Runtime Error', 'Accepted'] | ['s352182627', 's204434950'] | [2940.0, 2940.0] | [18.0, 17.0] | [110, 104] |
p02993 | u639104973 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['S=input()\nprint("Bad" if S[0]==S[1] or S[1]==[2] or S[2]==S[3] else "Good")\n', 'S=input()\nprint("Bad" if S[0]==S[1] or S[1]==S[2] or S[2]==S[3] else "Good")\n'] | ['Wrong Answer', 'Accepted'] | ['s965126990', 's354394670'] | [2940.0, 2940.0] | [17.0, 17.0] | [76, 77] |
p02993 | u639305502 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['ss = input()\n\nfor i in range(3):\n if ss[i] = ss[i+1]:\n print("Good")\n break\nelse:\n print("Bad")\n', 'ss = input()\n\nfor i in range(3):\n if ss[i] = ss[i+1]:\n print("Good")\n break\nelse:\n print("Bad")', 'ss = input()\n\nfor i in range(3):\n if ss[i] == ss[i+1]:\n print("Bad")\n break\... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s308793711', 's706315687', 's134987325'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [104, 103, 105] |
p02993 | u639343026 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['a=input()\nb=False\nfor i in range(3):\n if a[i+1]==a[i]:\n b=True\n\nif b:\n print(“Bad”)\nelse:\n print(“Good”)', 'a=input()\nb=False\nfor i in range(3):\n if a[i+1]==a[i]:\n b=True\n\nif b:\nprint(“Bad”)\nelse:\nprint(“Good”)', 'a=input()\nb=False\nfor i in range(3):\n if a[i+1]==a[i]:\n b=True\n\nif b:\n print... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s460722114', 's543478164', 's315876919'] | [3192.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [113, 111, 105] |
p02993 | u641722141 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["a=list(int(input))\ni=0\nfor j in range(1,4):\n if a[i]== a[j]:\n print('Bad')\n break\n elif a[i]!= a[j] and j == 4:\n print('Good')\n i += 1\n ", "a=list(int(input))\ni=0\nfor j in range(1,4):\n if a[i]== a[j]:\n print('Bad')\n break\n elif a[i]!= a[j] and j == 4:\n print('Good')\n else:\n ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s022295405', 's604928218', 's612923269', 's519112432'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0, 19.0] | [149, 164, 149, 146] |
p02993 | u651946953 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['s=int(input())\n\nb=int(s%1000)\na=int((s-b)/1000)\nd=int(b%100)\nc=int((b-d)/100)\nf=int(d%10)\ne=int((d-f)/10)\n\nif a=d or d=e or e=f :\n print("Bad")\nelse:\n print("Good")', 's=int(input())\n\nb=int(s%1000)\na=int((s-b)/1000)\nd=int(b%100)\nc=int((b-d)/100)\nf=int(d%10)\ne=int((d-f)/10)\n\nif a==d or d==e ... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s047611438', 's790941061', 's532991833'] | [2940.0, 3060.0, 3060.0] | [17.0, 17.0, 18.0] | [170, 174, 174] |
p02993 | u653807637 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['s = input()\nif s[0] == s[1] or s[0] == s[1] or s[0] == s[1]:\n\tprint("Bad")\nelse:\n\tprint("Good")', 's = input()\nif s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:\n\tprint("Bad")\nelse:\n\tprint("Good")\n'] | ['Wrong Answer', 'Accepted'] | ['s685795279', 's870100596'] | [2940.0, 2940.0] | [17.0, 18.0] | [95, 96] |
p02993 | u655048024 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['S= str(input())\ncou = 0\nfor i in range(len(S)-1):\n if(S[i]==S[i-1]):\n cou += 1\n break\nif(cou>0):\n print("Bad")\nelse:\n print("Good")', 'S= str(input())\ncou = 0\nfor i in range(len(S)-1):\n if(S[i]==S[i+1]):\n cou += 1\n break\nif(cou>=1):\n print("Bad")\nelse:\n print("Good")\n', 'S= str(input(... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s202251199', 's398206545', 's673694600', 's681854304', 's746388286', 's769985374', 's892573237', 's531919560'] | [3060.0, 9000.0, 2940.0, 2940.0, 2940.0, 9044.0, 2940.0, 8968.0] | [19.0, 25.0, 17.0, 18.0, 17.0, 28.0, 17.0, 28.0] | [138, 140, 138, 139, 136, 120, 138, 121] |
p02993 | u661977789 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['s = input()\nif s[0] == s[1] and s[1] == s[2] and s[2] == s[3]:\n print("Bad")\nelse:\n print("Good")', "s = input()\nswitch = False\nfor i in range(0, 3):\n if s[i] == s[i + 1]:\n switch = True\nif switch:\n print('Bad')\nelse:\n print('Good')"] | ['Wrong Answer', 'Accepted'] | ['s202129835', 's605436032'] | [2940.0, 2940.0] | [18.0, 17.0] | [99, 137] |
p02993 | u663146637 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['def f(X,Y):\n return X//Y\n\nA,B,C,D = map(int, input().split())\nX = B-A+1\nif (C>D):\n x = C\n y = D\nelse:\n y = C\n x = D\n\nr = x % y\nwhile(r!=0):\n x = y\n y = r\n r = x % y\n\nprint("%d" % (X - f(X, C) - f(X, D) + f(X, C*D//y)))', 'S = input()\nprev = S[0]\nfor s in S[1:]:\n if s == p... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s033390160', 's305805791', 's715936599'] | [3064.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [242, 102, 114] |
p02993 | u663438907 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["S = input()\ncheck = 0\n\nfor i in range(3):\n if S[i] == S[i+1]:\n check = 1\n\nif check == 0:\n print('Yes')\nelse:\n print('No')", "S = input()\ncheck = 0\n\nfor i in range(3):\n if S[i] == S[i+1]:\n check = 1\n\nif check == 0:\n print('Good')\nelse:\n print('Bad')"] | ['Wrong Answer', 'Accepted'] | ['s464486261', 's510759790'] | [2940.0, 2940.0] | [17.0, 17.0] | [127, 129] |
p02993 | u663710122 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["S = input()\n\nfor i in range(3):\n if S[i] == S[i + 1]:\n print('Good')\n exit()\nprint('Bad')\n", "S = input()\n\nfor i in range(3):\n if S[i] == S[i + 1]:\n print('Bad')\n exit()\nprint('Good')\n"] | ['Wrong Answer', 'Accepted'] | ['s208063361', 's996774153'] | [2940.0, 2940.0] | [17.0, 17.0] | [107, 107] |
p02993 | u664373116 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['N=input()\nif N[0]==N[1] or N[1]==N[2] or N[2]==N[3]:\n print("bad")\nelse:\n print("good")', 'from collections import Counter \nfrom collections import defaultdict\nfrom collections import deque\nimport math\nimport itertools\nimport heapq\nimport numpy as np\nimport sys\nsys.setrecursionlimit(10**6)\n\n#n=int... | ['Wrong Answer', 'Accepted'] | ['s127620563', 's645418565'] | [2940.0, 12496.0] | [17.0, 150.0] | [93, 451] |
p02993 | u672475305 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["num=str(input())\nfor i in range(1,len(num)):\n if num[i]==num[i-1]:\n print('bad')\n exit()\nprint('Good')", "s = input()\nfor i in range(1,4):\n if s[i] == s[i-1]:\n print('Bad')\n exit()\nprint('Good')"] | ['Wrong Answer', 'Accepted'] | ['s984458481', 's630363534'] | [2940.0, 2940.0] | [17.0, 17.0] | [109, 105] |
p02993 | u672542358 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['s=input()\nif s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:\n print(Bad)\nelse:\n print(Good)', 's=input()\nif s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:\n print("Bad")\nelse:\n print("Good")'] | ['Runtime Error', 'Accepted'] | ['s244350415', 's644102620'] | [2940.0, 3064.0] | [17.0, 17.0] | [85, 89] |
p02993 | u674588203 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["S=input()\nfor i in range(len(S)-1):\n if S[i]==S[i+1]:\n print('bad')\n exit()\nprint('good')", "S=input()\nfor i in range(len(S)-1):\n if S[i]==S[i+1]:\n print('Bad')\n exit()\nprint('Good')\n"] | ['Wrong Answer', 'Accepted'] | ['s237800593', 's223368481'] | [9028.0, 9036.0] | [30.0, 30.0] | [96, 97] |
p02993 | u677121387 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['n = int(input())\nab = [list(map(int,input().split())) for i in range(n)]\n\nab.sort(key= lambda x:x[1])\ntime = 0\n\nfor i in range(n):\n time += ab[i][0]\n if time > ab[i][1]:\n ans = "No"\n break\nelse:\n ans = "Yes"\n\nprint(ans)', 's = input()\n\nfor i in range(3):\n if s[i] == s[i+1]:\... | ['Runtime Error', 'Accepted'] | ['s254484993', 's503073514'] | [3064.0, 2940.0] | [18.0, 17.0] | [242, 123] |
p02993 | u677400065 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['\n#include<algorithm>\n#include<string>\n\n\n#include<map>\n#include<math.h>\n\n#define rep(i,a,n) for(int (i)=(a);(i)<(n);(i)++)\n#define rrep(i,a,n) for(int (i)=(a);(i)>=(n);(i)--)\n\n#define INF 1000000000\n#define MOD 1000000007\n\ntypedef long long ll;\n\nusing namespace std;\n\ntemplate<class T> inline bool ch... | ['Runtime Error', 'Accepted'] | ['s561003289', 's832983102'] | [2940.0, 2940.0] | [17.0, 17.0] | [1584, 100] |
p02993 | u680004123 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['s = input()\nnum = 0\nfor i in range(len(s)-1):\n print(i)\n if s[i] == s[i+1]:\n num = 1\nprint("Good") if num == 0 else print("Bad")', 's = input()\nnum = 0\nfor i in range(len(s)-1):\n if s[i] == s[i+1]:\n num = 1\nprint("Good") if num == 0 else print("Bad")'] | ['Wrong Answer', 'Accepted'] | ['s703140666', 's724457502'] | [2940.0, 2940.0] | [18.0, 17.0] | [157, 140] |
p02993 | u682408064 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['def check_pass(ps):\n for i in range(len(ps) - 1):\n dif = ps[i] - ps[i + 1]\n if dif == 0:\n print("bad")\n return ""\n print("good")\n return ""\n\n\n# input process\ninputData = input()\nps = [int(x) for x in inputData]\n\ncheck_pass(ps)\n', 'from math import floor\n\n\... | ['Wrong Answer', 'Accepted'] | ['s645243742', 's387941288'] | [3064.0, 2940.0] | [17.0, 17.0] | [272, 319] |
p02993 | u684625036 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['cord = list(input())\ncord_len = len(cord)\nfor i in range(cord - 1):\n if cord[i] == cord[i + 1]:\n print("Bad")\n break\nelse:\n print("Good")\n', 'cord = list(input())\ncord_len = len(cord)\nfor i in range(cord_len - 1):\n if cord[i] == cord[i + 1]:\n print("Bad")\n break\nelse... | ['Runtime Error', 'Accepted'] | ['s564571845', 's863867745'] | [2940.0, 2940.0] | [17.0, 17.0] | [158, 162] |
p02993 | u685244071 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["S = int(input())\n\nif S[0] == S[1] or S [0] == S[2] or S[0] == S[3] or S[1] == S[2] or S[1] == S[3] or S[2] == S[3]:\n print('Bad')\nelse:\n print('Good')\n", "S = int(input())\n\nif S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:\n print('Bad')\nelse:\n print('Good')\n", "S = int(input())\n\nif S[0] == S[1] or S ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s051162546', 's078694438', 's226227057', 's419153642', 's614471738', 's810394029', 's089276486'] | [2940.0, 2940.0, 3060.0, 3060.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0] | [153, 104, 154, 152, 104, 104, 100] |
p02993 | u686989171 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['S=input()\nif S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:\n print("bad")\n \nelse:\n print("good")\n', 's=input()\nif s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:\n print("bad")\n\nelse:\n print("good")\n', 'S=input()\nif S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:\n print("Bad")\n \nelse:\n print("Good")\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s528268936', 's911028568', 's590756727'] | [2940.0, 2940.0, 2940.0] | [17.0, 20.0, 17.0] | [92, 91, 92] |
p02993 | u687443343 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['S = input()\nif s[0] == s[1]:\n print(Bad)\nelif s[2] == s[1]:\n print(Bad)\nelif s[3] == s[2]:\n print(Bab)\nelse:\n print(Good)', 'S = input()\nif s[0] == s[1] and s[2] == s[1] and s[3] == s[2]:\n print(Bad)\nelse:\n print(Good)', 'S = input()\ns=len(S)\nprint(s)', "s = input()\nif s[0] == s[1]:\n print('Bad... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s126048231', 's394303259', 's778559845', 's297228269'] | [2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [125, 95, 29, 133] |
p02993 | u688219499 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['import math\na,b,c,d = map(int,input().split())\n\n\nans=(b//c+b//d-b//(c*d//math.gcd(c,d)))-((a-1)//c+(a-1)//d-(a-1)//(c*d//math.gcd(c,d)))\n\nprint(b-a+1-ans)\n', 's = input()\nif s[0] != s[1] and s[1] != s[2] and s[2] != s[3]:\n print("Good")\nelse:\n print("Bad")'] | ['Runtime Error', 'Accepted'] | ['s001795664', 's320118794'] | [9120.0, 9004.0] | [25.0, 30.0] | [252, 103] |
p02993 | u688375653 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['matchNums=input()\n\nflg=False\nfor i in range(len(matchNums)-1):\n if matchNums[i] == matchNums[i+1]:\n flg = True\nif flg:\n print("Bad")\nelse\n print("Good")', 'matchNums=input()\n\nflg=False\nfor i in range(len(matchNums)-1):\n if matchNums[i] == matchNums[i+1]:\n flg = True\nif flg:\n ... | ['Runtime Error', 'Accepted'] | ['s542731900', 's043769644'] | [2940.0, 2940.0] | [17.0, 17.0] | [168, 169] |
p02993 | u690781906 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['N, L = map(int, input().split())\np_list = []\nfor i in range(1, N+1):\n p_list += [L + i - 1]\nprint(sum(p_list) - sorted(p_list, key=abs)[0])', "S = input()\ntmp = S[0]\nfor num in S[1:]:\n if num == tmp:\n print('Bad')\n exit()\n tmp = num\nprint('Good')"] | ['Runtime Error', 'Accepted'] | ['s693220776', 's578181651'] | [2940.0, 2940.0] | [17.0, 18.0] | [142, 123] |
p02993 | u690844139 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['n = input()\nfor i in range(0,len(n)-1,1):\n if (n[i] == n[i+1]):\n print("Bad")\n else:\n print("Good")', 'n = input()\nfor i in range(0,len(n)-1,1):\n if (n[i] ==-n[i+1]):\n print("Bad")\n else:\nprint("Good")', 'n = input()\nfor i in range(0,len(n)-1,1):\n if (n[i] ==-n[i+1]):\n print("Bad")\n... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s053908408', 's192864231', 's657578027', 's695261720', 's975617623', 's502613367'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [109, 105, 111, 105, 111, 117] |
p02993 | u693048766 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['s=input()\n\nif s[0] == s[1] or s[1] == s[2] and s[2] == s[3]:\n print("Bad")\nelse:\n print("Good")', 's=input()\n\nif s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:\n print("Bad")\nelse:\n print("Good")'] | ['Wrong Answer', 'Accepted'] | ['s328442790', 's935488837'] | [3064.0, 2940.0] | [17.0, 17.0] | [101, 100] |
p02993 | u694810977 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['S = str(input())\ncnt = 0\nfor i in range(len(S)-1):\n if S[i] == S[i+1]:\n print("Bad")\n print(S[i],S[i+1])\n exit()\nprint("Good")', 'S = str(input())\ncnt = 0\nfor i in range(len(S)-1):\n if S[i] == S[i+1]:\n print("Bad")\n exit()\nprint("Good")'] | ['Wrong Answer', 'Accepted'] | ['s519048267', 's524648398'] | [2940.0, 2940.0] | [17.0, 17.0] | [150, 123] |
p02993 | u694864742 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['OK_f = 0\nS=list(input())\nfor i in range(len(S)):\n if S[i] == S[i-1]:\n OK_f = 1;\n break\nif OK_f == 0:\n print("good")\nelse:\n print("bad")', 'OK_f = 0\nS=list(input())\nfor i in range(len(S)):\n if i>0 and S[i] == S[i-1]:\n OK_f = 1;\n break\nif OK_f == 0:\n print("Goo... | ['Wrong Answer', 'Accepted'] | ['s653257263', 's041934858'] | [2940.0, 3060.0] | [17.0, 17.0] | [158, 166] |
p02993 | u696444274 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['import math\nfrom functools import reduce\nfrom fractions import gcd\n#import math\n#import itertools\n#import statistics\n#import numpy as np\n#import collections\n#n = int(input())\na, b, c, d = list(map(int, input().split()))\n#b = list(map(int, input().split()))\n\n#10 11 13 14 15 17 19 20 21 22 23 25 26 27 2... | ['Runtime Error', 'Accepted'] | ['s166021354', 's870453882'] | [5132.0, 2940.0] | [36.0, 17.0] | [459, 172] |
p02993 | u696919316 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['arr = list(map(int, input().split()))\nfor k in range(len(arr)):\n if arr[k] == arr[k+1]:\n print("Bad")\n exit()\nprint("Good")', 'arr = list(input())\nfor k in range(len(arr) - 1):\n if arr[k] == arr[k+1]:\n print("Bad")\n exit()\nprint("Good")\n'] | ['Runtime Error', 'Accepted'] | ['s716971354', 's045574483'] | [9096.0, 8920.0] | [26.0, 29.0] | [130, 117] |
p02993 | u697696097 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['ss=input().strip()\nflg=False\nfor i in range(1,len(ss)):\n if ss[i]==ss[i-1]:\n True\n \nif flg==True:\n print("Bad")\nelse:\n print("Good")', 'ss=input().strip()\nflg=False\nfor i in range(1,len(ss)):\n if ss[i]==ss[i-1]:\n flg=True\n \nif flg==True:\n print("Bad")\nelse:\n print("Good")'] | ['Wrong Answer', 'Accepted'] | ['s798111530', 's594146700'] | [9108.0, 9040.0] | [26.0, 30.0] | [141, 145] |
p02993 | u698902360 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['S = input().sprit()\n\nFlag = True\n\nif S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:\n Flag = False\n \nif Flag == False:\n print("Bad")\nelse:\n print("Good")', 'S = input().split()\n\nFlag = True\n\nif S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:\n Flag = False\n \nif Flag == False:\n print("Bad")\nelse:\... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s363456792', 's604780477', 's796524285'] | [2940.0, 2940.0, 3064.0] | [17.0, 18.0, 17.0] | [155, 155, 204] |
p02993 | u699089116 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['s=int(input())\n\nfor i in range(3):\n if s[i] == s[i+1]:\n print("Bad")\n exit()\nelse:\n print("Good")', 's=input()\n\nfor i in range(3):\n if s[i] == s[i+1]:\n print("Bad")\n exit()\nelse:\n print("Good")'] | ['Runtime Error', 'Accepted'] | ['s138829439', 's574918088'] | [9164.0, 8856.0] | [26.0, 24.0] | [105, 100] |
p02993 | u699560477 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ['import sys\n\ncode = input()\nfor i in range(len(code) - 1):\n if code[i] == code[i + 1]:\n print("Good")\n sys.exit()\nprint("Bad")\n', 'import sys\n\ncode = input()\nfor i in range(len(code) - 1):\n if code[i] == code[i + 1]:\n print("Bad")\n sys.exit()\nprint("Good")\n'] | ['Wrong Answer', 'Accepted'] | ['s503465082', 's894934284'] | [2940.0, 2940.0] | [17.0, 17.0] | [143, 143] |
p02993 | u699944218 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["S = int(input())\nls = list(S)\nif S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:\n print('Bad')\nelse:\n print('Good')", "S = int(input())\nls = list(S)\nif ls[0] == ls[1] or ls[1] == ls[2] or ls[2] == ls[3]:\n print('Bad')\nelse:\n print('Good')", "\ns = input()\nif s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:\... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s220897371', 's789713500', 's445854245'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [115, 121, 232] |
p02993 | u702018889 | 2,000 | 1,048,576 | The door of Snuke's laboratory is locked with a security code. The security code is a 4-digit number. We say the security code is _hard to enter_ when it contains two consecutive digits that are the same. You are given the current security code S. If S is hard to enter, print `Bad`; otherwise, print `Good`. | ["s=str(input())\nif s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:\n\tprint('Bad')\n else:\n \tprint('Good')", "def main():\n s = str(input())\n if s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:\n print('Bad')\n else:\n print('Good')\n \nmain()"] | ['Runtime Error', 'Accepted'] | ['s286630526', 's168113151'] | [8932.0, 8964.0] | [27.0, 30.0] | [100, 158] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.