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
u702208001
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()\nprint('Yes' if n[0] != n[1] and n[1] != n[2] and n[2] != n[3] else 'No')", "n = input()\nprint('Good' if n[0] != n[1] and n[1] != n[2] and n[2] != n[3] else 'Bad')"]
['Wrong Answer', 'Accepted']
['s610661180', 's427327902']
[2940.0, 2940.0]
[17.0, 17.0]
[84, 86]
p02993
u705056852
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 = (int(i) for i in input().split())\n\nif a != b:\n if: b != c:\n if: c != d:\n print("Good")\n return 0\n \nprint("Bad")\n', 'a = input()\n\nfor i in range(3):\n if a[i] == a[i+1]:\n print("Bad")\n return\nprint("Good")', 'a = input()\n\ndef check():\n for i in range...
['Runtime Error', 'Runtime Error', 'Accepted']
['s341376743', 's980958378', 's584355203']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[156, 94, 127]
p02993
u706330549
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\ns[0]s = input()\n\nflg = 0\n\nfor i in range(3):\n if s[i] == s[i + 1]:\n flg = 1\n\nif flg == 1:\n print("Bad")\nelse:\n print("Good")\n', 's = input()\n\nflg = 0\n\nfor i in range(3):\n if s[i] == s[i + 1]:\n flg = 1\n\nif flg == 1:\n print("Bad")\nelse:\n print("Good"...
['Runtime Error', 'Accepted']
['s972717752', 's228387799']
[2940.0, 2940.0]
[17.0, 17.0]
[154, 137]
p02993
u706828591
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`.
['ls = list(map(int,input()))\nfor i in range(len(ls)-1):\n if(ls[i] == ls[i+1]):\n print("bad")\n exit()\nprint("good")', 'ls = list(map(int,input()))\nfor i in range(len(ls)-1):\n if(ls[i] == ls[i+1]):\n print("Bad")\n exit()\nprint("Good")']
['Wrong Answer', 'Accepted']
['s268153189', 's970532353']
[2940.0, 2940.0]
[17.0, 17.0]
[120, 120]
p02993
u712868001
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())\nif S[0]==S[1]:\n print('Bad')\nelif S[1]==S[2]:\n print('Bad')\nelif S[2]==S[3]:\n print('Bad')\nelse:\n print('Good')", "S=input()\nif S[0]==S[1]:\n print('Bad')\nelif S[1]==S[2]:\n print('Bad')\nelif S[2]==S[3]:\n print('Bad')\nelse:\n print('Good')"]
['Runtime Error', 'Accepted']
['s403841833', 's372907736']
[2940.0, 2940.0]
[17.0, 17.0]
[130, 125]
p02993
u714378447
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 fractions\n\nA, B, C, D = [int(i) for i in input().split()]\n\nlcm = (C*D)//fractions.gcd(C,D)\nA = A-1\nt1 = A - (A//C + A//D - A//lcm)\nt2 = B - (B//C + B//D - B//lcm)\nprint(int(t2 - t1))\n', "N = input()\n\nans = 'Good'\nfor i in range(len(N)-1):\n\tif N[i] == N[i+1]:\n\t\tans='Bad'\nprint(ans)\n"]
['Runtime Error', 'Accepted']
['s761805427', 's833952854']
[5048.0, 3064.0]
[35.0, 17.0]
[190, 95]
p02993
u718411265
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())\nif S[0]=S[1] or S[1]=S[2] or S[2]=S[3]:\n print("Bad")\nelse:\n print("Good")\n ', 'S=input()\nfor i in range(3):\n if S[i]==S[i+1]:\n print("Bad")\n break\n else:\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")', "S=int(input...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s140500965', 's219048392', 's382546907', 's418962845', 's471856318', 's893796363']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 18.0, 17.0]
[94, 100, 86, 124, 95, 96]
p02993
u719886494
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().solit()))\nflg = 1\nfor i in range(4) :\n if i != 0 & s[i -1] == s[i] :\n flg = 0\nif flg == 1 :\n print("Good")\nelse :\n print("Bad")\n ', 's = list(map(int, input()))\nflg = 1\nfor i in range(4) :\n if i != 0 :\n if s[i -1] == s[i] :\n flg = 0\nif flg == 1 :\n print("Go...
['Runtime Error', 'Accepted']
['s750625265', 's500392419']
[2940.0, 3060.0]
[17.0, 17.0]
[164, 160]
p02993
u723444827
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()))\nflag = False\nfor i in range(len(S)-1):\n if (S[i] == S[i+1]):\n flag = True\n if (flag == True):\n break\nif (flag == True):\n print("bad")\n\nelse:\n print("good")', 'S = list(input())\nflag = False\nfor i in range(len(S)-1):\n if (S[i] == S[i+1]):\n f...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s406073869', 's743868426', 's841519739', 's466775356']
[3060.0, 2940.0, 3060.0, 2940.0]
[17.0, 18.0, 17.0, 18.0]
[208, 200, 171, 200]
p02993
u724844363
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())\nk = 1\nfor i in range(3):\n if S[i] == S[i+1]:\n print("bad")\n k = 0\n break\n else:\n continue\nif k !=0:\n print("Good")', 'S = str(input())\nk = 1\nfor i in range(3):\n if S[i] == S[i+1]:\n print("bad")\n k = 0\n break\n else:\n ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s890625104', 's968299829', 's089917973']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[168, 169, 169]
p02993
u726769307
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(input())\nn=0\nfor i in range(len(A)-1):\n if A[i]==A[i+1]:\n n=1\n break\nprint("good"if n==0 else "bad")', 'A=list(input())\nn=0\nfor i in range(len(A)-1):\n if A[i]==A[i+1]:\n n=1\n break\nprint("Good"if n==0 else "Bad")']
['Wrong Answer', 'Accepted']
['s505816366', 's102202826']
[2940.0, 2940.0]
[17.0, 17.0]
[114, 114]
p02993
u733608212
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()\nchecker = True\nfor i in range(3):\n a , b = int(s[i]), int(s[i+1])\n if a == b:\n checker=False\n\nif checker:\n print("Good")\nelse:\n print("bad")', 's = int(input())\nchecker = True\nfor i in range(3):\n if s[i] == s[i+1]:\n checker=False\n\nif checker:\n print("Good")...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s280927852', 's292991092', 's066366152']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[171, 149, 171]
p02993
u733734110
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(nput())\nb=''\nr='Good'\nfor c in a:\n if b == c:\n r='Bad'\n break\n else:\n b = c\nprint(r)", "a=str(input())\nb=''\nr='Good'\nfor c in a:\n if b == c:\n r='Bad'\n break\n else:\n b = c\nprint(r)"]
['Runtime Error', 'Accepted']
['s292677728', 's198018794']
[2940.0, 2940.0]
[17.0, 18.0]
[117, 118]
p02993
u738287470
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()\nans = "Good"\nfor i in range(3):\n if n[i] == n[i+1]:\n ans = "Bad\nprint(ans)\n ', 's = input()\nans = "Good"\nfor i in range(3):\n if s[i] == s[i+1]:\n ans = "Bad"\nprint(ans)']
['Runtime Error', 'Accepted']
['s574470224', 's527942349']
[2940.0, 2940.0]
[17.0, 17.0]
[95, 91]
p02993
u739843002
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`.
['str = input()\n\nflag = False\nfor i in range(len(str)) - 1:\n if str[i] == str[i+1]:\n flag = True\n\nprint("Bad") if flag else print("Good")', 'str = input()\n\nflag = False\nfor i in range(len(str) - 1):\n if str[i] == str[i+1]:\n flag = True\n\nprint("Bad") if flag else print("Good")']
['Runtime Error', 'Accepted']
['s084303439', 's860170260']
[9000.0, 8944.0]
[25.0, 30.0]
[139, 139]
p02993
u740047492
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 s[0]!=s[1] or s[1]!=s[2] or s[2]!=s[3] else "Bad")', 's=int(input())\nprint("Good" if s[0]!=s[1] or s[1]!=s[2] or s[2]!=s[3] else "Bad")', 's=int(input())\nprint("Good" if s[0]==s[1] or s[1]==s[2] or s[2]==s[3] else "Bad")', 's=input()\nprint("Bad" if s[0]==s[1] or s[1]==s[2] or s[2]==s[3] ...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s282799295', 's740297786', 's763266730', 's732917818']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0]
[76, 81, 81, 76]
p02993
u740686641
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())\n\nans = 'Good'\n\nfor i in range(3):\n if S[i] == S[i+1]:\n ans = 'Bad'\n break\n \n print(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")']
['Runtime Error', 'Accepted']
['s871798216', 's019413531']
[2940.0, 2940.0]
[17.0, 19.0]
[119, 91]
p02993
u741282728
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`.
['pass = input()\nlast = Nane\nfor i in pass:\n\tif last == i:\n print("Bad")\n break\n else:\n last = i\nelse:\n print("Good")', 'passward = input()\nlast = None\nfor i in passward:\n if last == i:\n print("Bad")\n break\n else:\n last = i\nelse:\n print("Good")...
['Runtime Error', 'Accepted']
['s398586244', 's290862337']
[2940.0, 2940.0]
[17.0, 17.0]
[142, 153]
p02993
u741495664
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 def Euclidean(x,y):\n if y == 0:\n return x\n else:\n return Euclidean(y,x%y)\n \nA,B,C,D = [int(x) for x in input().split()]\ncount = B - A + 1\nE = Euclidean(C,D)\nF = C*D/E\n \nC_ = math.floor(B/C) - math.floor((A-1)/C)\nD_ = math.floor(B/D) - math.floor...
['Runtime Error', 'Runtime Error', 'Accepted']
['s061658909', 's937786969', 's391977598']
[2940.0, 3064.0, 3060.0]
[17.0, 17.0, 17.0]
[400, 388, 136]
p02993
u742036388
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\nis_good = True\nfor i in range(len(s)-1):\n if s[i] == s[i+1]:\n #print('Bad')\n is_good = False\n break\n\nprint('Good' if is_good else 'Bad')\n \n ", 'a, b, c, d = map(int, input().split())\n\nx,y = c,d\n\n\nwhile y != 0:\n\tx,y = y,x%y\n\nx = (c*...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s342996030', 's702890102', 's309530032']
[2940.0, 3060.0, 2940.0]
[17.0, 19.0, 18.0]
[207, 218, 182]
p02993
u743384563
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[1]==S[2]:\n print('bad')\nelif S[2]==S[3]:\n print('Bad')\nelse:\n print('Good')\n", "S=input()\nif S[0]==S[1]:\n print('Bad')\nelif S[1]==S[2]:\n print('Bad')\nelif S[2]==S[3]:\n print('Bad')\nelse:\n print('Good')\n"]
['Wrong Answer', 'Accepted']
['s892626917', 's020083566']
[2940.0, 2940.0]
[17.0, 18.0]
[126, 126]
p02993
u744683641
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`.
["in_ = input()\nfor i in range(0,len(in_)-1):\n if in_[i] == in_[i+1]:\n print('Bad')\n else:\n print('Good')", 'in_ = input()\nis_ok = "Bad"\nfor i in range(0,len(in_)-1):\n if in_[i] == in_[i+1]:\n pass\n else:\n is_ok = \'Good\'\nprint(is_ok)\n', 'in_ = input()\nis_ok = "Good"\nfor i in range(0,len(...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s291652730', 's490745865', 's657021087']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[111, 132, 115]
p02993
u747873993
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)-2):\n if S[i]==S[i+1]:\n print("Bad")\nelse:\n print("Good")', 'S=input()\nfor i in range(len(S)-1):\n if S[i]==S[i+1]:\n print("Bad")\n break\nelse:\n print("Good")']
['Wrong Answer', 'Accepted']
['s150895620', 's559078081']
[2940.0, 2940.0]
[17.0, 17.0]
[93, 115]
p02993
u752522099
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(4):\n if s[i] == s[i+1]:\n print("Bad")\n else:\n print("Good")', 'a = input()\nfor i in range(3):\n if a[i] == a[i+1]:\n print("Bad")\n break\nprint("Good")', 'a = input()\nfor i in range(3):\n if a[i] == a[i+1]:\n print("Bad")\n ...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s061592780', 's111238702', 's088575202']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[112, 102, 103]
p02993
u753810022
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 ('Good')\nelif S[0] == S[1] == S[2] and S[0] != S[3]:\n print ('Good')\nelif S[1] == S[2] == S[3] and S[0] != S[1]:\n print ('Good')\nelif S[0] == S[1] and S[0] != S[2] and S[0] != S[3]:\n print ('Good')\nelif S[1] == S[2] and S[0] != S[1] and S[1] != ...
['Wrong Answer', 'Accepted']
['s993119881', 's939299906']
[3064.0, 2940.0]
[17.0, 17.0]
[427, 101]
p02993
u754511616
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(input())\ncount=0\n\n \nfor i in range(4):\n if i==3:\n break\n if a[i]==a[i+1] and i==2:\n count+=1\nif count>=2:\n print('Bad')\nelse:\n print('Good')", "a=list(input())\ncount=0\n\n \nfor i in range(4):\n if i==3:\n break\n if a[i]==a[i+1] and i==2:\n count+=2\nif count>=2:\n ...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s361156972', 's380807630', 's955758582', 's439657299']
[8960.0, 9072.0, 9016.0, 8712.0]
[36.0, 30.0, 24.0, 25.0]
[163, 163, 96, 155]
p02993
u755481018
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\nfrom math import ceil\n\ndef lcm(a, b):\n return a*b//gcd(a, b)\n\ndef num(l, r, n):\n return r//n-(l-1)//n\n\na, b, c, d = map(int, input().split(' '))\n\nl = lcm(c, d)\nprint((b-a+1)-num(a, b, c)-num(a, b, d)+num(a, b, l))", "s = list(input())\n\ncount = 0\nfor i in (0, 2):\n if ...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s143564239', 's798979302', 's114109640']
[5076.0, 2940.0, 3060.0]
[35.0, 18.0, 17.0]
[245, 144, 146]
p02993
u757030836
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 any(S[i]==S[i+1] for i in range(3)) else "Good")', 's = input()\n\nprint("Bad" if any(s[i]==s[i+1] for i in range(3)) else "Good")']
['Runtime Error', 'Accepted']
['s834719626', 's897705103']
[2940.0, 2940.0]
[18.0, 17.0]
[74, 76]
p02993
u759721333
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())\nnumber_list = []\ncount = 0\nfor number in s:\n number_list.append(number)\nfor i in range(3):\n if number_list[i] == number_list[i+1]:\n count += 1\n else:\n pass\nif count == 0:\n print('Bad')\nelse:\n print('Good')\n", "s = str(input())\nnumber_list = []\ncount = 0\nf...
['Wrong Answer', 'Accepted']
['s975328135', 's618581641']
[2940.0, 2940.0]
[17.0, 18.0]
[252, 252]
p02993
u761117538
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`.
['\ndef gcdm(g,l):\n while(l):\n g,l=l,g%l\n return g\ndef mota(l,r,a):\n if r<a:\n total=0\n else:\n \n if l<a:\n first=a\n elif l>=a:\n if l%a==0:\n first=l\n else:\n first=(l//a + 1)*a\n #print(a,firs...
['Runtime Error', 'Accepted']
['s522441331', 's950244836']
[3064.0, 2940.0]
[17.0, 17.0]
[629, 102]
p02993
u762420987
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())\ns = set(S)\nif s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:\n print("Bad")\nelse:\n print("Good")', '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")']
['Runtime Error', 'Accepted']
['s786873677', 's597105207']
[3060.0, 2940.0]
[17.0, 18.0]
[112, 101]
p02993
u762540523
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();print("Good"if s[0]==s[1]or s[1]==s[2]or s[2]==s[3]else"Bad")', 's=input();print("Bad"if s[0]==s[1]or s[1]==s[2]or s[2]==s[3]else"Good")']
['Wrong Answer', 'Accepted']
['s839303277', 's288059052']
[2940.0, 2940.0]
[18.0, 17.0]
[71, 71]
p02993
u765590009
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())\n\na = int(s[0])\nfor i in range(1,len(s)) :\n if (a == int(s[i])):\n print("Bad")\n exit()\n a = s[i]\nprint("Good")', 's = list(input())\n \nfor i in range(len(s)-1) :\n if ( int(s[i]) == int(s[i+1])):\n print("Bad")\n exit()\nprint("Good")']
['Wrong Answer', 'Accepted']
['s538726406', 's624014090']
[2940.0, 2940.0]
[17.0, 20.0]
[147, 132]
p02993
u766510304
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())\n\ndef is_s_safe(n):\n for i in range (0,2):\n if s[i]==s[i+1]:\n return ("Bad")\n\n else:\n return ("Good")\nis_s_safe(s)', 'x=input()\ndef goodorbad(n):\n for i in range (0,3):\n if n[i]==n[i+1]:\n return "Good"\n return "Bad"\ngoodorbad(...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s263380876', 's348423885', 's451004104', 's567975876', 's761032381', 's916955448', 's244547805']
[2940.0, 3064.0, 2940.0, 2940.0, 2940.0, 22172.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 324.0, 17.0]
[167, 134, 141, 139, 135, 588, 149]
p02993
u769818408
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`.
['t=input():\nprint("Bad") if (t[0]==t[1])or(t[1]==t[2])or(t[2]==t[3]) else print("Good")', 't=input():\nprint("Bad") if ((t[0]==t[1])or(t[1]==t[2])or(t[2]==t[3])) else print("Good")', 't=input()\nprint("Bad") if (t[0]==t[1])or(t[1]==t[2])or(t[2]==t[3]) else print("Good")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s096190068', 's328407027', 's759484964']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[86, 88, 85]
p02993
u776311944
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())\np = 0\ncntC = int(B / C) - int(A / C)\ncntD = int(B / D) - int(A / D)\n\n\ndef gcd(C, D):\n while D:\n C, D = D, C % D\n return C\n\n\ndef lcm(C, D):\n return C * D // gcd (C, D)\n\n\nCD = lcm(C, D)\n\ncntCD = int(B / CD) - int(A / CD)\n\n# print(cntC, cntD, cnt...
['Runtime Error', 'Accepted']
['s704664451', 's020925552']
[3064.0, 2940.0]
[18.0, 17.0]
[454, 155]
p02993
u776338097
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()\nok = 1\nfor i in range(1, 4):\n\tif a[i] == a[i - 1]:\n ok = 0\nif ok:\n print("Good")\nelse:\n\tprint("Bad")', 'a = input()\nok = 1\nfor i in range(1, 4):\n if a[i] == a[i - 1]:\n ok = 0\nif ok:\n print("Good")\nelse:\n print("Bad")']
['Runtime Error', 'Accepted']
['s474373684', 's014206758']
[2940.0, 2940.0]
[18.0, 17.0]
[118, 128]
p02993
u778710411
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("Good")\nelse:\n print("Bad")', 'N=input()\nif N[0]==N[1] or N[1]==N[2] or N[2]==N[3] :\n print("Bad")\nelse:\n print("Good")']
['Wrong Answer', 'Accepted']
['s470668488', 's213779642']
[2940.0, 2940.0]
[17.0, 17.0]
[94, 94]
p02993
u780565479
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`.
['print("bad" if [ str(x)[0]==str(x)[1] or str(x)[1]==str(x)[2] or str(x)[2]==str(x)[3] for x in [int(input())] ] == [1] else "good")', 'print("Bad" if [sum([x[i]==x[i+1] for i in range(len(x)-1)]) for x in [str(input())]]!=[0] else "Good")']
['Runtime Error', 'Accepted']
['s438809494', 's382125505']
[2940.0, 2940.0]
[18.0, 17.0]
[131, 103]
p02993
u780962115
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()\nlength=len(s)\nflag=True\nfor i in range(length-1):\n if s[i]==s[i+1]:\n flag=False\n break\nif flag:\n print("Yes")\nelse:\n print("No")', 's=input()\nlength=len(s)\nflag=True\nfor i in range(length-1):\n if s[i]==s[i+1]:\n flag=False\n break\nif flag:\n print("Good")\nelse:\n print("Bad...
['Wrong Answer', 'Accepted']
['s692125128', 's815833217']
[3060.0, 2940.0]
[17.0, 17.0]
[147, 150]
p02993
u783175749
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\nif s[0] == s[1]:\n print('Bad')\nif s[1] == s[2]:\n print('Bad') \nif s[2] == s[3]:\n print('Bad')\nelse:\n print(Good')", "s=input()\n\nif s[0] == s[1]:\n print('Bad')\nif s[1] == s[2]:\n print('Bad') \nif s[2] == s[3]:\n print('Bad')\nelse:\n print('Good')", "a=int(input...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s203874700', 's433582749', 's460907016', 's469979062', 's514408951', 's620636170', 's935712854']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[207, 140, 135, 106, 105, 209, 143]
p02993
u785134189
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())\nA = [None for _ in range(N)]\nB = [None for _ in range(N)]\nendflg = [0 for _ in range(N)]\nfor i in range(N):\n A[i],B[i] = map(int,input().split())\ntime = 0\n\nlimit = max(B) + 1\n\nfor i in range(N):\n Pb = B.index(min(B))\n if time + A[Pb] <= B[Pb]:\n endflg[Pb] = 1\n B[Pb] = limit\n ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s542925549', 's947469812', 's292062382']
[3188.0, 3064.0, 3060.0]
[18.0, 18.0, 18.0]
[421, 455, 187]
p02993
u787456042
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 fractions\na, b, c, d = list(map(int, input().split()))\ne = c * d // fractions.gcd(c, d)\n\ncko = b//c - (a-1)//c\ndko = b//d - (a-1)//d\neko = b//e - (a-1)//e\nprint(b-a+1-cko-dko+eko)', 'S = input()\nif "11" in S or "22" in S or "33" in S or \\\n "44" in S or "55" in S or "66" in S or \\\n "77" in S or ...
['Runtime Error', 'Accepted']
['s731514399', 's644674905']
[5048.0, 2940.0]
[35.0, 18.0]
[186, 195]
p02993
u788210940
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\nA, B, C, D = map(int, input().split(' '))\n\nnum_C_baisu = (B//C - math.ceil(A/C)) + 1\n\nnum_D_baisu = (B//D - math.ceil(A/D)) + 1\n\nCD = int(C*D/math.gcd(C,D))\n\nnum_CD_baisu = (B//CD - math.ceil(A/CD)) + 1\n\nbaisu_num = num_C_baisu + num_D_baisu - num_CD_baisu\n\nprint(B-A+1-baisu_num)", "import ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s262050873', 's743781721', 's693180015']
[9140.0, 9164.0, 9044.0]
[25.0, 25.0, 28.0]
[293, 324, 129]
p02993
u789840108
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\npre = 'a'\n\nfor i in s:\n if pre == i:\n print('Bad')\n pre = i\n\nprint('Good')\n\n", "s = input()\n\npre = 'a'\ndame = 0\n\nfor i in s:\n if pre == i:\n dame = 1\n pre = i\n\nif dame == 1:\n print('Bad')\nelse:\n print('Good')\n\n"]
['Wrong Answer', 'Accepted']
['s369714446', 's536121417']
[3064.0, 2940.0]
[18.0, 17.0]
[102, 148]
p02993
u793225530
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 numpy as np\n\nl, n = [i for i in input().split(' ')]\n\nnl = np.array([i for i in range(n)]) + 1\nll = nl + l - 1\n\nmini = ll.index(min(abs(ll)))\nlll = ll.pop(mini)\n\nprint(sum(lll))", "inp = input()\nif inp[0] == inp[1]:\n print('Bad')\nelif inp[1] == inp[2]:\n print('Bad')\nelif inp[2] == inp[3]:\n ...
['Runtime Error', 'Accepted']
['s609182622', 's833296143']
[12408.0, 3060.0]
[149.0, 17.0]
[183, 151]
p02993
u794921280
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\nt= "Bad";\nfor i in range(0,len(s)):\n if s.find(s[i],i+1,len(s)-1) == i+1:\n t="Good"\n \nprint(t)\n\n', '\ns = input()\nt= "Good"\n\nfor i in range(0,len(s)):\n if s.find(s[i],i+1) == i+1:\n t="Bad"\nprint(t)\n \n']
['Wrong Answer', 'Accepted']
['s416044133', 's840428081']
[2940.0, 2940.0]
[17.0, 17.0]
[127, 111]
p02993
u795323188
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 gcd(a, b):\n\twhile b:\n\t\ta, b = b, a % b\n\treturn a\ndef baisu(x,a):\n if x%a ==0:\n return int(x//a)\n else:\n x -=1\n return baisu(x,a)\n\na,b,c,d = map(int,input().split())\n\nto_a = a - baisu(a,c) - baisu(a,d) + baisu(a,c*d/gcd(c,d))\nto_b = b - baisu(b,c) - baisu(b,d) + baisu(b...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s311446402', 's622807698', 's891120845', 's820980770']
[3064.0, 3064.0, 3064.0, 2940.0]
[18.0, 17.0, 20.0, 17.0]
[341, 332, 334, 158]
p02993
u796708718
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())\n\nout = "Good"\n\nfor i in range(0,4):\n if S[i] == S[i+1]:\n out = "Bad"\n \nprint(out)\n\n\n \n', 'S = list(input())\n\nout = Good\n\nfor i in range(0,4):\n if S[i] == S[i+1]:\n out = "Bad"\n \nprint(out)\n\n\n ', 'S = list(input())\n\nout = "Good"\n\nfor i in range(0,3):\n if S[...
['Runtime Error', 'Runtime Error', 'Accepted']
['s327337317', 's689931383', 's609050833']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[112, 109, 107]
p02993
u798260206
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(1,4):\n if s[i-1]==s[i]:\n print("Bad")\n exit()\nprint("Good")\n ', 's =input()\n \nfor i in range(1,4):\n if s[i-1]==s[i]:\n print("Bad")\n exit()\nprint("Good")']
['Runtime Error', 'Accepted']
['s823298788', 's417718924']
[2940.0, 2940.0]
[17.0, 18.0]
[102, 94]
p02993
u798894056
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 fractions\n\nA, B, C, D = map(int, input().split())\n\ns = B - A + 1\n\nif A % C == 0 or A % D == 0:\n A -= 1\n\ndef lcm(x, y):\n return (x * y) // fractions.gcd(x, y)\n\nE = lcm(C, D)\n\nval1 = A // C\nval2 = B // C\nval3 = A // D\nval4 = B // D\nval5 = A // E\nval6 = B // E\n\nprint(s - (val2 - val1 + ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s522484927', 's843131733', 's237543110']
[5108.0, 3188.0, 2940.0]
[35.0, 21.0, 17.0]
[327, 317, 115]
p02993
u804048521
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())\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']
['s548066777', 's218953350']
[2940.0, 2940.0]
[17.0, 17.0]
[102, 97]
p02993
u806999568
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 = 'Good' if s[0] == s[1] or s[1] == s[2] or s[2] == s[3] else 'Bad'\nprint(ans)\n", "s = input()\n\nans = 'Bad' if s[0] == s[1] or s[1] == s[2] or s[2] == s[3] else 'Good'\nprint(ans)\n"]
['Wrong Answer', 'Accepted']
['s714634079', 's102372668']
[2940.0, 2940.0]
[17.0, 17.0]
[96, 96]
p02993
u808757777
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 = input()\n\nn='X'\nans='Good'\nfor i in range(1,4,1):\n if n==num[i]:\n print('Bad')\n break\n else:\n n=num[i]\nprint(ans)", "num = input()\n \nn='X'\nans='Good'\nfor i in range(4):\n if n==num[i]:\n ans='Bad'\n break\n else:\n n=num[i]\nprint(ans)"]
['Wrong Answer', 'Accepted']
['s270435289', 's093926259']
[2940.0, 2940.0]
[17.0, 17.0]
[129, 123]
p02993
u809816772
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`.
['x = (input())\nflag = 0\n\nfor i in (0,4):\n if x[i] == x[i+1]:\n flag += 1\n else :\n flag += 0\n\nif flag == 0:\n print("Good")\nelse :\n print("Bad")', 'x = input()\nflag = 0\n\nfor i in (0,4):\n if x[i] == x[i+1]:\n flag += 1\n else :\n flag += 0\n\nif flag == 0:\n ...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s044935190', 's444682443', 's696265470', 's432534287']
[3064.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0]
[166, 164, 160, 169]
p02993
u811967730
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\nimport fractions\n\n\na, b, c, d = map(int, input().split())\n\n\ndef lcm(x, y):\n # DeprecationWarning: fractions.gcd() is deprecated. Use math.gcd() instead.\n return x * y // fractions.gcd(x, y)\n\n\na1 = a - 1\ndiv_a = (a1 // c) + (a1 // d) - (a1 // lcm(c, d))\ndiv_b = (b // c) + (b // d) - (...
['Runtime Error', 'Accepted']
['s151489426', 's392877522']
[5048.0, 2940.0]
[36.0, 17.0]
[358, 102]
p02993
u812576525
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\ntry:\n for i in range(4):\n if S[i] == S[i + 1]:\n print('Bad')\n break\nexcept:\n print('Good')", "S = list(map(int, input()))\n\ntry:\n for i in range(4):\n if S[i] == S[i + 1]:\n print(S[i],S[i + 1])\n print('...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s504646188', 's943476177', 's216750854']
[2940.0, 3060.0, 2940.0]
[17.0, 17.0, 18.0]
[162, 187, 154]
p02993
u814271993
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()\nl = len(s)\nans = 0\n\nfor i in range(l):\n for k in range(i,k) :\n if s[i] == s[k]:\n ans += 1\n\nif ans == 0:\n print('Good')\nif ans !=0:\n print('Bad')", "s = input()\nl = len(s)\nans = 0\n\nfor i in range(l-1):\n if s[i] == s[i+1]:\n ans +=1\n\nif ans == 0:\n ...
['Runtime Error', 'Accepted']
['s449528113', 's349958934']
[9020.0, 8948.0]
[25.0, 26.0]
[183, 152]
p02993
u814986259
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 print(int((N-1)/2*(L + L + N)))\nelse:\n if L + N - 1 >= 0: \n print(int(N / 2 * (L + L + N - 1)))\n else:\n print(int((N - 1)/ 2 * (L + L + N - 2)))\n', 'S=input()\nfor i in range(3):\n if S[i]==S[i+1]:\n print("Bad")\n exit(0)\nprint("Good")']
['Runtime Error', 'Accepted']
['s767379264', 's005613568']
[2940.0, 2940.0]
[17.0, 18.0]
[195, 90]
p02993
u819461528
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/python\n# -*- Coding: utf-8 -*-\nimport re\n\ndef nchars(s, n):\n assert n > 0\n reg = re.compile("(.)\\\\1{%d,}" % (n - 1)) \n while True:\n m = reg.search(s)\n if not m:\n break\n yield m.group(0)\n s = s[m.end():]\n\n\nif __name__ == \'__main__\':\n\n ...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s285432887', 's337467409', 's456983320', 's844589562']
[3188.0, 3188.0, 3316.0, 3188.0]
[22.0, 19.0, 19.0, 19.0]
[452, 179, 209, 179]
p02993
u821251381
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 fractions\n \nA,B,C,D= map(int,input().split())\n \ndef lcm(x, y):\n return (x * y) // fractions.gcd(x, y)\n \nCD=lcm(C, D)\n \ndc = B//C - (A-1)//C\ndd = B//D - (A-1)//D\ndcd = B//CD - (A-1)//CD\n \nprint(B-A+1-dc-dd+dcd)', 'S = input()\ndif = False\nfor i in range(len(S)-1):\n if S[i]==S[i+1]:\n ...
['Runtime Error', 'Accepted']
['s861050527', 's799254790']
[5088.0, 2940.0]
[36.0, 17.0]
[222, 136]
p02993
u823885866
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 itertools import groupby\nimport sys\nrr = lambda: sys.stdin.readline().rstrip()\ns = rr()\nprint('Good' if len(groupby(s)) == 4 else 'Bad')\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", "from itertools import groupby\nimport sys\nrr = lambda: sys.stdin.readline().rstrip()\n\nprint('Good' if len(list(groupby(rr()))) == 4 else...
['Runtime Error', 'Accepted']
['s181217912', 's822891749']
[9008.0, 9048.0]
[25.0, 26.0]
[156, 142]
p02993
u824988704
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 = list(map(int,input().split()))\n\nflavor = int(n*(l+(l+n-1))/2)\n\nif (l<0):\n if l>=(-n+1):\n \tprint(flavor)\n elif l<(-n+1):\n print(flavor-(l+n-1))\n \n\nelse:\n print(flavor-l)', 'import sys\ns = str(input())\n\nk = None\nfor i in s:\n if i==k:\n print("Bad")\n sys.exit()\n k = i\n\nprint...
['Runtime Error', 'Accepted']
['s453457708', 's956042071']
[3060.0, 2940.0]
[17.0, 17.0]
[184, 115]
p02993
u825769322
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())\nl = (c*d) // fractions.gcd(c,d)\n \nx = b//c - (a-1)//c\ny = b//d - (a-1)//d\nz = b//l - (a-1)//l\ns = int(x+y-z)\n \nprint(b-a+1-s)', 'from fractions import gcd\na,b,c,d = map(int,input().split())\nl = (c*d) // gcd(c,d)\n \nx = b//c - (a-1)//c\ny = b//d ...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s139681265', 's184726791', 's205979529', 's439727019', 's408052509']
[5048.0, 5048.0, 5088.0, 3064.0, 3060.0]
[36.0, 36.0, 35.0, 17.0, 19.0]
[186, 176, 171, 162, 99]
p02993
u827261928
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('Good')\nprint('Bad')", "S=input()\nfor i in range(len(S)-1):\n if S[i]==S[i+1]:\n print('Good')\n exit()\nprint('Bad')", "S=input()\nfor i in range(len(S)-1):\n if S[i]==S[i+1]:\n print('Bad')\n exit()\nprint(...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s289397616', 's834598158', 's569742881']
[8980.0, 8968.0, 8980.0]
[28.0, 27.0, 27.0]
[91, 106, 106]
p02993
u828261239
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(map(int,input().split()))\nflg=0\nfor i in range(len(a)-1):\n if(a[i]==a[i+1]):\n flg =1\n break\nif(flg==1):\n print("Bad")\nelif(flg==0):\n print("Good")\n', '\na= list(input())\nflg=0\nfor i in range(len(a)-1):\n if(a[i]==a[i+1]):\n flg =1\n break\nif(flg==1):\n p...
['Wrong Answer', 'Accepted']
['s943264189', 's031108518']
[2940.0, 2940.0]
[17.0, 18.0]
[178, 162]
p02993
u829859091
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(s)\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']
['s821301795', 's500297304']
[2940.0, 2940.0]
[17.0, 18.0]
[117, 108]
p02993
u830054172
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())\nflag = 0\nfor i in range(len(n)-1):\n if n[i] == n[i+1]:\n flag = 1\n\nif flag == 1:\n print("Bad")\nelse:\n print("Good")', 'n = int(input())\nflag = 0\nfor i in range(len(n)-1):\n if n[i] == n[i+1]:\n flag = 1\n\nif flag == 1:\n print("Bad")\nelse:\n print("Good)', 'n = input...
['Runtime Error', 'Runtime Error', 'Accepted']
['s195685086', 's882209350', 's311516292']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[147, 136, 142]
p02993
u831830097
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())\n\nfor i in range(len(s)):\n if s.count(s[i]) == 1:\n print("Good")\n quit()\nprint("Bad")', 's = list(input())\n \nif s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:\n print("Bad")\nprint("Good")', 's = list(input())\n \nif s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:\n ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s508917986', 's554793632', 's135501933']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[119, 103, 118]
p02993
u835732324
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())\nl = list(S)\ns = int(len(S))\n\nnum = 0\nfor i in range(s):\n for j in range(i+1, s):\n if l[i] == l[j]:\n num += 1\n else:\n num += 0\n\nif num == 0:\n print("Yes")\nelse:\n print("No")', 'import sys\nS = int(input())\nl = list(S)\ns = int(len(S))\n\nnum...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s093094753', 's333653852', 's438387199', 's734362473', 's794149040', 's706690771']
[3060.0, 3060.0, 3060.0, 3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[234, 219, 194, 192, 146, 138]
p02993
u838959206
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()\nres = "Good"\nfor i in range(1,len(s),1):\n if s[i-1] == s[i]:\n res = "BAD"\n\nprint(res)', 's = input()\nres = "Good"\nfor i in range(1,len(s),1):\n if s[i-1] == s[i]:\n res = "BAD"\nprint(res)', 's = input()\nres = "Good"\nfor i in range(1,len(s),1):\n if s[i-1] == s[i]:\n ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s471474058', 's709753562', 's171914680']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[107, 106, 106]
p02993
u840916444
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 gcd(a, b):\n while b:\n a, b = b, a % b\n return a\n\na, b, c, d = map(int, input().split())\nnum = 0\ncd = c*d/(gcd(c,d))\ns = b - a + 1\ns_c = int(s/c)\ns_d = int(s/d)\ns_cd = int(s/cd)\nif(a%c >= b%c):\n num = num + 1\nif(a%d >= b%d):\n num = num + 1\nif(a%cd >= b%cd):\n num = num - 1\nprint(s -(s_c + ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s331123182', 's816738785', 's998209955']
[3064.0, 2940.0, 3064.0]
[18.0, 17.0, 17.0]
[318, 211, 234]
p02993
u841021102
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`.
['inp = map(int, input().split())\ninp = inp.list()\nhard = 0\nfor number in range(0, 3) :\n if inp[number] == inp[number + 1] :\n print ("Bad")\n hard = 1\n \nif hard == 0 :\n print ("Good")', 'inp = map(int, input().split())\ninp = list(inp)\nhard = 0\nfor number in range(0, 3) :\n if inp[number] == inp[n...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s125466974', 's244370294', 's346183912', 's596298006', 's843061795', 's286211524']
[8988.0, 8960.0, 8968.0, 9032.0, 8936.0, 8960.0]
[21.0, 23.0, 28.0, 21.0, 23.0, 26.0]
[191, 194, 167, 176, 194, 165]
p02993
u842375327
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 and L+N-1>0:\n print(int((2*L+N-1)*N/2))\nelif L>0:\n print(int((2*L+N)*(N-1)/2))\nelse:\n print(int((2*L+N-2)*(N-1)/2))', 'N, L= map(int, input().split())\nif L<0 and L+N-1>0:\n print(int((2*L+N-1)*N/2))\nelif L>0:\n print(int((2*L+N)*(N-1)/2))\nelse:\n print...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s105111101', 's353309952', 's680611348', 's774768290', 's855489635']
[3060.0, 3060.0, 2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[163, 163, 160, 168, 154]
p02993
u845847173
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(e) for e in 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 = str(input())\n\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']
['s103634880', 's626698904']
[2940.0, 2940.0]
[17.0, 17.0]
[128, 107]
p02993
u846652026
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()))\nans="Good"\nfor i in range(len(s)):\n if i == 0:\n continue\n if s[i] == s[i-1]:\n ans = "Bad"', 's=list(map(int, input()))\nans="Good"\nfor i in range(len(s)):\n if i == 0:\n continue\n if s[i] == s[i-1]:\n ans = "Bad"\n \nprint(ans)']
['Wrong Answer', 'Accepted']
['s788579568', 's551118209']
[2940.0, 2940.0]
[17.0, 17.0]
[123, 139]
p02993
u847605090
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('Yes')\nelse:\n print('No')", "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']
['s331777367', 's456096133']
[2940.0, 2940.0]
[17.0, 17.0]
[87, 89]
p02993
u854992222
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()))\nif s[0] != s[1] and s[1] != s[2] and s[2] != s[3]:\n print('Good')\nelse:\n print('Bad')", "s = list(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']
['s138205216', 's877173408']
[2940.0, 2940.0]
[17.0, 18.0]
[116, 111]
p02993
u859987056
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())\nS = 0\nb = abs(L)\nfor i in range(1,N+1):\n a = L + i - 1\n S += a\n b = min(abs(a),b)\nif -N < L:\n ans = S - b\nelse:\n ans = S + b\nprint(ans)', 'A,B,C,D = map(int,input().split())\nX = max(C,D)\nY = min(C,D)\ndef gcd(a,b):\n while b!= 0:\n a,b = b,a%b\n return a\nl = C*D/...
['Runtime Error', 'Runtime Error', 'Accepted']
['s129973869', 's762330357', 's093668324']
[3060.0, 3064.0, 2940.0]
[17.0, 18.0, 17.0]
[171, 209, 91]
p02993
u860546679
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()\nprint("Good") if a[0]!=a[1]&a[1]!=a[2]&a[2]!=a[3] else print("Bad")', 's=input()\nfor i in range(1,4):\n if s[i]==s[i-1]:\n print("Bad")\n return\nprint("Good")', 'a=input()\nif a[0]==a[1] or a[1]==a[2] or a[2]==a[3]:\n print("Bad")\nelse:\n print("Good")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s137868448', 's443068771', 's090287871']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[77, 91, 89]
p02993
u867848444
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(3):\n if s[i]==s[i+1]:\n print('Bad')\n break\n else:\n print('Good')\n break", "s=input()\nn=0\nfor i in range(3):\n if s[i]==s[i+1]:\n n+=1\n else:\n n+=0\nif n=>1:\n print('Bad')\nelse:\n print('Good')", "s=input()\nn=0\nfor i in...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s023459643', 's092979774', 's099598528', 's174772848', 's355641650', 's472348464', 's671636530', 's794288987', 's844464685']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[130, 139, 125, 137, 148, 142, 98, 137, 179]
p02993
u868237899
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 \nresult = 0\nfor i in range(len(S) - 1):\n if S[i] == S[i+1]:\n print("Bad")\n \tbreak \n\telse:\n \tprint("Good")', 'S = input()\n \nresult = 0\nfor i in range(len(S) - 1):\n if S[i] == S[i+1]:\n print("Bad")\n \tbreak\nelse:\n print("Good")', 'S = int(input())\n\nresul...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s095654034', 's327426022', 's476264477', 's886444560']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 19.0]
[134, 131, 159, 154]
p02993
u869265610
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 else: print("Good")\n', 'S=input()\nif S[3]=S[4] or S[1]=S[2] or S[2]=S[3]:\n print("Bad")\n else: print("Good")\n', 'S=input()\nif S[0]=S[1] or S[1]=S[2] or S[2]=S[3]:\n print("Bad")\n else print("Good")', 'S = input()\nif S[0]==S[1] or S[1...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s057081465', 's384090812', 's444332627', 's445028298', 's554777969', 's581682363', 's859923370', 's931727080']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[90, 87, 85, 96, 148, 143, 86, 96]
p02993
u870532455
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())\nhoge = []\n\nfor i in range(n):\n hoge.append(list(map(int, input().split())))\nhoge.sort(key = lambda x: x[1])\n\ntotal = 0\nable = True\nfor i in hoge:\n total += i[0]\n if i[1]<total:\n able = False\n\nif able:\n print("Yes")\nelse:\n print("No")', 'pa = input()\nx = ""\nout...
['Runtime Error', 'Accepted']
['s165929666', 's519717401']
[3064.0, 2940.0]
[18.0, 18.0]
[272, 137]
p02993
u871596687
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()))\n\nresult = True\nfor i in range(len(s)-1):\n if a[i] == a[i+1]:\n result = bad\n break\nif result == "bad":\n print("Bad")\nelse:\n print("Good")', 's = list(map(int,input()))\n\nresult = "True"\nfor i in range(len(s)-1):\n if s[i] == s[i+1]:\n result = "ba...
['Runtime Error', 'Accepted']
['s417810131', 's638912879']
[2940.0, 2940.0]
[18.0, 17.0]
[186, 190]
p02993
u873134970
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\ni = int(input())\ni = list(i)\nfor k in range(3):\n if i[k] == i[k+1]:\n print("Bad")\n sys.exit()\nprint("Good")', 'import sys\ni = input()\ni = list(map(int,list(i)))\nfor k in range(3):\n if i[k] == i[k+1]:\n print("Bad")\n sys.exit()\nprint("Good")']
['Runtime Error', 'Accepted']
['s290148251', 's972844407']
[2940.0, 2940.0]
[19.0, 17.0]
[125, 135]
p02993
u873839198
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\nfor i in range(0,3):\n if a[i] == a[i+1]:\n print("Bad")\n\treturn\n\nprint("Good")', 'a = input()\nflag = False\n\nfor i in range(0, 3):\n if a[i] == a[i+1]:\n print("Bad")\n flag = True\n break\n\nif not flag:\n print("Good")\n']
['Runtime Error', 'Accepted']
['s503908006', 's444815022']
[2940.0, 2940.0]
[17.0, 17.0]
[94, 158]
p02993
u877428733
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 = list(map(int,input().split()))\n\n\ni = 1\ntaste = []\n\nwhile i == N:\n taste.append(L + i - 1)\n i += 1\n\nif L > 0 :\n print(sum(taste[1:N]))\nelif L < N and N + L < 0:\n print(sum(taste[0:N-1]))\nelif L <= 0 and N - L >= 0:\n print(sum(taste))\n', 'N,L = list(map(int,input...
['Runtime Error', 'Runtime Error', 'Accepted']
['s147570325', 's602719934', 's565585927']
[3060.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[274, 282, 128]
p02993
u886902015
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("Yes")\nelse:\n print("No")', 's=input()\nif s[0]!=s[1] and s[1]!=s[2] and s[2]!=s[3]:\n print("Good")\nelse:\n print("Bad")\n']
['Wrong Answer', 'Accepted']
['s242506895', 's336342849']
[9028.0, 9028.0]
[26.0, 25.0]
[89, 92]
p02993
u888380104
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(3):\n if S[i] == S[i+1]:\n print('Bad')\n else:\n print('Good')", "S = input()\nfor i in range(3):\n if S[i] == S[i+1]:\n print('Bad')\n exit()\nprint('Good')"]
['Wrong Answer', 'Accepted']
['s850287983', 's050885653']
[8992.0, 8916.0]
[27.0, 31.0]
[106, 103]
p02993
u888933875
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(len(S))\nfor i in range(len(S)-1):\n if S[i] == S[i+1]:\n print("Bad")\n exit()\nprint("Good")', "x = input()\nans = 'Good'\nfor i in range(len(x)-1):\n if x[i]==x[i+1]:\n ans = 'Bad'\n break\nprint(ans)"]
['Wrong Answer', 'Accepted']
['s475117059', 's484294892']
[9016.0, 8884.0]
[30.0, 30.0]
[114, 106]
p02993
u890461092
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`.
["char_list = list(str)\nfor i in range(4):\n \n if i == 3:\n print('Good')\n break\n \n if char_list[i] == char_list[i+1] and i < 3:\n print('Bad')\n break", "char_list = list(input())\nfor i in range(4):\n \n if i == 3:\n print('Good')\n break\n \n if ...
['Runtime Error', 'Accepted']
['s094114117', 's604443539']
[2940.0, 2940.0]
[17.0, 17.0]
[185, 189]
p02993
u898967808
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())\nal = b-a+1\n\nx = int(b/c) -int((a-1)/c)\n\ny = int(b/d) -int((a-1)/d)\n\nlcm_xy = int(c*d/math.gcd(c,d))\nで割り切れる個数\nxy = int(b/lcm_xy) -int((a-1)/lcm_xy)\n#print(x,y,xy,al)\nprint(al-(x+y-xy))', 'a,b,c,d=map(int,input().split())\nr_ab=range(a,b+1)\ncount=0\nfor i in r_ab:\n if i%c!...
['Runtime Error', 'Runtime Error', 'Accepted']
['s359032188', 's675275481', 's303130873']
[3064.0, 3060.0, 3060.0]
[17.0, 17.0, 19.0]
[330, 123, 91]
p02993
u899929023
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(lambda x: int(x),input().split()))\njudge = True\nfor i in range(len(s)-1):\n if s[i]==s[i+1]:\n judge=False\n break\nif judge:\n print("Good")\nelse:\n print("Bad")\n', 's = input()\njudge = True\nfor i in range(len(s)-1):\n if s[i]==s[i+1]:\n judge=False\n break\...
['Wrong Answer', 'Accepted']
['s252064082', 's119426887']
[2940.0, 2940.0]
[17.0, 17.0]
[193, 157]
p02993
u901060001
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 main():\n S = sorted(int(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\n\nif __name__ == "__main__":\n main()', 'def main():\n S = input()\n if S[0] == S[1] or S[1] == S[2] or S[2] == S[3]:\n print("Bad")\n else:\n ...
['Runtime Error', 'Accepted']
['s388531671', 's023363198']
[3056.0, 2940.0]
[17.0, 17.0]
[186, 174]
p02993
u902462889
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`.
['\nlst_A = list(input())\n\nans = "Bad"\n\nfor i in range(3):\n\tif lst_A[i] == lst_A[i + 1]\n \t\tbreak\nelse:\n ans = "Good"\n \nprint(ans)\n', 'lst_A = list(input())\n \nans = "Bad"\n \nfor i in range(3):\n\tif lst_A[i] == lst_A[i + 1]:\n \t\tbreak\nelse:\n ans = "Good"\n \nprint(ans)']
['Runtime Error', 'Accepted']
['s141051034', 's930296636']
[2940.0, 2940.0]
[17.0, 17.0]
[130, 131]
p02993
u903005414
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, list(input())))\nfor i in range(s - 1):\n if s[i] == s[i + 1]:\n print('Bad')\n print('Good')\n", "s = list(map(int, list(input())))\nfor i in range(len(s) - 1):\n if s[i] == s[i + 1]:\n print('Bad')\n print('Good')\n", "s = list(map(int, list(input())))\nfor i in range(len...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s298812818', 's464100048', 's727856515', 's788382207']
[2940.0, 3064.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[121, 126, 132, 164]
p02993
u903629757
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())\nfor i in range[3]:\n if (s[i] == s[i+1]):\n \tprint('Bad')\n \texit()\nelse:\n print('Good')\n", "s = input()\nfor i in range[1111-9999]\nif (s[i] = s[i] + 1):\n print('Bad')\n exit()\nelse:\n print('Good')", "s = input()\nfor i in range[9]\nif (s[i] == s[i] + 1):\n print('Bad')\n exit()\n...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s024443189', 's051164354', 's065182654', 's126026428', 's377898537', 's397348626', 's411954882', 's556755000', 's717876376', 's756715050', 's825494204', 's949456222', 's783839180']
[9008.0, 8996.0, 8948.0, 9020.0, 8952.0, 8804.0, 8916.0, 8712.0, 8956.0, 9024.0, 8868.0, 8904.0, 8908.0]
[25.0, 25.0, 26.0, 23.0, 23.0, 24.0, 25.0, 28.0, 23.0, 20.0, 26.0, 25.0, 29.0]
[108, 105, 99, 109, 108, 106, 106, 107, 109, 108, 108, 110, 119]
p02993
u905268546
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;print('GBoaodd'[re.search('r(.)\\1',input())::2])\n", 'import re;print("GBoaodd"[len(re.sub(r"(.)\\1","",input()))!=4::2])\n']
['Wrong Answer', 'Accepted']
['s648381285', 's382695882']
[3188.0, 3188.0]
[21.0, 19.0]
[59, 67]
p02993
u905582793
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\nreadline=sys.stdin.buffer.readline\nn=int(input())\na=[list(map(int, readline().split())) for _ in range(n)]\na.sort(key=lambda x: x[1])\nt=0\nfor i in range(n):\n t+=a[i][0]\n if t>a[i][1]:\n print("No")\n break\n elif i==n-1:\n print("Yes")\n', 's=input()\nif s[0]==s[1] or s[1]==s[2] or s[2]...
['Runtime Error', 'Accepted']
['s947818649', 's095761048']
[4596.0, 2940.0]
[33.0, 17.0]
[255, 89]