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 | u325874977 | 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 = int(input())\n\nif (str / 1000 == str % 1000 / 100) or (str % 1000 / 100 == str % 100 / 10) or (str % 100 / 10 == str % 10) :\n print("Bad")\nelse:\n print("Good")', 'str = int(input())\n\nif (str / 1000 == str % 1000 / 100) or (str % 1000 / 100 == str % 100 / 10) or (str % 100 / 10 == str % 10) :\n print("B... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s319393244', 's922643084', 's121991346'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0] | [166, 210, 216] |
p02993 | u327162583 | 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()\nS = list(S)\nS.append("a")\nhoge = "Good"\nfor i in range(4):\n if hoge[i] == hoge[i + 1]:\n hoge = "Bad"\n\nprint(hoge)', 'S = input()\nS = list(S)\nS.append("a")\nhoge = "Good"\nfor i in range(4):\n if S[i] == S[i + 1]:\n hoge = "Bad"\n\nprint(hoge)'] | ['Runtime Error', 'Accepted'] | ['s342873555', 's842897853'] | [2940.0, 2940.0] | [17.0, 17.0] | [135, 129] |
p02993 | u327248573 | 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()\nif re.search(r\'(11|22|33|44|55|66|77|88|99|00)\', s):\n print("Yes")\nelse:\n print("No")', 'import re\ns = input()\nif re.search(r\'(11|22|33|44|55|66|77|88|99|00)\', s):\n print("Bad")\nelse:\n print("Good")'] | ['Wrong Answer', 'Accepted'] | ['s332618626', 's189868528'] | [3188.0, 3188.0] | [19.0, 19.0] | [113, 115] |
p02993 | u327532412 | 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")\nprint("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\tprint("Good")'] | ['Wrong Answer', 'Accepted'] | ['s470627170', 's343981727'] | [3060.0, 2940.0] | [17.0, 17.0] | [131, 138] |
p02993 | u328755070 | 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())\nflag = 0\n\nfor i in range(3):\n if S[i] == S[i+1]:\n flag = 1\n \nif flag:\n print("Bad")\n \nelse:\n print("Good")', 'S = list(input())\nflag = 0\n\nfor i in range(3):\n if S[i] == S[i+1]:\n flag = 1\n \nif flag:\n print("Bad")\n \nelse:\n print("Good")'] | ['Runtime Error', 'Accepted'] | ['s058260800', 's056674143'] | [2940.0, 2940.0] | [20.0, 17.0] | [133, 134] |
p02993 | u329058683 | 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())\nLL=[L+i for i in range(N)]\nLLL=[abs(L+i) for i in range(N)]\n\nif N+L<0:\n print(sum(LL)+min(LLL))\nelse:\n print(sum(LL)-min(LLL))', 'N,L=map(int,input().split())\nLL=[L+i for i in range(N)]\nLLL=[abs(L+i) for i in range(N)]\n\nif N+L<0:\n print(sum(LL)+min(LLL))\nelif N+L=0:\n pri... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s029910702', 's830458371', 's290263343'] | [3060.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [157, 186, 89] |
p02993 | u331381193 | 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()\n\nx1=pass[0]\nx2=pass[1]\nx3=pass[2]\nx4=pass[3]\n\nres='Good'\nif x1=x2: res='Bad'\nif x2=x3: res='Bad'\nif x3=x4: res='Bad'\n\nprint(res)", "pas=input()\n\nx1=pas[0]\nx2=pas[1]\nx3=pas[2]\nx4=pas[3]\n\nres='Good'\nif x1==x2: res='Bad'\nif x2==x3: res='Bad'\nif x3==x4: res='Bad'\n\nprint(res)"] | ['Runtime Error', 'Accepted'] | ['s409435072', 's566778804'] | [2940.0, 3060.0] | [17.0, 17.0] | [141, 139] |
p02993 | u331997680 | 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())\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'] | ['s739630301', 's431680639'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 97] |
p02993 | u334222621 | 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]:\n print('Bad')\nelif S[1]==S[2]:\n print('Bad')\nelif S[2]==S[3]:\n print('Bad')\nelse:\n print('Good')\n \n\n", "S=list(input())\n\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'] | ['s487897425', 's025774815'] | [2940.0, 2940.0] | [18.0, 17.0] | [133, 132] |
p02993 | u334399681 | 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\ninput = list(map(int,input().split()))\nA = input[0]\nB = input[1]\nC = input[2]\nD = input[3]\n\nbetweenAandB = B-A+1\n\ncA = math.ceil(A/C)\ncB = int(B/C)\ncDiv = cB - cA + 1\n\ndA = math.ceil(A/D)\ndB = int(B/D)\ndDiv = dB - dA + 1\n\nGCD = math.gcd(C,D)\nLCM = C*D/GCD\n\nlcmA = math.ceil(A/LCM)\nlcmB... | ['Runtime Error', 'Accepted'] | ['s469583254', 's725834683'] | [3064.0, 2940.0] | [18.0, 17.0] | [412, 157] |
p02993 | u337573893 | 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())\n\ns = n*(l-1) + n*(n+1)/2\nc = s\nj = 1\n\nfor i in range(n):\n t = s - ((l-1)-1)\n T = abs(s-t)\n if T < c:\n c = T\n j = i\n \ne = l+j\nprint(int(s-e))\n \n\n\n', 'n = list(input())\n\nif n[0] == n[1]:\n print("Bad")\n exit()\nelif n[1] == n[2]:\n print("Bad")\n ex... | ['Runtime Error', 'Accepted'] | ['s811511919', 's004841360'] | [8928.0, 8856.0] | [30.0, 29.0] | [191, 159] |
p02993 | u338778575 | 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=list(input())\nf=0\nfor i in range(len(n)):\n if(n[i]==n[i+1]):\n \tf=1\nif(f==1):\n\tprint("Bad")\nelse:\n\tprint("Good")', 'n=list(input())\nf=0\nfor i in range(len(n)-1):\n if(n[i]==n[i+1]):\n f=1\nif(f==1):\n print("Bad")\nelse:\n print("Good")'] | ['Runtime Error', 'Accepted'] | ['s615070900', 's989478525'] | [2940.0, 3060.0] | [17.0, 17.0] | [119, 130] |
p02993 | u340792767 | 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`. | ['security_num = input()\npre_num = ""\n \nfor num in security_num:\n\tif pre_num == num: return "Bad"\n\tpre_num = num\n\nreturn "Good"', 'import fractions\n\nA,B,C,D = input().strip().split(" ")\nA = int(A)\nB = int(B)\nC = int(C)\nD = int(D)\n\ndiv1 = A // C\ndiv2 = A // D\ndiv3 = (B-1) // C\ndiv4 = (B-1) // D\n\... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s411942542', 's771308006', 's989702259'] | [2940.0, 5048.0, 3060.0] | [17.0, 36.0, 17.0] | [128, 302, 187] |
p02993 | u345132740 | 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()\na=(str(S)[0])\nb=(str(S)[1])\nc=(str(S)[2])\nd=(str(S)[3])\nif(int(a)==int(b)):\n print("Bad")\nelse:\n print("Good")\n if(int(b)==int(c)):\n print("Bad")\nelse:\n print("Good")\nif(int(c)==int(d)):\n print("Bad")\nelse:\n print("Good")', 'S=input()\na=(str(S)[0])\nb=(str(S)[1])\nc=(str(S)[2... | ['Runtime Error', 'Accepted'] | ['s890773793', 's921977057'] | [2940.0, 3064.0] | [17.0, 17.0] | [246, 198] |
p02993 | u345136423 | 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\nprint('Good' if a[i+1] == a[i] else 'Bad' for i in range(len(a)))", 'a,b,c,d = map(int, input().split())\nif a =b or a=c or a=d or b =c or c = d or b= d:\n print("Good")\nelse:\n print("Bad")', "a,b,c,d = map(int, input().split())\n\nif a = b or a = c or a = d or b = c or b = d or c =d:\n print('Goo... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s450301418', 's505406838', 's772601844', 's010711021'] | [2940.0, 2940.0, 2940.0, 3064.0] | [17.0, 17.0, 17.0, 18.0] | [78, 120, 125, 68] |
p02993 | u347600233 | 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 = 1\nfor i in range(1, n):\n if s[i - 1] == s[i]:\n flag = 0\nif flag:\n print('Yes')\nelse:\n print('No')", "s = input()\nflag = 1\nn = len(s)\nfor i in range(1, n):\n if s[i - 1] == s[i]:\n flag = 0\nif flag:\n print('Yes')\nelse:\n print('No')", "s = input()\nprint... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s683715174', 's879527337', 's836213191'] | [2940.0, 3060.0, 8912.0] | [17.0, 17.0, 25.0] | [132, 143, 79] |
p02993 | u348945811 | 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())\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 = list(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'] | ['s250676114', 's945746226'] | [2940.0, 2940.0] | [17.0, 17.0] | [119, 110] |
p02993 | u349091349 | 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()))\nfor i in (0,2):\n if S[i] == S[i+1] :\n print('Bad')\n break\nelse:\n print('Good')", "S=list(map(int,input()))\nfor i in (0,len(S)-2):\n if S[i] == S[i+1] :\n print('Bad')\n break\nelse:\n print('Good')", 'S=input()\nif S[0]==S[1] or S[1]==S[2] or S[2]==S[3]:\n print("Bad")... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s108621476', 's316402198', 's516862556'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [111, 118, 89] |
p02993 | u350093546 | 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] and s[1]!=s[2] and s[2]!=s[3]:\n print('Good')\n \nelse:\n print('Bad')\n ", "s=input()\nif s[0]!=s[1] and s[1]!=s[2] and s[2]!=s[3]:\n print('Good')\n \nelse:\n print('Bad')\n \n"] | ['Runtime Error', 'Accepted'] | ['s958187565', 's778217877'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 98] |
p02993 | u350578302 | 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()\na = []\na = list(s)\n\nif a[0]==a[1] or a[1]==a[2] or a[2]==a[3]:\n\tprint('bad')\nelse:\n\tprint('good')", "s = input()\na = []\na = list(s)\n\nif a[0]==a[1] or a[1]==a[2] or a[2]==a[3]:\n\tprint('Bad')\nelse:\n\tprint('Good')"] | ['Wrong Answer', 'Accepted'] | ['s446776683', 's364723535'] | [2940.0, 2940.0] | [17.0, 17.0] | [109, 109] |
p02993 | u350667455 | 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())\nprint("Bad" if a==b or b==c or c==d else "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'] | ['s347080458', 's731334345'] | [2940.0, 2940.0] | [17.0, 17.0] | [84, 95] |
p02993 | u355154595 | 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] and s[1]!=s[2] and s[2]!=s[3]:\n print('Good')\nelse:\n print('Bad')", "s=input()\nn=0\nwhile s[n]!=s[n+1]:\n n+=1\n print('Good')\nelse:\n print('Bad')\n", "s=int(input())\nn=0\nwhile s[n]!=s[n+1]:\n n+=1\n n=5:\n print('Good') \nelse:\n print('Bad')", "s=... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s155606361', 's396667475', 's759957219', 's162129185'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [100, 84, 102, 96] |
p02993 | u356701928 | 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())\nif a[0]==a[1]:\n print("Bad")\n elif a[1]==a[2]:\n print("Bad")\n elif a[2]==a[3]:\n print("Bad")\n else:\n print("Good")', 'a=map(int,input().split())\nif a[0]==a[1]:\n print("Bad")\n elif a[1]==a[2]:\n print("Bad")\n elif a[2]==a[3]:\n print("Bad")\n else:... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s185603322', 's314798327', 's360806605', 's499774652', 's514487701', 's657114350', 's904577381', 's537426254'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0] | [155, 166, 154, 154, 149, 157, 160, 89] |
p02993 | u357751375 | 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'] | ['s733451371', 's048976237'] | [2940.0, 2940.0] | [17.0, 17.0] | [106, 101] |
p02993 | u358254559 | 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[j+1]:\n print("Bad")\n exit()\nprint("Good")', 's=input()\n\nfor i in range(3):\n if s[i] == s[i+1]:\n print("Bad")\n exit()\nprint("Good")'] | ['Runtime Error', 'Accepted'] | ['s713120971', 's340060078'] | [2940.0, 2940.0] | [17.0, 17.0] | [122, 122] |
p02993 | u358957649 | 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 = map(int, input().split())\n\nflag = 0;\n\nfor i in range(1, 3):\n if S[i-1] = S[i] :\n flag = 1\n\nres = "Good" if flag==0 else "Bad"\n\nprint(res)', 'S = input()\n\nflag = 0;\n\nfor i in range(1, 4):\n if S[i-1] == S[i] :\n flag = 1\n\nres = "Good" if flag==0 else "Bad"\n\nprint(res)'] | ['Runtime Error', 'Accepted'] | ['s645391032', 's991411378'] | [2940.0, 2940.0] | [17.0, 17.0] | [151, 134] |
p02993 | u360613784 | 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('Bad')\n else:\n print('Good')\n", "S = str(input())\nA = S.split()\n\nfor i in range(A):\n if A[i]=A[i+1]:\n print('Bad')\n else:\n print('Good')\n", "S = str(input())\nA = S.split()\n\nfor i in A:\n if A[i]=A... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s034155256', 's092797169', 's375648753', 's511848177', 's837762580', 's881473373', 's865380530'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0] | [110, 124, 117, 117, 122, 112, 103] |
p02993 | u361381049 | 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] 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')", "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', 'Runtime Error', 'Accepted'] | ['s123951336', 's796780340', 's213577242'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [102, 98, 97] |
p02993 | u363146889 | 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 -*-\n\nN,L=map(int, input().split())\n\nans = 0\nfor i in range(N):\n ans = ans + L + i\n\nif L > 0:\n ans = ans - L\nif (L + N - 1) < 0:\n ans = ans - (L + N - 1)\n\nprint(ans)', "# -*- coding: utf-8 -*-\n\nS=input()\n\nans = 'Good'\n\nif S[0] == S[1] or S[1] == S[2] or S[2] == S[3] :\n ... | ['Runtime Error', 'Accepted'] | ['s871216474', 's355764307'] | [2940.0, 2940.0] | [18.0, 18.0] | [193, 127] |
p02993 | u363237465 | 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 = [list(map(int, input().split())) for i in range(n)]\nl.sort(key= x:x[1])\nt=0\nfor i in l:\n a,b=i\n t+=a\n if(t>b):\n print("No")\n break\n else:\n print("Yes")\n', 'S = input()\nn=0\nb=0\nwhile n<3 :\n if S[n]==S[n+1]:\n b=1\n n+=1\nif b==1:\n p... | ['Runtime Error', 'Accepted'] | ['s158200172', 's310920700'] | [2940.0, 2940.0] | [17.0, 18.0] | [206, 124] |
p02993 | u363315718 | 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\nfrom fractions import gcd\nsys.setrecursionlimit(10**7)\nINF = 10 ** 18\nMOD = 10 ** 9 + 7\ndef LI(): return list(map(int, sys.stdin.readline().split()))\ndef II(): return int(sys.stdin.readline())\ndef LS(): return list(map(list, sys.stdin.readline().split()))\ndef S(): return list(sys.stdin.readline())[... | ['Runtime Error', 'Accepted'] | ['s208767068', 's405243754'] | [5076.0, 3436.0] | [35.0, 24.0] | [470, 441] |
p02993 | u364061715 | 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`. | ["i=list(input())\no=0\nfor j in range(3):\n if int(i[j])==int(i[j+1]):\n print('Bad')\n o+=1\n break\n else:\n None\nif o==1:\n print('Good')\nelse:\n None\n ", "i=list(input())\no=0\nfor j in range(3):\n if int(i[j])==int(i[j+1]):\n print('Bad')\n o+=1\n break\n else:\n ... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s350616801', 's376510287', 's355505266'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [160, 170, 160] |
p02993 | u366541443 | 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 = list(map(int, input().split()))\na = a[0]\n\nx=a%10\ny=a//10%10\nz=a//100%10\nw=a//1000\n\nif(x!=y and y!= z and z!= w):\n print("Good")\nelse:\n print("Bad")\n \nprint(x,y,z,w)', 'import math\n\na = list(map(int, input().split()))\na = a[0]\n\nx=a%10\ny=a//10%10\nz=a//100%10\nw=a//1000\n\... | ['Wrong Answer', 'Accepted'] | ['s393957019', 's766738125'] | [3060.0, 3060.0] | [17.0, 17.0] | [190, 170] |
p02993 | u366928732 | 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(3):\n if S[i] == S[i+1]:\n print('bad')\n break\n if i == 2:\n print('good')\n", "S = list(input())\n\nfor i in range(3):\n if S[i] == S[i+1]:\n print('Bad')\n break\n if i == 2:\n print('Good')\n"] | ['Wrong Answer', 'Accepted'] | ['s599692351', 's968713739'] | [2940.0, 3060.0] | [18.0, 17.0] | [133, 133] |
p02993 | u368516842 | 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 = (int(i) for i in input().split())\nC = 0\nS = 0\n\nif L > 0:\n\tfor i in range(N):\n\t\tif i > 0:\n\t\t\tS += L + i\nelif L+N-1 < 0:\n\tfor i in range(N):\n\t\tif i < N-1:\n\t\t\tS += L + i\nelse:\n\tfor i in range(N):\n\t\tS += L + i\n\nprint(S)\n\n', "S = input()\nC = 0\nfor i in range(3):\n\tif S[i] == S[i+... | ['Runtime Error', 'Accepted'] | ['s747809606', 's572464570'] | [3060.0, 2940.0] | [18.0, 17.0] | [224, 111] |
p02993 | u370661635 | 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())\nlcm = c * d // fractions.gcd(c , d) \n\nif a % c == 0:\n c_start = int(a/c)\nelse:\n c_start = int(a/c)+1\n\nif a % d == 0:\n d_start = int(a/d)\nelse:\n d_start = int(a/d)+1\n\nif a % lcm == 0:\n lcm_start = int(a/lcm)\nelse:\n lcm_sta... | ['Runtime Error', 'Accepted'] | ['s943009951', 's003878387'] | [5076.0, 2940.0] | [36.0, 17.0] | [507, 155] |
p02993 | u370721525 | 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()\njudge = 0\n\nfor i in range(4):\n if S[i] == S[i+1]:\n judge += 1\n \nif judge == 0:\n print('Good')\nelse:\n print('Bad')\n", "S = input()\njudge = 0\n\nfor i in range(3):\n if S[i] == S[i+1]:\n judge += 1\n \nif judge == 0:\n print('Good')\nelse:\n print('Bad')\n"] | ['Runtime Error', 'Accepted'] | ['s877604685', 's988900469'] | [2940.0, 2940.0] | [17.0, 17.0] | [135, 135] |
p02993 | u371530330 | 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\nif a[0]==a[1] or a[1]==a[2] or a[2]==a[3]:\n print('Good') \nelse:\n print('Bad')\n", "a = input()\n \nif a[0]==a[1] or a[1]==a[2] or a[2]==a[3]:\n print('Bad') \nelse:\n print('Good')"] | ['Wrong Answer', 'Accepted'] | ['s485661535', 's565047138'] | [2940.0, 2940.0] | [17.0, 17.0] | [94, 94] |
p02993 | u372144784 | 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\nif a == b:\n print("Bad")\nelif b == c:\n print("Bad")\nelif c == d:\n print("Bad")\nelse:\n print("Good")', 'S = input()\nlist1 = list(map(int,S))\n\na = list1[0]\nb = list1[1]\nc = list1[2]\nd = list1[3]\n\nif a == b:\n print("Bad")\nelif b == c:\n print("Bad"... | ['Runtime Error', 'Accepted'] | ['s284543336', 's065521089'] | [3060.0, 3060.0] | [18.0, 17.0] | [147, 215] |
p02993 | u372670441 | 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()))\nif (str(A[0])+str(A[1]))==(str(A[2])+str(A[3])):\n print("Yes")\nelse:\n print("No")', 'A=list(map(int,input()))\nif A[0]!=A[1] and A[1]!=A[2] and A[2]!=A[3]:\n print("Good")\nelse:\n print("Bad")'] | ['Wrong Answer', 'Accepted'] | ['s350952665', 's451156698'] | [3060.0, 2940.0] | [18.0, 17.0] | [112, 110] |
p02993 | u373046572 | 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 = list(map(int,input().split()))\ncou = 0\nif a is b:\n cou = cou + 1\nelif b is c:\n cou = cou + 1\nelif c is d:\n cou = cou + 1\nelse:\n print("Good")\nif cou > 0:\n print("Bad")\n', 'a,b,c,d = list(map(int,input().split()))\ncou = 0\nif a is b:\n cou +=1\nelif b is c:\n cou +=1\nelif c is d:\n co... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s043916000', 's158496801', 's021506199'] | [2940.0, 2940.0, 3064.0] | [18.0, 17.0, 18.0] | [185, 165, 212] |
p02993 | u374802266 | 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())\nif a[0]==a[1] or a[1]==a[2] or a[2]==a[3]:\n print('Bad')\nelse:\n print('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', 'Accepted'] | ['s968325359', 's741381247'] | [3188.0, 2940.0] | [20.0, 20.0] | [98, 93] |
p02993 | u374974389 | 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())\ncount = 0\ne = b - a\nfor i in range(a,d):\n if(i % c != 0 and i % d != 0):\n count += 1\nfor i in range(d,b + 1):\n if(i % c != 0 and i % d != 0):\n count += 1 \nprint(count)', "s = int(input())\nn = []\nf = 0\n\nwhile s > 0:\n n.append(s % 10)\n s = s //... | ['Runtime Error', 'Accepted'] | ['s142136670', 's818147446'] | [3060.0, 3188.0] | [18.0, 21.0] | [222, 253] |
p02993 | u375500286 | 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`. | ['var input=GET(require("fs").readFileSync("/dev/stdin","utf8"));\nvar str = input();\nif(str[0] == str[1] || str[1]==str[2] || str[2]==str[3])console.log("Bad");\nelse console.log("Good")', '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'] | ['s202644931', 's458284716'] | [2940.0, 2940.0] | [17.0, 17.0] | [183, 101] |
p02993 | u375695365 | 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=list(map(int,input()))\nfor i in (range(3)):\n if n[i]==n[i+1]:\n count+=1\nif count>=1:\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'] | ['s094461138', 's588388454'] | [2940.0, 9004.0] | [17.0, 26.0] | [137, 93] |
p02993 | u376515719 | 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`. | ['output = []\n \nfor (i, x) in enumerate(S):\n if i == 0:\n pre = x\n else:\n if pre == x:\n output = "Bad"\n pre = x\n \nif len(output) > 0:\n print(output)\nelse:\n output = "Good"\n print(output)', 'output = []\n\nfor (i, x) in enumerate(S):\n if i == 0:\... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s028108512', 's622889244', 's696251754', 's856868397', 's977144444', 's274655030'] | [2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 19.0] | [241, 241, 241, 267, 240, 247] |
p02993 | u383450070 | 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())\nprint("Good" if all([n[j]!=n[j+1] for i in range(3)]) else "Bad")', 'n=str(input())\nprint("Good" if all([n[i]!=n[i+1] for i in range(3)]) else "Bad")'] | ['Runtime Error', 'Accepted'] | ['s502021825', 's378303526'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 80] |
p02993 | u384261199 | 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()\n\nform=""\nfor s in N:\n if form == s:\n print("Bad")\n break\n else:\n pass\n form = s\nprint("Good")\n', 'import sys\nN = input()\n\nform=""\nfor s in N:\n if form == s:\n print("Bad")\n sys.exit()\n else:\n pass\n form = s\nprint("Good")\n'] | ['Wrong Answer', 'Accepted'] | ['s356379205', 's873000872'] | [2940.0, 2940.0] | [17.0, 17.0] | [136, 152] |
p02993 | u385244248 | 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 () )\nB=0\nwhile B ==!2:\nif A[B] == A[B+1]:\n print ('Bad')\n B += 1 \n break \n print('Good')", 'n, L = map(int, input().split())\nN = 0\nG = 999\nfor i in range(1, n+1):\n N += (i + L - 1)\nNN = N\nfor i in range(1, n+1):\n DD = NN - (L + i - 1)\n if abs(NN-DD)< G :\n G = a... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s105519037', 's855313295', 's874106958', 's961341001', 's977097936', 's602854332'] | [2940.0, 3064.0, 2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 18.0, 17.0] | [113, 220, 113, 115, 180, 144] |
p02993 | u386170566 | 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`. | ['#ABCA - Security\na = int(input())\ns = list(a)\ncount = 0\nfor i in range(3):\n if s[i] != s[i+1]:\n count += 1\nif count == 3:\n print("Good")\nelse:\n print("Bad")', '#ABCA - Security\na = str(input())\ns = list(a)\ncount = 0\nfor i in range(3):\n if s[i] != s[i+1]:\n count += 1\nif count... | ['Runtime Error', 'Accepted'] | ['s330332418', 's185228431'] | [3064.0, 2940.0] | [17.0, 20.0] | [172, 172] |
p02993 | u389737182 | 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(int(input("4桁の数字を入力してください。>>>")))\ncnt = 0\nfor i in range(1, 4):\n cnt+=1\n if S[i] == S[i-1]:\n print(\'Bad\')\n break\n elif cnt == 3:\n print(\'Good\')', 'S = str(int(input("4桁の数字を入力してください。>>>")))\ncnt = 0\nfor i in range(1, 4):\n cnt+=1\n if S[i] == S[i-1]:\n pr... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s376732299', 's827455702', 's811998115'] | [2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0] | [217, 217, 156] |
p02993 | u390170391 | 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')\n"] | ['Wrong Answer', 'Accepted'] | ['s322358990', 's061775089'] | [2940.0, 2940.0] | [17.0, 17.0] | [93, 94] |
p02993 | u399973890 | 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())\nprint(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')"] | ['Wrong Answer', 'Accepted'] | ['s040245680', 's745795303'] | [2940.0, 2940.0] | [17.0, 18.0] | [110, 101] |
p02993 | u402467563 | 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())\nans=0\nfor i in range(0,2):\n if S[i]==S[i+1]:\n ans = 1\n exit()\n else:\n pass\nif ans == 1:\n print('Bad')\nelse:\n print('Good')\n", "S = str(input())\nfor i in range(0,2):\n if S[i]==S[i+1]:\n print('Good')\n break\n else:\n print('Bad')\n", "S = str(input())\nans=0\nfor... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s220761237', 's287512336', 's517502144', 's612633152', 's627437086', 's966205130', 's975185386', 's557705641'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [153, 110, 150, 110, 113, 105, 116, 103] |
p02993 | u409757418 | 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 = map(int, input().split())\nans = 0\nnc = 1\nnc2 = 0\nnd = 1\nnd2 = 0 \nndc = 1\nndc2 = 0\nwhile b >= c*nc:\n nc2 += 1\n nc += 1\nwhile b >= d*nd:\n nd += 1\n nd2 += 1\ncd = c*d//fractions.gcd(c,d)\nwhile b >= cd*ndc:\n ndc += 1\n ndc2 += 1\nnc2 -= a//c\nnd2 -= a//d\nndc2 -= a//(cd... | ['Runtime Error', 'Accepted'] | ['s529737324', 's103580355'] | [5048.0, 2940.0] | [36.0, 17.0] | [334, 104] |
p02993 | u412149076 | 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:\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'] | ['s035563969', 's871371977'] | [3064.0, 2940.0] | [18.0, 17.0] | [90, 89] |
p02993 | u416773418 | 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 as frac\na,b,c,d = map(int,input().split())\n\n\nlcm = (c * d) // frac.gcd(c,d)\nif a % lcm != 0:\n s = lcm - a % lcm\nelse:\n s = 0\ne = b % lcm\nm = ((b - e) - (a + s)) // lcm\nmodgcd = (b - a + 1) - (s + (lcm - 1) * m + e)\n\nif a % c != 0:\n s = c - a % c\nelse:\n s = 0\ne = b % c\nm ... | ['Runtime Error', 'Accepted'] | ['s033825049', 's239104110'] | [5088.0, 2940.0] | [36.0, 17.0] | [544, 112] |
p02993 | u418932331 | 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 = 0\nfor i in range(3):\n if S[i] != S[i+1]:\n ans = 1\nprint('Good' if ans == 1 else 'Bad')", "S = input()\nans = 0\nfor i in range(3):\n if S[i] == S[i+1]:\n ans = 1\nif ans == 0:\n print('Good')\nelse:\n print('Bad')"] | ['Wrong Answer', 'Accepted'] | ['s681898426', 's953742906'] | [2940.0, 2940.0] | [17.0, 17.0] | [108, 121] |
p02993 | u422093579 | 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=int(input())\n\na=s//1000\nb=s//100 - a*10\nc=s//10-a*100-b*10\nd=s%10\n\nprint(a,b,c,d)\n\nif a==b or b==c or c==d :\n print("Bad")\nelse:\n print("Good")', '\ns=int(input())\n\na=s//1000\nb=s//100 - a*10\nc=s//10-a*100-b*10\nd=s%10\n\n\n\nif a==b or b==c or c==d :\n print("Bad")\nelse:\n print("Good... | ['Wrong Answer', 'Accepted'] | ['s387076806', 's725633930'] | [3060.0, 3060.0] | [17.0, 17.0] | [152, 138] |
p02993 | u425834921 | 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]:\n print(Bad)\n break\nelif S[1] == S[2]:\n print(Bad)\n break\nelif S[2] == S[3]:\n print(Bad)\n break\nelse:\n print(Good)\n \n ', 'S = input()\n\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 \n ',... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s104586226', 's142230715', 's602200551', 's724180881', 's794885515'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [156, 131, 130, 132, 142] |
p02993 | u429003912 | 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`. | ['pc = list(map(int, input().split("")))\n\nif pc[0] != pc[1] and pc[1] != pc[2] and pc[2] != pc[3] :\n print("Good")\nelse :\n print("Bad")', 'pc = input()\n\nif pc[0] != pc[1] and pc[1] != pc[2] and pc[2] != pc[3] :\n print("Good")\nelse :\n print("Bad")\n'] | ['Runtime Error', 'Accepted'] | ['s846663724', 's602129496'] | [3064.0, 2940.0] | [18.0, 18.0] | [135, 110] |
p02993 | u433532588 | 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`. | ['\nimport sys\ninput = sys.stdin.readline\nsys.setrecursionlimit(10**6)\n##############################\nfrom fractions import gcd\n\n\ndef lcm(x, y):\n return (x * y) // gcd(x, y)\n\n\nA, B, C, D = map(int, input().split())\n\nA -= 1\n\n\nnb = B - B//C - B//D + B//lcm(C, D)\nna = A - A//C - A//D + A//lcm(C, D)\n\n... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s371058679', 's861587183', 's928106632'] | [5372.0, 3064.0, 3060.0] | [43.0, 18.0, 19.0] | [365, 304, 112] |
p02993 | u439392790 | 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())\nans=0\nfor a in range(b):\n if a%c!=0 or a%d!=0:\n ans+=1\nprint(ans)\n ', "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'] | ['s066632578', 's395912140'] | [2940.0, 2940.0] | [17.0, 17.0] | [105, 93] |
p02993 | u439676056 | 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\n\ndef taste(N, L):\n all_abs = np.array([np.abs(L + i - 1) for i in range(1, N + 1)])\n all_base = np.array([L + i - 1 for i in range(1, N + 1)])\n\n return all_abs, all_base\n\nN, L = map(int, input().split())\n\nall_abs, all_base = taste(N, L)\n\nN_1_all = all_base[np.min(all_abs) != ... | ['Runtime Error', 'Accepted'] | ['s469273403', 's722884707'] | [12436.0, 2940.0] | [149.0, 17.0] | [346, 169] |
p02993 | u440129511 | 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(0,len(s)-1):\n if s[i]==s[i+1]:print('Bad')\nelse:print('Good')", "s=input()\nfor i in range(0,len(s)-1):\n if s[i]==s[i+1]:print('Bad')\n else:print('Good')", "s=input()\nif s[0]==s[1] or s[1]==s[2] or s[2]==s[3]:print('Bad')\nelse:print('Good')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s374130855', 's449710515', 's325794167'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [87, 89, 83] |
p02993 | u440161695 | 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 any([s[i]!=s[i+1] for i in range(len(s)-1)]) else "Bad")', 's=input()\nprint("Bad" if any([s[i]==s[i+1] for i in range(len(s)-1)]) else "Good")'] | ['Wrong Answer', 'Accepted'] | ['s005138368', 's179429396'] | [2940.0, 2940.0] | [18.0, 17.0] | [82, 82] |
p02993 | u442251195 | 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`. | ["try:\ns = input()\nif s[0] == s[1] or s[1] == s[2] or s[2] == s[3]:\n print('Bad')\nelse:\n print('Good')\nexcept EOFError:\n pass\n", "try:\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 print('Good')\nexcept EOFError:\n pass"] | ['Runtime Error', 'Accepted'] | ['s726711802', 's003625021'] | [2940.0, 2940.0] | [17.0, 17.0] | [133, 152] |
p02993 | u444791825 | 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`. | ["y = input()\na = [int(a) for a in list(str(y))]\nif a[0] == a[1] or a[1] == a[2] or a[2] == a[3]:\n print ('bad')\nelse:\n print('good')\n", "y = input()\na = [int(a) for a in list(str(y))]\nif a[0] == a[1] or a[1] == a[2] or a[2] == a[3]:\n print ('Bad')\nelse:\n print('Good')"] | ['Wrong Answer', 'Accepted'] | ['s084359129', 's336600064'] | [2940.0, 2940.0] | [17.0, 18.0] | [139, 138] |
p02993 | u446469817 | 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(str(input()))\ncount=0\nfor i in range(3):\n if s[i]==s[i+1]:\n count+=1\n\nif count==0:\n print('Good')\n else:\n print('Bad') ", "s=list(str(input()))\ncount=0\nfor i in range(3):\n if s[i]==s[i+1]:\n count+=1\n\nif count==0:\n print('Good')\nelse:\n print('Bad') "] | ['Runtime Error', 'Accepted'] | ['s094968861', 's910722640'] | [2940.0, 2940.0] | [17.0, 17.0] | [138, 136] |
p02993 | u448655578 | 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`. | ['password = input().split()\npw = set(password)\nif len(password) != len(pw):\n print("Bad")\n break\nprint("Good")\n', 'password = list(input())\npw = set(password)\nif len(pw) != 4:\n print("Bad")\n break\nprint("Good")\n', 'password = set(input().split())\nif len(password) != 4:\n print("Bad")\n break\nprint(... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s132954515', 's209279732', 's450137582', 's510998150', 's555666951', 's595800435', 's800232248', 's468778524'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 18.0, 17.0, 17.0, 18.0, 17.0] | [112, 98, 92, 173, 105, 84, 108, 152] |
p02993 | u451017206 | 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`. | ["l = ['%d%d'%(i, i) for i in range(10)]\nS = input()\nif S.count(l) > 0:\n print('Bad')\nelse:\n print('Good')", "l = ['%d%d'%(i, i) for i in range(10)]\nS = input()\nif sum([S.count(i) for i in l]) > 0:\n print('Bad')\nelse:\n print('Good')"] | ['Runtime Error', 'Accepted'] | ['s907364433', 's482176157'] | [2940.0, 2940.0] | [18.0, 17.0] | [110, 128] |
p02993 | u452066060 | 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)\n \n ', 's = input()\nfor i in range(len(s))[1:]:\n if s[i] == s[i-1]:\n print(Bad)\n break:\nprint(Good)\n ', 's = input()\nbad = False\nfor i in range(len(s))[1:]:\n if s[i] == s[i-1]:\n bad = True\n b... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s858478163', 's937981173', 's973152457', 's785877815'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [99, 101, 146, 97] |
p02993 | u454866339 | 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 = range(1, 8 + 1)\n b = range(1, 8 + 1)\n c = range(1, 8 + 1)\n d = range(1, 8 + 1)\n\n if a == b or b == c or c == d:\n return ('Bad')\n else:\n return ('Good')", "s = list(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'] | ['s841097692', 's489685302'] | [8948.0, 9068.0] | [25.0, 27.0] | [184, 108] |
p02993 | u455533363 | 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 = input()\n\naa = int(a)\nbb = int(b)\ncc = int(c)\ndd = int(d)\n \nif aa==bb:\n print("bad")\nelif bb==cc:\n print("bad")\nelif cc==dd:\n print("bad")\nelse:\n print("good")\n ', 'a,b,c,d = input()\n\naa = int(a)\nbb = int(b)\ncc = int(c)\ndd = int(d)\n \nif aa==bb:\n print("bad")\nelif bb==cc:... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s087826542', 's132401325', 's548301278', 's300294835'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [183, 176, 158, 80] |
p02993 | u455957070 | 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]):\n print('Bad')\nelif(s[1] == s[2]):\n print('Bad')\nelif(s[2] == s[3]):\n print('Bad')\nelse:\n print('Good')"] | ['Wrong Answer', 'Accepted'] | ['s154917971', 's208136823'] | [2940.0, 3060.0] | [17.0, 18.0] | [98, 136] |
p02993 | u459737327 | 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')\nprint('Good')\n", "s = input()\nfor i in range(len(s) -1):\n if s[i] == s[i + 1]:\n print('Bad')\n exit(0);\nprint('Good')\n"] | ['Wrong Answer', 'Accepted'] | ['s933455271', 's381644636'] | [2940.0, 2940.0] | [17.0, 18.0] | [93, 106] |
p02993 | u461251541 | 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`. | ["pas=list(input())\nif pas[0]==pas[1] or pas[1]==pas[2] or pas[2]==pas[3]:\n print('bad')\nelse:\n print('good')", "pas=list(input())\nif pas[0]==pas[1] or pas[1]==pas[2] or pas[2]==pas[3]:\n print('Bad')\nelse:\n print('Good')"] | ['Wrong Answer', 'Accepted'] | ['s768770869', 's679427508'] | [2940.0, 3064.0] | [17.0, 17.0] | [113, 113] |
p02993 | u468972478 | 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("Bad" if a[0] == a[1] or a[1] == a[2] or a[2] == a[3] else "Good")', 'a = input()\nprint("Bad" if a[0] == a[1] or a[1] == a[2] or a[2] == a[3] else "Good")'] | ['Runtime Error', 'Accepted'] | ['s965655745', 's482285679'] | [9096.0, 9088.0] | [25.0, 24.0] | [89, 84] |
p02993 | u471684875 | 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=map(int,input().split())\n\ncc=b//c-(a-1)//c\ndd=b//d-(a-1)//d\ns=b//(c*d//fractions.gcd(c,d))-(a-1)//(c*d//fractions.gcd(c,d))\n\n\nprint((b-(a-1)-(cc+dd-s)))', "a=list(input())\n\nans=0\nfor i in range(int(len(a))-1):\n if a[i]==a[i+1]:\n ans+=1\n else:\n ans+=0\n\nif a... | ['Runtime Error', 'Accepted'] | ['s613183575', 's872803781'] | [5048.0, 2940.0] | [36.0, 20.0] | [177, 167] |
p02993 | u472696272 | 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())\ntotal_num = b-a+1\n# # of x%c==0\nc_num = b//c - (a-1)//c\nd_num = b//d - (a-1)//d\nfrom fractions import gcd\nlcm = c*d/gcd(c,d)\ncd_num = b//lcm - (a-1)//lcm\nprint(total_num-c_num-d_num+cd_num)\n', 'a,b,c,d = map(int,input().split())\n\nn = b-a-1\nn_c = n//c\nn_d = n//d\nn_gap =... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s105424041', 's687096565', 's836341850', 's567013248'] | [2940.0, 3060.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [225, 110, 116, 98] |
p02993 | u473092610 | 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()\nans="Good"\nfor i in range(0,3):\n if x[i]==x[i+1]:\n ans="Bad"\n print(x[i],x[i+1])\nprint(ans)', 'x=input()\nans="Good"\nfor i in range(0,3):\n if x[i]==x[i+1]:\n ans="Bad"\n \nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s431207191', 's139189783'] | [3064.0, 2940.0] | [17.0, 17.0] | [130, 108] |
p02993 | u473633103 | 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\n# Your code here!\n\ns = input()\n\nt = ""\nf = True\n\nfor i in s:\n if t == i:\n f = False\n break\n t = i\n\nprint("Good" if t else "Bad")', '# coding: utf-8\n# Your code here!\n\ns = input()\n\nt = ""\nf = True\n\nfor i in s:\n if t == i:\n f = False\n break\n... | ['Wrong Answer', 'Accepted'] | ['s321583312', 's362029548'] | [2940.0, 2940.0] | [18.0, 17.0] | [164, 164] |
p02993 | u475972508 | 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().rstrip().split("")\ncount = 0\ntemp = ""\nhow = True\nfor i in x:\n if temp == i:\n how=False\n temp = i\n\nif how:\n print("Good")\nelse:\n print("Bad")\n ', 'x = input().rstrip()\ncount = 0\ntemp = ""\nhow = True\nfor i in x:\n if temp == i:\n how=False\n temp = i\n\nif how:\n print("Good"... | ['Runtime Error', 'Accepted'] | ['s796400596', 's738401699'] | [2940.0, 2940.0] | [17.0, 17.0] | [163, 153] |
p02993 | u476604182 | 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()\np = N[0]\nfor n in range(1,4):\n if p==N[n]:\n print('Bad')\n break\n p = N[n]\n print(n,p)\nelse:\n print('Good')\n", "N = list(input())\np = N[0]\nfor n in N[1:]:\n if p==n:\n print('Bad')\n break\n p = n\nelse:\n print('Good')\n"] | ['Wrong Answer', 'Accepted'] | ['s910564649', 's023215101'] | [2940.0, 2940.0] | [17.0, 17.0] | [129, 111] |
p02993 | u477901663 | 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`. | ["c = input()\nnum = list(c)\n\nif num[0] == num[1]:\n print('bad')\nelif num[1] == num[2]:\n print('bad')\nelif num[2] == num[3]:\n print('bad')\nelse:\n print('good')", "c = input()\nnum = list(c)\n\nif num[0] == num[1]:\n print('bad')\nelif num[1] == num[2]:\n print('bad')\nelif num[2] == num[3]:\n... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s081035809', 's222172973', 's168145480'] | [3060.0, 3064.0, 3060.0] | [17.0, 18.0, 17.0] | [168, 168, 168] |
p02993 | u477977638 | 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())\nif S[0]!=S[1] and S[1]!=S[2] and S[2]!=S[3]:\n print("Bad")\nelse:\n print("Good")\n', '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")\n'] | ['Wrong Answer', 'Accepted'] | ['s506794244', 's293094238'] | [3060.0, 2940.0] | [19.0, 17.0] | [102, 102] |
p02993 | u482157295 | 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())\ns_o = 10\nflag = "ok"\nfor i in range(s):\n if s_o == i:\n flag = "ng"\n s_o = i\nif flag == "ng":\n print("Bad")\nelse:\n print("Good")\n', 's = input()\ns_o = 10\nflag = "ok"\nfor i in s:\n if s_o == i:\n flag = "ng"\n s_o = i\nif flag == "ng":\n print("Bad")\nel... | ['Wrong Answer', 'Accepted'] | ['s830493330', 's679690106'] | [2940.0, 2940.0] | [18.0, 17.0] | [164, 152] |
p02993 | u483304397 | 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!=0:\n a,b=b,a%b\n return a\n\n \ndef lcm(a,b):\n return a*b/gcd(a,b)\n \nA,B,C,D=map(int,input().split())\n\nif A%C == 0:\n AC = int(A/C) - 1\nelse:\n AC = int(A/C)\nif A%D == 0:\n AD = int(A/D) - 1\nelse:\n AD = int(A/D)\n \nlcmCD = lcm(C,D)\nif A%(lcmCD) == 0:... | ['Runtime Error', 'Accepted'] | ['s122183144', 's254714756'] | [3064.0, 2940.0] | [17.0, 17.0] | [454, 201] |
p02993 | u485566817 | 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`. | ['password = list(input())\nfor i in range(3):\n if password[i] == password[i+1]:\n print("Bad")\n break\n else:\n print("Good")\n break', 'password = list(input())\nfor i in range(4):\n if password[i] == password[i+1]:\n print("Bad")\n break\n else:\n print(... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s628827307', 's720027777', 's660150488'] | [3064.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [161, 161, 143] |
p02993 | u487044104 | 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`. | ["code = input()\nprevious = 'a'\nfor c in code:\n if previous == c:\n print('bad')\n break\n previous = c\n", "code = input()\nprevious = 'a'\nfor c in code:\n if perivioud == c:\n print('bad')\n break", "code = input()\nprevious = 'a'\nfor c in code:\n if previous == c:\n print('B... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s094565830', 's112295061', 's966522878', 's774771771'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 18.0] | [119, 92, 133, 173] |
p02993 | u487288850 | 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`. | ["for i in range(len(l)):\n if l[i]==l[i+1]:\n print('Bad')\n break\nelse:\n print('Good')", "l=input()\nfor i in range(len(l)-1):\n if l[i]==l[i+1]:\n print('Bad')\n break\nelse:\n print('Good')"] | ['Runtime Error', 'Accepted'] | ['s839346858', 's509708830'] | [8776.0, 8828.0] | [21.0, 23.0] | [103, 115] |
p02993 | u488127128 | 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 solve():\n s = input()\n for i in range(3):\n print(s[i],s[i+1])\n if s[i]==s[i+1]:\n return 'Bad'\n else:\n return 'Good'\n\nif __name__ == '__main__':\n print(solve())", "s = input()\nfor i in range(3):\n if s[i]==s[i+1]:\n print('Bad')\n break\nelse:... | ['Wrong Answer', 'Accepted'] | ['s409886494', 's543844505'] | [2940.0, 2940.0] | [17.0, 17.0] | [207, 110] |
p02993 | u488178971 | 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`. | ['# ABC 131\nS=str(input())\nif ("11"or"22"or"33"or"44"or"55"or"66"or"77"or"88"or"99"or"00") in S:\n print("Bad")\nelse:\n print("Good")', '# ABC 131\nS=str(input())\nfor i in range(1,len(S)):\n if S[i]==S[i-1]:\n ans ="Bad"\n break\n else:\n ans ="Good"\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s080005141', 's893497122'] | [2940.0, 2940.0] | [17.0, 17.0] | [135, 145] |
p02993 | u488934106 | 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 security(s):\n\n return "Good" if s[0] != s[1] and s[1] != s[2] and s[2] != s[3] else "Bad"\ndef main():\n s = list(int(input()))\n print(security(s))\n\nif __name__ == \'__main__\':\n main()\n', 'def security(s):\n\n return "Good" if s[0] != s[1] and s[1] != s[2] and s[2] != s[3] else "Bad"\ndef m... | ['Runtime Error', 'Accepted'] | ['s896022877', 's724362705'] | [2940.0, 2940.0] | [17.0, 17.0] | [198, 198] |
p02993 | u489730338 | 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_line = input()\nlast_c = ''\nbad = False\nfor i in range(len(input_line)):\n c = input_line[i]\n if last_c == c:\n print('Bad')\n bad = true\n break\nif not bad:\n print('Good')\n ", "input_line = input()\nlast_c = ''\nbad = False\nfor i in range(len(input_line)):\n c = input_line[i]\n if last_c ... | ['Wrong Answer', 'Accepted'] | ['s664003497', 's276882449'] | [2940.0, 2940.0] | [17.0, 17.0] | [188, 201] |
p02993 | u492447501 | 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 = list(map(S.split()))\n\nflg = 0\ntemp = 0\n\nfor i in range(len(S)-1):\n if S[i] == S[i+1]:\n print(Bad)\n flg = 1\n break\n\nif flg == 0:\n print(Good)\n', 'S = input()\n\nflg = 0\ntemp = 0\n\nfor i in range(len(S)-1):\n if S[i] == S[i+1]:\n print("Bad")\n ... | ['Runtime Error', 'Accepted'] | ['s286738544', 's046201714'] | [2940.0, 2940.0] | [17.0, 17.0] | [185, 163] |
p02993 | u494379309 | 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`. | ['#include <bits/stdc++.h>\nusing namespace std;\n#define rep(i, n) for(int i=0;i<(int)(n);i++)\n#define all(x) (x).begin(),(x).end()\ntypedef long long ll;\nconst int MOD = (int)1e9 + 7;\n\nint main(){\n string p;\n cin >> p;\n flag = !((p[0] == p[1])||(p[1]==p[2])||p[2]==p[3]);\n if(flag){\n cout << "No" << e... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s064126228', 's247023189', 's294578995', 's295653120', 's545692164'] | [2940.0, 2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [355, 124, 130, 168, 140] |
p02993 | u496009935 | 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 = 'Nad'\nfor i in range(len(s)-1):\n if s[i] == s[i+1]:\n ans = 'Good'\n break\nprint(ans)\n", "s = input()\n\nans = 'Bad'\nfor i in range(len(s)-1):\n if s[i] == s[i+1]:\n ans = 'Good'\n break\nprint(ans)\n", "s = input()\n\nans = 'Good'\nfor i in range(len(s)-1):... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s076886482', 's314223482', 's118424552'] | [9032.0, 8976.0, 8904.0] | [33.0, 30.0, 28.0] | [120, 120, 120] |
p02993 | u502247093 | 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 exit()\nprint("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'] | ['s544432445', 's979455710'] | [9020.0, 9096.0] | [26.0, 29.0] | [93, 93] |
p02993 | u505893372 | 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 = map(int,input())\n\nfor i in range(4) :\n\tif S[i-1] == S[i] :\n\t\tprint('Bad')\n\tbreak :\n\telse: \n\t\tprint('Good')", "S = map(int,input())\n\nif S[0]=S[1] or S[1]=S[2] or S[2]=S[3] or S[3]=S[4] :\n\tprint('Bad')\nelse:\n\tprint('Good')", "S = map(int,input())\n\nif S[0]==S[1] or S[1]==S[2] or S[2]==S[3] or ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s068950449', 's308750785', 's620152867', 's847487703', 's475073836'] | [2940.0, 2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 18.0, 17.0, 17.0] | [110, 110, 114, 101, 92] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.