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 |
|---|---|---|---|---|---|---|---|---|---|---|
p03243 | u257541375 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input)\n\nif n>888:\n print(999)\nelif n>777:\n print(888)\nelif n>666:\n print(777)\nelif n>555:\n print(666)\nelif n>444:\n print(555)\nelif n>333:\n print(444)\nelif n>222:\n print(333)\nelif n>111:\n print(222)\nelse:\n print(111)\n\n \n', 'n = int(input())\n \nif n>888:\n print(999)\nelif n>777:\n print(888)\nelif n>666:\n print(777)\nelif n>555:\n print(666)\nelif n>444:\n print(555)\nelif n>333:\n print(444)\nelif n>222:\n print(333)\nelif n>111:\n print(222)\nelse:\n print(111)'] | ['Runtime Error', 'Accepted'] | ['s957405853', 's877631039'] | [2940.0, 3060.0] | [17.0, 17.0] | [237, 235] |
p03243 | u262869085 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N =int(input())\nfor i in range(1,10):\n if 111*i > N:\n print(111*i)\n break', 'N = input()\na =len(N)\nfor i in range(1,10):\n s =int("1"*a)\n if s*i >= int(N):\n print(s*i)\n break'] | ['Wrong Answer', 'Accepted'] | ['s050228683', 's122648786'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 116] |
p03243 | u265118937 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\nfor i in range(10):\n if 100*i + 10*i + i => n:\n print(100*i + 10*i + i)', 'n = int(input())\nfor i in range(1, 10):\n if 100*i + 10*i + i => n:\n print(100*i + 10*i + i)', 'n = int(input())\nfor i in range(1, 10):\n if (100*i + 10*i + i ) >= n:\n print(100*i + 10*i + i)\n exit()'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s091764642', 's992919306', 's832552532'] | [9016.0, 9020.0, 9164.0] | [24.0, 26.0, 27.0] | [98, 101, 119] |
p03243 | u267300160 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = int(input())\na = N//111\nprint((a+1)*111)', 'N = int(input())\na = N//111\nif(N%111==0):\n print(N)\nelse:\n print((a+1)*111)'] | ['Wrong Answer', 'Accepted'] | ['s970670663', 's965214814'] | [2940.0, 2940.0] | [17.0, 17.0] | [44, 81] |
p03243 | u273010357 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ["N = list(input())\ns = N[0]\nn = int(''.join(N))\n\nif int(N[0]*3) > n:\n print(N[0]*3)\nelse:\n print(str(int(N[0])+1)*3)", "N = list(input())\ns = N[0]\nn = int(''.join(N))\n\nif int(N[0]*3) >= n:\n print(N[0]*3)\nelse:\n print(str(int(N[0])+1)*3)"] | ['Wrong Answer', 'Accepted'] | ['s685547362', 's318543037'] | [3060.0, 2940.0] | [17.0, 17.0] | [121, 122] |
p03243 | u279266699 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ["import sys\n\n\nstdin = sys.stdin\ndef ns(): return stdin.readline().rstrip()\ndef ni(): return int(stdin.readline().rstrip())\ndef nm(): return map(int, stdin.readline().split())\ndef nl(): return list(map(int, stdin.readline().split()))\n\n\ndef main():\n n = ni()\n dif = 999\n ans = ''\n for i in range(1, 10):\n tmp = str(i) * 3\n if dif > int(tmp) - n > 0:\n dif = abs(n - int(tmp))\n ans = tmp\n print(ans)\n\n\nif __name__ == '__main__':\n main()\n", "import sys\n\n\nstdin = sys.stdin\ndef ns(): return stdin.readline().rstrip()\ndef ni(): return int(stdin.readline().rstrip())\ndef nm(): return map(int, stdin.readline().split())\ndef nl(): return list(map(int, stdin.readline().split()))\n\n\ndef main():\n n = ni()\n dif = 999\n ans = ''\n for i in range(1, 10):\n tmp = str(i) * 3\n if dif > int(tmp) - n >= 0:\n dif = abs(n - int(tmp))\n ans = tmp\n print(ans)\n\n\nif __name__ == '__main__':\n main()\n"] | ['Wrong Answer', 'Accepted'] | ['s649312790', 's765092793'] | [9060.0, 9136.0] | [27.0, 32.0] | [486, 487] |
p03243 | u279493135 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = int(input())\nx = N - N % 111 + 111\nprint(x)', 'N = int(input())\nif N%111 == 0:\n print(N)\nelse:\n x = N - N % 111 + 111\n print(x)'] | ['Wrong Answer', 'Accepted'] | ['s665353431', 's062391852'] | [2940.0, 2940.0] | [17.0, 17.0] | [47, 89] |
p03243 | u283751459 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['r = input()\nn = list(r)\nx = int(n[0])*100 + int(n[0])*10 + int(n[0])\n\nif x <= int(r):\n print( ((int(n[0])+1)*100 + (int(n[0])+1)*10 + int(n[0])+1))\nelse:\n print(x)', 'r = input()\nn = list(r)\nx = int(n[0])*100 + int(n[0])*10 + int(n[0])\n\nif x < int(r):\n print( ((int(n[0])+1)*100 + (int(n[0])+1)*10 + int(n[0])+1))\nelse:\n print(x)\n'] | ['Wrong Answer', 'Accepted'] | ['s430230555', 's304996984'] | [9188.0, 9180.0] | [23.0, 28.0] | [165, 165] |
p03243 | u288948615 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = int(input())\nrepdigit = [111, 222, 333, 444, 555, 666, 777, 888, 999]\n\nfor rep in repdigit:\n if N < rep:\n print(rep)\n break', 'N = int(input())\nrepdigit = [111, 222, 333, 444, 555, 666, 777, 888, 999]\n\nfor rep in repdigit:\n if N < rep:\n print(rep)\n break', 'N = int(input())\nrepdigit = [111, 222, 333, 444, 555, 666, 777, 888, 999]\n\nfor rep in repdigit:\n if N <= rep:\n print(rep)\n break'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s185789893', 's603465918', 's780372569'] | [2940.0, 2940.0, 2940.0] | [18.0, 19.0, 18.0] | [144, 144, 145] |
p03243 | u292814514 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['num=input()\nnum_list=list(num)\nn=len(num)\nans_num=0\nelement=num_list[0]\nwhile True:\n tf=True\n for i in range(n):\n if element<num_list[i]:\n tf=False\n element+=1\n break\n if tf:\n ans_num=element\n break\nprint(ans_num*element)', 'num=input()\nnum_list=list(num)\nn=len(num)\nans_num=0\nelement=int(num_list[0])\nfor i in range(n):\n if element<int(num_list[i]):\n tf=False\n element+=1\n break\nprint(str(element)*n)'] | ['Runtime Error', 'Accepted'] | ['s491240776', 's652364129'] | [3060.0, 3060.0] | [18.0, 17.0] | [284, 200] |
p03243 | u296150111 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n=int(input())\nfor m in range(0,11):\n if -1+111*m<=n<=110+111*m:\n print(111*m+111)', 'n=int(input())\nfor m in range(0,11):\n if 1+111*m<=n<=111+111*m:\n print(111*m+111)'] | ['Wrong Answer', 'Accepted'] | ['s961919532', 's360673858'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 82] |
p03243 | u296518383 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['print(int(input()/111)*111)', 'print(-(-int(input())//111)*111)'] | ['Runtime Error', 'Accepted'] | ['s653769296', 's007670023'] | [2940.0, 2940.0] | [17.0, 17.0] | [27, 32] |
p03243 | u317440328 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N=int(input())\nif(100<N<=111):\n ptit(111)\nelif(111<N<=222):\n print(222)\nelif(222<N<=333):\n print(333)\nelif(333<N<=444):\n print(444)\nelif(444<N<=555):\n print(555)\nelif(555<N<=666):\n print(666)\nelif(666<N<=777):\n print(777)\nelif(777<N<=888):\n print(888)\nelif(888<N<=999):\n print(999)', 'N=int(input())\nif(N<=111):\n print(111)\nelif(111<N<=222):\n print(222)\nelif(222<N<=333):\n print(333)\nelif(333<N<=444):\n print(444)\nelif(444<N<=555):\n print(555)\nelif(555<N<=666):\n print(666)\nelif(666<N<=777):\n print(777)\nelif(777<N<=888):\n print(888)\nelif(888<N<=999):\n print(999)\n'] | ['Runtime Error', 'Accepted'] | ['s209631437', 's834241512'] | [3064.0, 3060.0] | [17.0, 17.0] | [290, 288] |
p03243 | u319805917 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n=int(input())\na=n%111\nif a==0:\n print(a)\nelse:\n print(((a//111)+1)*111)', 'N=int(input)\na=N%111\nif a==0:\n print(a*111)\nelse:\n b=N//111\n c=b+1\n print(c*111)\n ', 'N=int(input())\na=N%111\nif a==0:\n print(a*111)\nelse:\n b=N//111\n c=b+1\n print(c*111)', 'n=int(input())\na=n%111\nif a==0:\n print(a)\nelse:\n b=n//111\n c=(b+1)*111\n print(c)', 'N=int(input())\na=N%111\nif a==0:\n print(N)\nelse:\n b=N//111\n c=b+1\n print(c*111)'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s102789545', 's195428479', 's351694650', 's510794717', 's582768083'] | [3064.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [76, 92, 87, 92, 83] |
p03243 | u325282913 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = int(input())\nfor i in range(1,8):\n tmp = 111*i\n if N < tmp:\n print(tmp)\n exit()', 'N = int(input())\nfor i in range(1,10):\n tmp = 111*i\n if N <= tmp:\n print(tmp)\n exit()\n'] | ['Wrong Answer', 'Accepted'] | ['s773505105', 's236510387'] | [2940.0, 2940.0] | [18.0, 17.0] | [103, 106] |
p03243 | u329049771 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\nans == 0\nfor i in range(1,10):\n count = 100*i + 10*i + i\n if n <= count:\n ans = count\n else: break', 'n = int(input())\nans = 0\nfor i in range(1,10):\n count = 100*i + 10*i + i\n if n <= count:\n ans = count\n break\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s901286142', 's404949923'] | [2940.0, 2940.0] | [17.0, 17.0] | [131, 139] |
p03243 | u340947941 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['\n\nN=int(input())\nns=N//100*100+N//100*10+N//100\nprint("N = ",N,"".join([str(N//100+int(N>ns))]*3))', '\n\nN=int(input())\nns=N//100*100+N//100*10+N//100\nprint("".join([str(N//100+int(N>ns))]*3))'] | ['Wrong Answer', 'Accepted'] | ['s079632417', 's282733904'] | [2940.0, 2940.0] | [17.0, 17.0] | [119, 110] |
p03243 | u350093546 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n=input()\nif int(n[0])<int(n[1]) | (int(n[0])==int(n[1]) & int(n[0])<int(n[2])):\n print((int(n[0])+1)*3)\nelse:\n print(int(n[0])*3)', 'n=int(input())\nif n//100<(n%100)//10 or (n//100==(n%100)//10 and n//100<(n%10)):\n print(((n//100)+1)*111)\nelse:\n print((n//100)*111)'] | ['Wrong Answer', 'Accepted'] | ['s181899747', 's987700037'] | [3060.0, 2940.0] | [17.0, 17.0] | [132, 134] |
p03243 | u350248178 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n=input()\nans=""\nan=""\n\nfor i in n:\n ans+=n[0]\n \nif int(ans)>int(n):\n print(ans)\nelse:\n for i in n:\n an+=str(int(n[0])+1)\n print(an)\n', 'n=input()\nans=""\nan=""\n\nfor i in n:\n ans+=n[0]\n \nif int(ans)>=int(n):\n print(ans)\nelse:\n for i in n:\n an+=str(int(n[0])+1)\n print(an)'] | ['Wrong Answer', 'Accepted'] | ['s589724886', 's239699257'] | [3060.0, 3060.0] | [19.0, 32.0] | [155, 155] |
p03243 | u357751375 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\nl = list(range(111,1000,111))\n\nprint(l[n // 111])', 'n = int(input())\nfor i in range(n,1000):\n x = list(str(i))\n if len(set(x)) == 1:\n print(i)\n break'] | ['Runtime Error', 'Accepted'] | ['s873566864', 's105781444'] | [2940.0, 9164.0] | [17.0, 26.0] | [66, 117] |
p03243 | u369142620 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = input()\n\nlst = [111,222,333,444,555,666,777,888,999]\n\nfor i in lst:\n if n <= i:\n print(i)\n break\n', 'kaisai_lst = [111,222,333,444,555,666,777,888,999]\nN = int(input())\nfor target_list in kaisai_lst:\n if N <= target_list:\n print(target_list)\n break'] | ['Runtime Error', 'Accepted'] | ['s482697024', 's834992911'] | [2940.0, 2940.0] | [18.0, 17.0] | [118, 164] |
p03243 | u370576244 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\n\nk = int(n/111)\n\nu = 111*(k+1)\n\nprint(u)', 'n = int(input())\nif n%111==0:\n\tprint(n)\nelse:\n\tk = int(n/111)\n\tu = 111*(k+1)\n\tprint(u)'] | ['Wrong Answer', 'Accepted'] | ['s658932344', 's702218553'] | [2940.0, 2940.0] | [17.0, 17.0] | [57, 86] |
p03243 | u370793182 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = int(input())\nfor i in range(N:1000):\n if(str(i)[1] == str(i)[2] and str(i)[1] == str(i)[3]):\n num = i\n break\nprint(num)', 'N = int(input())\nfor i in range(N,1000):\n if(str(i)[0] == str(i)[1] and str(i)[1] == str(i)[2]):\n num = i\n break\nprint(num)'] | ['Runtime Error', 'Accepted'] | ['s589359975', 's043032922'] | [2940.0, 2940.0] | [17.0, 17.0] | [130, 130] |
p03243 | u371763408 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n=int(input())\nlength=len(str(n))\n\nif int(str(n)[0])> int(str(n)[-1]):\n print((str(n)[0])*length)\nelse:\n print(str((int(str(n)[0]))+1)*length)\n', 'n=int(input())\nlength=len(str(n))\n\nif int(str(n)[0])> int(str(n)[-1]) and int(str(n)[0])>= int(str(n)[1]):\n print((str(n)[0])*length)\nelse:\n print(str((int(str(n)[0]))+1)*length)\n', 'n=int(input())\nlength=len(str(n))\n\nif int(str(n)[0])>= int(str(n)[-1]) and int(str(n)[0])>= int(str(n)[1]):\n print((str(n)[0])*length)\nelse:\n print(str((int(str(n)[0]))+1)*length)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s149472998', 's972130346', 's308062933'] | [3060.0, 3060.0, 2940.0] | [18.0, 18.0, 17.0] | [145, 181, 182] |
p03243 | u374146618 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = int(input())\n\nn = N\nfor i in range(1000):\n n += 1\n if str(n)[0] == str(n)[1] == str(n)[2]:\n ans = n\n break\nprint(n)', 'n = int(input())\nanswer = 0\nwhile answer < n:\n answer += 111\nprint(answer)'] | ['Wrong Answer', 'Accepted'] | ['s027036526', 's055626956'] | [2940.0, 2940.0] | [17.0, 24.0] | [139, 77] |
p03243 | u377566715 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = str(input())\nif n == "999":\n print(1111)\n exit(0)\nminim = 1000\nx = int(n)\nfor i in range(1, 10):\n nr = i*100 + i*10 + i\n if x < int(nr) < minim:\n minim = int(nr)\nprint(minim)\n', 'n = str(input())\nminim = 1000\nx = int(n)\nfor i in n:\n nr = i*3\n if x < int(nr) < minim:\n minim = int(nr)\nprint(minim)\n', 'n = str(input())\nif n == "999":\n print(1111)\n exit(0)\nminim = 1000\nx = int(n)\nfor i in n:\n nr = i*3\n if x < int(nr) < minim:\n minim = int(nr)\nprint(minim)\n', 'n = str(input())\nminim = 1000\nx = int(n)\nfor i in range(1, 10):\n nr = i*100 + i*10 + i\n if x <= int(nr) < minim:\n minim = int(nr)\nprint(minim)\n'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s660307420', 's743870679', 's770034805', 's539362672'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [198, 131, 174, 156] |
p03243 | u379720557 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = int(input())\n\nif N < 111:\n print(111)\nelif N < 222:\n print(222)\nelif N < 333:\n print(333)\nelif N < 444:\n print(444)\nelif N < 555:\n print(555)\nelif N < 666:\n print(666)\nelif N < 777:\n print(777)\nelif N < 888:\n print(888)\nelif N =< 999:\n print(999)', 'N = int(input())\n\nif N < 111:\n print(111)\nelif N < 222:\n print(222)\nelif N < 333:\n print(333)\nelif N < 444:\n print(444)\nelif N < 555:\n print(555)\nelif N < 666:\n print(666)\nelif N < 777:\n print(777)\nelif N < 888:\n print(888)\nelif N <= 999:\n print(999)', 'N = int(input())\n\nif N < 111:\n print(111)\nelif N < 222:\n print(222)\nelif N < 333:\n print(333)\nelif N < 444:\n print(444)\nelif N < 555:\n print(555)\nelif N < 666:\n print(666)\nelif N < 777:\n print(777)\nelif N < 888:\n print(888)\nelse:\n print(999)', 'N = int(input())\n\nif N <= 111:\n print(111)\nelif N <= 222:\n print(222)\nelif N <= 333:\n print(333)\nelif N <= 444:\n print(444)\nelif N <= 555:\n print(555)\nelif N <= 666:\n print(666)\nelif N <= 777:\n print(777)\nelif N <= 888:\n print(888)\nelif N <= 999:\n print(999)'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s619510571', 's663805031', 's678772857', 's023064223'] | [2940.0, 3064.0, 3064.0, 3064.0] | [17.0, 17.0, 17.0, 17.0] | [259, 259, 250, 267] |
p03243 | u385825353 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ["n = input()\na = ['111','222','333','444','555','666','777','888','999']\n\nfor i in a:\n\tif i >= n:\n \tprint(i)\n break", "n = input()\na = ['111','222','333','444','555','666','777','888','999']\n \nfor i in a:\n if i >= n:\n print(i)\n break"] | ['Runtime Error', 'Accepted'] | ['s944628731', 's024528019'] | [2940.0, 2940.0] | [17.0, 17.0] | [124, 131] |
p03243 | u393512980 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['y = int(input())\nfor i in range(1, 10):\n x = i + i * 10 + i * 100\n if x >= y:\n print(x)\n \tbreak\n ', 'y = int(input())\nfor i in range(1, 10):\n x = i + i * 10 + i * 100\n if x >= y:\n print(x)\n break'] | ['Runtime Error', 'Accepted'] | ['s537518012', 's246337578'] | [2940.0, 2940.0] | [18.0, 19.0] | [106, 102] |
p03243 | u393693918 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\nfor i in range(n, 1000):\n if i % 111 = 0:\n print(i)\n exit()\n', 'n = int(input())\nfor i in range(n, 1000):\n if i % 111 = 0:\n print(i)\n break', 'n = int(input())\nfor i in range(n, 1000):\n if i % 111 == 0:\n print(i)\n exit()'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s134800516', 's402340244', 's812522292'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [84, 82, 84] |
p03243 | u394482932 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['print((int(input())//111+1)*111)', 'print((int(input())+110)//111*111)'] | ['Wrong Answer', 'Accepted'] | ['s507717751', 's969118754'] | [2940.0, 2940.0] | [17.0, 19.0] | [32, 34] |
p03243 | u395761272 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['input_line = input()\nn = int(input_line / 111)\nprint(111 + n * 111)', 'input_line = input()\nn = int(input_line) / 111\nprint(111 + int(n) *111)', 'input_line = input()\nn = int(input_line)\nprint(111 + n*111)', 'input_line = input()\nn = int(input_line / 111)\nprint(n*111)', 'input_line = input()\nn = int(input_line) / 111\nprint(111 + int(111 * n))', 'str = input()\nn = str / 111\n\nprint(n*111)', 'input_line = input()\nn = int(int(input_line) / 111)\nif int(input_line) % 111 == 0:\n print(n *111)\nelse:\n print(111 + n *111)'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s226082136', 's439483114', 's572544026', 's631836061', 's757492692', 's888193595', 's068212795'] | [2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 20.0, 17.0, 17.0, 18.0, 17.0, 17.0] | [67, 71, 59, 59, 72, 41, 126] |
p03243 | u396391104 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\nif n%111 = 0:\n print(n)\nelse:\n print((n//111+1)*111)', 'n = int(input())\nprint(n) if n%111 == 0 else print((n//111+1)*111)\n'] | ['Runtime Error', 'Accepted'] | ['s283227680', 's047264325'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 67] |
p03243 | u396495667 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\na = n//100\nif n< a*111:\n print(a*111)\nelse:\n print((a+1)*111)', 'n = int(input())\na = n//100\nb = a*100 + a*10 +a\n\nif n<=b:\n print(b)\nelse:\n print((a+1)*100 + (a+1)*10 + (a+1))'] | ['Wrong Answer', 'Accepted'] | ['s201840953', 's890116098'] | [2940.0, 2940.0] | [18.0, 17.0] | [80, 112] |
p03243 | u403984573 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N=input()\nif int(N[0]*3)>int(N):\n print(int(N[0]*3))\nelse:\n print(int(str(int(N[0])+1)*3))', 'N=input()\nif int(N[0]*3)>=int(N):\n print(int(N[0]*3))\nelse:\n print(int(str(int(N[0])+1)*3))'] | ['Wrong Answer', 'Accepted'] | ['s274144937', 's945122613'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 93] |
p03243 | u405256066 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['from sys import stdin\nN=int(stdin.readline().rstrip())\nans=0\ntmp=1000\nfor i in range(1,10):\n for j in range(3,5):\n num=int(str(i)*j)\n if N-num >= 0 and tmp < N-num:\n tmp = N-num\n ans=num\nprint(ans)', 'from sys import stdin\nN=int(stdin.readline().rstrip())\nans=0\ntmp=1000\nfor i in range(1,10):\n for j in range(3,5):\n num=int(str(i)*j)\n if num-N > 0 and tmp > num-N:\n tmp = num-N\n ans=num\nprint(ans)', 'from sys import stdin\nN=int(stdin.readline().rstrip())\nans=0\ntmp=1000\nfor i in range(1,10):\n for j in range(3,5):\n num=int(str(i)*j)\n if num-N >= 0 and tmp > num-N:\n tmp = num-N\n ans=num\nprint(ans)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s386291318', 's456168931', 's028473060'] | [3064.0, 3060.0, 3060.0] | [18.0, 19.0, 18.0] | [236, 235, 236] |
p03243 | u405660020 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n=int(input())\n\na=n//100\nb=(n-a*100)//10\nc=n-a-b\n\nif a==b:\n if a<c:\n print((a+1)*100+(a+1)*10+a+1)\n elif c<a:\n print(a*100+a*10+a)\n else:\n print(n)\nelif a<b:\n print((a+1)*100+(a+1)*10+a+1)\nelif a>b:\n print(a*100+a*10+a)\n', 'n=int(input())\n\na=n//100\nb=(n-a*100)//10\nc=n-a*100-b*10\n\nif a==b:\n if a<c:\n print((a+1)*100+(a+1)*10+a+1)\n elif c<a:\n print(a*100+a*10+a)\n elif a==c:\n print(n)\nelif a<b:\n print((a+1)*100+(a+1)*10+a+1)\nelif a>b:\n print(a*100+a*10+a)\n'] | ['Wrong Answer', 'Accepted'] | ['s519635022', 's324809535'] | [3060.0, 3060.0] | [18.0, 17.0] | [256, 268] |
p03243 | u409831002 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ["nx = input('n?\\n')\nn=int(nx)\nx=111\nfor i in range (111,n,111):\n x+=111\nprint(x)\n", 'nx = input()\nn=int(nx)\nx=111\nfor i in range (111,n,111):\n x+=111\nprint(x)\n'] | ['Wrong Answer', 'Accepted'] | ['s338564866', 's413019329'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 77] |
p03243 | u411544692 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['X = int(input)\n\nif 100 <= X <= 111:\n n = 111\nelif X <= 222:\n n = 222\nelif X <= 333:\n n = 333\nelif X <= 444:\n n = 444\nelif X <= 555:\n n = 555\nelif X <= 666:\n n = 666\nelif X <= 777:\n n = 777\nelif X <= 888:\n n = 888\nelif X <= 999:\n n = 999\nelse:\n print("error")\n\nprint(n)', 'X = int(input())\n\nif 100 <= X <= 111:\n n = 111\nelif X <= 222:\n n = 222\nelif X <= 333:\n n = 333\nelif X <= 444:\n n = 444\nelif X <= 555:\n n = 555\nelif X <= 666:\n n = 666\nelif X <= 777:\n n = 777\nelif X <= 888:\n n = 888\nelif X <= 999:\n n = 999\nelse:\n print("error")\n\nprint(n)'] | ['Runtime Error', 'Accepted'] | ['s994015662', 's199219425'] | [3060.0, 3060.0] | [17.0, 17.0] | [278, 280] |
p03243 | u417794477 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = input()\nprint(N[2])\nif N[0]>N[1]:\n print(int(N[0]*3))\n\nelif N[0] == N[1]:\n if N[1] == N[2]:\n print(int(N[0] * 3))\n elif N[1]>N[2]:\n print(int(N[0] * 3))\n else:\n print(str(int(N[0]) + 1) * 3)\n\nelse:\n print(str(int(N[0]) + 1) * 3)', 'N = input()\nif N[0]>N[1]:\n print(int(N[0]*3))\n\nelif N[0] == N[1]:\n if N[1] == N[2]:\n print(int(N[0] * 3))\n elif N[1]>N[2]:\n print(int(N[0] * 3))\n else:\n print(str(int(N[0]) + 1) * 3)\n\nelse:\n print(str(int(N[0]) + 1) * 3)'] | ['Wrong Answer', 'Accepted'] | ['s483915965', 's981642224'] | [3064.0, 3064.0] | [17.0, 18.0] | [268, 256] |
p03243 | u419963262 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n=int(input())\nif n[0]=<n[1] or (n[0]==n[1] and n[0]=<n[2]):\n print(str(n[0]+1)*3)\nelse:\n print(str(n[0])*3)', 'n=list(map(int,input()))\nif n[0]<n[1] or (n[0]==n[1] and n[0]<n[2]):\n print(str(n[0]+1)*3)\nelse:\n print(str(n[0])*3)\n'] | ['Runtime Error', 'Accepted'] | ['s578332535', 's483061218'] | [2940.0, 2940.0] | [17.0, 18.0] | [110, 119] |
p03243 | u432805419 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['a = input()\nb = list(a)\nc = b[0] + b[0] + b[0]\n\nif int(a) >= int(c):\n print(int(c)+111)\nelse:\n print(int(c))', 'a = input()\nb = list(a)\nc = b[0] + b[0] + b[0]\n\nif int(a) > int(c):\n print(int(c)+111)\nelse:\n print(int(c))'] | ['Wrong Answer', 'Accepted'] | ['s264161711', 's270867263'] | [2940.0, 2940.0] | [17.0, 17.0] | [110, 109] |
p03243 | u438662618 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['import math\n\nn = int(input())\nprint(math.ceil(n / 111))\n', 'import math\n\nn = int(input())\nprint(math.ceil(n / 111) * 111)\n'] | ['Wrong Answer', 'Accepted'] | ['s535583617', 's671468617'] | [2940.0, 2940.0] | [17.0, 17.0] | [56, 62] |
p03243 | u440478998 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = input()\nprint(n[0]*3) if int(n) < int(n[0]*3) else print(str(int(n[0])+1)*3)', 'n = input()\nprint(n[0]*3) if int(n) <= int(n[0]*3) else print(str(int(n[0])+1)*3)'] | ['Wrong Answer', 'Accepted'] | ['s835610656', 's639472975'] | [9052.0, 9132.0] | [29.0, 28.0] | [80, 81] |
p03243 | u442518809 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ["num = str(input())\na = []\nx=[]\nfor i in str(num):\n a.append(i)\nif a[1] < a[0] and a[2] < a[0]:\n x.append(a[0])\n x.append(a[0])\n x.append(a[0])\n print(''.join(str(i) for i in x))\nelse:\n z = int (a[0]) +1\n x.append(z)\n x.append(z)\n x.append(z)\n print(''.join(str(i) for i in x))\n", "num = str(input())\na = []\nx=[]\nfor i in str(num):\n a.append(i)\nif a[1] < a[0] and a[2] < a[0]:\n x.append(a[0])\n x.append(a[0])\n x.append(a[0])\n print(''.join(str(i) for i in x))\nelse:\n z = int (a[0]) +1\n x.append(z)\n x.append(z)\n x.append(z)\n print(''.join(str(i) for i in x))\n", "num = str(input())\na = []\nx=[]\nfor i in str(num):\n a.append(i)\nif a[1] <= a[0] and a[2] < a[0]:\n x.append(a[0])\n x.append(a[0])\n x.append(a[0])\n print(''.join(str(i) for i in x))\nelif a[1] < a[0]:\n x.append(a[0])\n x.append(a[0])\n x.append(a[0])\n print(''.join(str(i) for i in x))\nelif a[0] == a[1] == a[2]:\n x.append(a[0])\n x.append(a[0])\n x.append(a[0])\n print(''.join(str(i) for i in x))\nelse:\n z = int (a[0]) +1\n x.append(z)\n x.append(z)\n x.append(z)\n print(''.join(str(i) for i in x))\n"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s043453426', 's671615464', 's372478574'] | [3188.0, 3064.0, 3064.0] | [19.0, 17.0, 19.0] | [307, 307, 543] |
p03243 | u444722572 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N=input()\nzoro=int(N[0])*100+int(N[0])*10+int(N[0])\nzoro_up=(int(N[0])+1)*100+(int(N[0])+1)*10+(int(N[0])+1)\nif int(N)<zoro:\n print(zoro)\nelse:\n print(zoro_up)', 'N=input()\nzoro=int(N[0])*100+int(N[0])*10+int(N[0])\nzoro_up=(int(N[0])+1)*100+(int(N[0])+1)*10+(int(N[0])+1)\nif int(N)<=zoro:\n print(zoro)\nelse:\n print(zoro_up)'] | ['Wrong Answer', 'Accepted'] | ['s527562157', 's885427599'] | [3060.0, 3060.0] | [17.0, 17.0] | [165, 166] |
p03243 | u453526259 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\n\na = 111 - (n % 111)\nprint(n+a)\n', 'n = int(input())\n\n\nif (n % 111) == 0:\n print(n)\n\nelse:\n a = 111 - (n % 111)\n print(n+a)\n'] | ['Wrong Answer', 'Accepted'] | ['s729835388', 's279747372'] | [2940.0, 2940.0] | [18.0, 17.0] | [49, 97] |
p03243 | u455642216 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n=int(input())\nwhile n%111==0:\n n = n+1\nprint(n)', 'n=int(input())\nwhile n%111!=0:\n n = n+1\nprint(n)'] | ['Wrong Answer', 'Accepted'] | ['s266532784', 's323364446'] | [2940.0, 2940.0] | [19.0, 18.0] | [51, 51] |
p03243 | u464205401 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['print((int(input())//111+1)*111)', 'n=int(input())\nprint(n if n%111==0 else (n//111+1)*111)'] | ['Wrong Answer', 'Accepted'] | ['s086388366', 's842011958'] | [2940.0, 2940.0] | [17.0, 17.0] | [32, 55] |
p03243 | u464912173 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\n\na = n//111\nif a%111 > 0:\n print(111*(a+1))\nelse:\n print(a*111)', 'n = int(input())\n\na = n//111\nif n%111 == 0:\n print(111*a)\nelse:\n print(111*a +111)'] | ['Wrong Answer', 'Accepted'] | ['s970894871', 's182626111'] | [2940.0, 3064.0] | [17.0, 20.0] | [82, 84] |
p03243 | u465246274 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\n\nprint(n//111 + 1)', 'n = int(input())\n\nprint((n//111 + 1)*111)', 'n = int(input())\n\nprint(((n-1)//111 + 1)*111)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s072450317', 's098647651', 's992902406'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [35, 41, 45] |
p03243 | u475675023 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['print((int(input())//111+1)*111)', 'print(((int(input())-1)//111+1)*111)\n'] | ['Wrong Answer', 'Accepted'] | ['s310152225', 's452259558'] | [2940.0, 2940.0] | [17.0, 17.0] | [32, 37] |
p03243 | u477551931 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ["\ndef isCorrect(n):\n l = [int(x) for x in list(str(n))]\n prev = l.pop(0)\n\n for num in l:\n if num != prev:\n return False\n prev = num\n return True\n\nif __name__ == '__main__':\n n = int(input())\n\n for m in range(n+1, 100000):\n if isCorrect(m):\n print(m)\n break\n", "\ndef isCorrect(n):\n l = [int(x) for x in list(str(n))]\n prev = l.pop(0)\n\n for num in l:\n if num != prev:\n return False\n prev = num\n return True\n\nif __name__ == '__main__':\n n = int(input())\n\n for m in range(n, 100000):\n if isCorrect(m):\n print(m)\n break\n"] | ['Wrong Answer', 'Accepted'] | ['s950636417', 's774667856'] | [2940.0, 3060.0] | [18.0, 19.0] | [328, 326] |
p03243 | u480831358 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n=int(input())\nif n//111==0:\n\tprint(int(n/111)*111)\nelse:\n\tprint(int((n/111+1))*111)', 'n=int(input())\nif n//111==0:\n\tprint(int(n/111)*111)\nelse:\n\tprint((int(n/111)+1)*111)', 'n=int(input())\nif n//111==0:\n\tprint(n/111*111)\nelse:\n\tprint((n/111+1)*111)', 'n=int(input())\nif n%111:\n\tprint(n/111*111)\nelse:\n\tprint((n/111+1)*111)', 'n=int(input())\nif n//111:\n\tprint(n/111*111)\nelse:\n\tprint((n/111+1)*111)', 'n=int(input())\nif n%111==0:\n\tprint(int(n/111)*111)\nelse:\n\tprint((n//111+1)*111)'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s010407956', 's060982408', 's271454673', 's357019439', 's513192990', 's471589075'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0, 17.0, 19.0] | [84, 84, 74, 70, 71, 79] |
p03243 | u482709947 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['#coding:utf-8\n\nn=int(input())\nprint(n+(111-((n%111))%111))', '#coding:utf-8\n\nn=int(input())\nprint(n+(111-(n%111))%111)'] | ['Wrong Answer', 'Accepted'] | ['s236013203', 's450732415'] | [2940.0, 2940.0] | [17.0, 17.0] | [58, 56] |
p03243 | u487897733 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = input()\nl = [int(x) for x in list(str(n))]\nans = []\nprint(l)\nif (l[0] < l[1]) or (l[0] < l[2]):\n\tnum = l[0] + 1\nelse:\n\tnum = l[0]\nfor i in range(3):\n\tans.append(num)\nansn = ans[0] * 100 + ans[1] * 10 + ans[2]\nprint(ansn)', 'n = input()\nl = [int(x) for x in list(str(n))]\nans = []\nif (l[0] < l[1]) or (l[0] < l[2]):\n\tnum = l[0] + 1\nelse:\n\tnum = l[0]\nfor i in range(3):\n\tans.append(num)\nansn = ans[0] * 100 + ans[1] * 10 + ans[2]\nprint(ansn)'] | ['Wrong Answer', 'Accepted'] | ['s816948436', 's596484254'] | [3064.0, 3064.0] | [17.0, 17.0] | [224, 215] |
p03243 | u492447501 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = int(input())\n\n\nprint(((N//111)+1) * 111)', 'N = int(input())\n\n\n\nfor i in range(N, 1000, 1):\n char = str(i)\n if char[0]==char[1]==char[2]:\n print(i)\n break\n'] | ['Wrong Answer', 'Accepted'] | ['s653040957', 's113878322'] | [2940.0, 2940.0] | [17.0, 17.0] | [44, 131] |
p03243 | u494058663 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['\nN=int(input())\nN_str = []\nfor i in range(N,999):\n N+=1\n N_new = N\n while N>0:\n N_str.append(N%10)\n N//=10\n N_str.reverse()\n \n N = N_new\n \n if N_str[0]==N_str[1] and N_str[1]==N_str[2]:\n print(N)\n break\n\n', 'N=int(input())\nN_str = []\nfor i in range(N,1000):\n N_new = N\n while N>0:\n N_str.append(N%10)\n N//=10\n N_str.reverse()\n \n N = N_new\n \n if N_str[0]==N_str[1] and N_str[1]==N_str[2]:\n print(N)\n break\n N+=1'] | ['Wrong Answer', 'Accepted'] | ['s113630257', 's343353618'] | [3060.0, 3060.0] | [17.0, 17.0] | [262, 260] |
p03243 | u494871759 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\n#n = input()\nsuitable = [111,222,333,444,555,666,777,888,999]\nfor s in suitable:\n if n < s:\n print(s)\n break', 'n = int(input())\n#n = input()\nsuitable = [111,222,333,444,555,666,777,888,999]\nfor s in suitable:\n if n <= s:\n print(s)\n break'] | ['Wrong Answer', 'Accepted'] | ['s818486904', 's735482962'] | [2940.0, 2940.0] | [17.0, 19.0] | [142, 143] |
p03243 | u495335272 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\n\nans_list = [100*x+10*x+x for x in range(10)]\n\nfor v in ans_list:\n if v > n:\n ans = v\n break\n \nprint(ans)', 'n = int(input())\n\nans_list = [100*x+10*x+x for x in range(10)]\n\nfor v in ans_list:\n if v >= n:\n ans = v\n break\n \nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s164286659', 's833484130'] | [2940.0, 2940.0] | [17.0, 17.0] | [146, 147] |
p03243 | u508124369 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['number = int(input())\ni = int(number / 111)\nif number % 111 != 0:\n i += 1\n print(i * 111)\n\n \n ', 'n = int(input())\ni = int(n / 111)\nif n % 111 != 0:\n i += 1\nprint(i * 111)'] | ['Runtime Error', 'Accepted'] | ['s082093112', 's589057571'] | [8928.0, 9128.0] | [26.0, 28.0] | [97, 76] |
p03243 | u516272298 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\nfor i in range(10):\n if (i*100+i*10+i) < n < ((i+1)*100+(i+1)*10+(i+1)):\n print((i+1)*100+(i+1)*10+(i+1))', 'n = int(input())\nfor i in range(10):\n if (i*100+i*10+i) < n <= ((i+1)*100+(i+1)*10+(i+1)):\n print((i+1)*100+(i+1)*10+(i+1))'] | ['Wrong Answer', 'Accepted'] | ['s273077700', 's150380984'] | [2940.0, 2940.0] | [18.0, 18.0] | [132, 133] |
p03243 | u518042385 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['k=int(input())\nl=[]\np=[]\nfor i in range(1,10):\n l.append(111*i)\nfor i in l:\n if i-k>=0:\n p.aapend(i)\nprint(min(p)) \n \n ', 'k=int(input())\nl=[]\np=[]\nfor i in range(1,10):\n l.append(111*i)\nfor i in l:\n if i-k>=0:\n p.append(i)\nprint(min(p)) '] | ['Runtime Error', 'Accepted'] | ['s332451267', 's331014894'] | [2940.0, 2940.0] | [17.0, 17.0] | [127, 121] |
p03243 | u529722835 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = int(input())\n\nlist = [int(c)+10*int(c)+100*int(c) for c in str(N)]\nlist.sort()\n\nx = 0\nfor i in range(N):\n if list[i] < N:\n continue\n else:\n x = list[i]\nprint(x)', 'N = int(input())\n \nfor n in [111*c for c in range(1,10)]:\n if n < N:\n continue\n else:\n print(n)\n break\n'] | ['Runtime Error', 'Accepted'] | ['s619165609', 's928003023'] | [2940.0, 2940.0] | [18.0, 18.0] | [184, 130] |
p03243 | u543954314 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\nprint((n // 111 + 1)*111)', 'n = int(input())\nif n % 111 == 0:\n print(n)\nelse:\n print((n//111 + 1)*111)'] | ['Wrong Answer', 'Accepted'] | ['s985497258', 's563504102'] | [2940.0, 2940.0] | [17.0, 18.0] | [42, 76] |
p03243 | u548545174 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = input()\n\nif int(N) < int(N[0] * 3):\n print(int(N[0] * 3))\nelse:\n print(int((N[0] + 1) * 3))', 'N = input()\n \nif int(N) <= int(N[0] * 3):\n print(int(N[0] * 3))\nelse:\n print(int(str((int(N[0]) + 1)) * 3))'] | ['Runtime Error', 'Accepted'] | ['s191077601', 's859163787'] | [2940.0, 2940.0] | [17.0, 17.0] | [101, 113] |
p03243 | u550943777 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['s = int(input())\nfor i in range(1,10):\n if s < int(str(i)*3):\n print(int(str(i)*3))\n exit()', 's = int(input())\nfor i in range(1,10):\n if s <= int(str(i)*3):\n print(int(str(i)*3))\n exit()'] | ['Wrong Answer', 'Accepted'] | ['s611005004', 's186391123'] | [2940.0, 2940.0] | [18.0, 18.0] | [108, 109] |
p03243 | u555356625 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\n\nprint((n // 111 + 1) * 111)', 'n = int(input())\n\nprint(((n-1) // 111 + 1) * 111)'] | ['Wrong Answer', 'Accepted'] | ['s499692660', 's663706970'] | [2940.0, 2940.0] | [17.0, 17.0] | [45, 49] |
p03243 | u556225812 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = list(input())\nprint(N)\nif N[0] >= N[1] and N[1] >= N[2]:\n print(int(N[0]*3))\nelse:\n print(int(N[0]*3)+111)', 'N = int(input())\nif N%111 ==0:\n print(N)\nelse:\n x = N//111\n print((x+1)*111)\n'] | ['Wrong Answer', 'Accepted'] | ['s236863728', 's549059405'] | [2940.0, 2940.0] | [18.0, 17.0] | [116, 86] |
p03243 | u556594202 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = int(input())\nfor i in range(9,0,-1):\n if N//int(str(i)*3)>=1:\n print(str(i+1)*3)\n break\n', 'N = int(input())\ncount=0\nfor i in range(1,10):\n if (N-1)//int(str(i)*3)>=1:\n count=i\nprint(str(count+1)*3)\n'] | ['Wrong Answer', 'Accepted'] | ['s756220804', 's211038952'] | [9148.0, 9176.0] | [30.0, 31.0] | [109, 117] |
p03243 | u558782626 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['i = int(input())\n\nwhile True:\n if set(str(i)) == 1:\n print(i)\n break\n i += 1', 'i = int(input())\n\nwhile True:\n if len(set(str(i))) == 1:\n print(i)\n break\n i += 1'] | ['Time Limit Exceeded', 'Accepted'] | ['s567086621', 's035191225'] | [2940.0, 2940.0] | [2104.0, 18.0] | [96, 101] |
p03243 | u559103167 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\nans = 0\nfor i in range(1,10):\n if 111*i>n:\n ans = 111*i\n break\nprint(ans) ', 'n = int(input())\nans = 0\nfor i in range(1,10):\n if 111*i>=n:\n ans = 111*i\n break\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s061570833', 's965120288'] | [3316.0, 2940.0] | [18.0, 17.0] | [111, 108] |
p03243 | u564906058 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\n\nif n // 111 == 0:\n print(n)\nelse:\n print(int((n//111 + 1)*111))', 'n = int(input())\n\nif n % 111 == 0:\n print(n)\nelse:\n print(int((n//111 + 1)*111))'] | ['Wrong Answer', 'Accepted'] | ['s137532211', 's434617872'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 82] |
p03243 | u570018655 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\nfor i in range(900):\n x = list(n)\n if x[0]==x[1]==x[2]:\n print(n)\n break \n n+=1\n', 'n = input()\nif n[0] == n[1] == n[2]:\n ans = n\nelif n[1] > n[0] or (n[1] == n[0] and n[2] > n[0]):\n ans = str(int(n[0])+1)*3\nelif n[1] <= n[0] or n[2] < n[0]:\n ans = n[0]*3\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s043054095', 's275514226'] | [3064.0, 3064.0] | [18.0, 20.0] | [120, 191] |
p03243 | u572193732 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = int(input())\n\nfor i in range(1, 10):\n if N < i + i*10 + i*100:\n print(i + i*10 + i*100)\n break', 'N = int(input())\n\nfor i in range(1, 10):\n if N <= i + i*10 + i*100:\n print(i + i*10 + i*100)\n break'] | ['Wrong Answer', 'Accepted'] | ['s901248230', 's581364796'] | [2940.0, 2940.0] | [17.0, 22.0] | [115, 116] |
p03243 | u577177664 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = int(input())\nprint(min([x for x in [int(str(i) * 3) - N for i in range(1, 10)] if x > 0]) + N)\n', 'N = int(input())\nprint(min([x for x in [int(x * 3) for x in list(str(N))] if x - N > 0], key=lambda x: x - N))\n', 'N = int(input())\nprint(min([x for x in [int(str(i) * 3) - N for i in range(1, 10)] if x >= 0]) + N)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s013447391', 's416046580', 's522586450'] | [2940.0, 2940.0, 2940.0] | [17.0, 49.0, 17.0] | [99, 111, 100] |
p03243 | u581187895 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\nret = n // 111 + 1\nprint(ret * 111)', 'n = int(input())\nret = (n-1) // 111\nprint(ret * 111)', 'n = int(input())\nret = (n-1) // 111 + 1\nprint(ret * 111)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s577762877', 's808277947', 's879289400'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 19.0] | [52, 52, 56] |
p03243 | u589432040 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = input()\nx = N[0]\nxxx = int(3*x)\nif N <= XXX:\n print(xxx)\nelse:\n x = int(x)+1\n print(100*x + 10*x + x)', 'N = input()\nx = N[0]\nxxx = int(3*x)\nif int(N) <= xxx:\n print(xxx)\nelse:\n x = int(x)+1\n print(100*x + 10*x + x)\n'] | ['Runtime Error', 'Accepted'] | ['s119762517', 's652063064'] | [2940.0, 2940.0] | [17.0, 18.0] | [108, 114] |
p03243 | u595205513 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['p_100 = n // 100\ntmp = n % 100\np_10 = tmp // 10\np_1 = tmp % 10\nif p_100 == p_10:\n if p_10 == p_1:\n print(str(p_1) * 3)\n elif p_10 <= p_1:\n print(str(p_10+1) * 3)\n elif p_10 >= p_1:\n print(str(p_10) * 3)\nelif p_100 <= p_10:\n print(str(p_100+1) * 3)\nelif p_100 >= p_10:\n print(str(p_100) * 3)', 'n =int(input())\np_100 = n // 100\ntmp = n % 100\np_10 = tmp // 10\np_1 = tmp % 10\nif p_100 == p_10:\n if p_10 == p_1:\n print(str(p_1) * 3)\n elif p_10 <= p_1:\n print(str(p_10+1) * 3)\n elif p_10 >= p_1:\n print(str(p_10) * 3)\nelif p_100 <= p_10:\n print(str(p_100+1) * 3)\nelif p_100 >= p_10:\n print(str(p_100) * 3)'] | ['Runtime Error', 'Accepted'] | ['s554395791', 's992608532'] | [3064.0, 3060.0] | [17.0, 17.0] | [326, 342] |
p03243 | u596101798 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\n\nfor i in range(111, 1000, 111):\n if i > n:\n print(i)\n exit(0)\n', 'n = int(input())\n\nfor i in range(111, 1000, 111):\n if i >= n:\n print(i)\n exit(0)\n'] | ['Wrong Answer', 'Accepted'] | ['s472710482', 's324886645'] | [2940.0, 2940.0] | [17.0, 19.0] | [97, 98] |
p03243 | u597436499 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\nans = n//111 if n%111 == 0 else n//111 + 1\nprint(ans)\n', 'n = int(input())\nans = n//111*111 if n%111 == 0 else n//111*111 + 111\nprint(ans)\n'] | ['Wrong Answer', 'Accepted'] | ['s717891228', 's309189148'] | [2940.0, 2940.0] | [17.0, 17.0] | [71, 81] |
p03243 | u597455618 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\nprint(((n//111)+1)*111)', 'n = int(input())\nprint((((n-1)//111)+1)*111)'] | ['Wrong Answer', 'Accepted'] | ['s593272865', 's338434649'] | [2940.0, 2940.0] | [17.0, 17.0] | [40, 44] |
p03243 | u609061751 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['import sys\nimport numpy as np\ninput = sys.stdin.readline\nN = int(input())\nans = [111,222,333,444,555,666,777,888,999]\nfor i in ans:\n if i >= N:\n print(ans)\n sys.exit()', 'import sys\nimport numpy as np\ninput = sys.stdin.readline\nN = int(input())\nans = [111,222,333,444,555,666,777,888,999]\nfor i in ans:\n if ans >= N:\n print(ans)\n sys.exit()', 'import sys\nimport numpy as np\ninput = sys.stdin.readline\nN = int(input())\nans = [111,222,333,444,555,666,777,888,999]\nfor i in ans:\n if i >= N:\n print(i)\n sys.exit()'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s777019353', 's787410062', 's933416896'] | [12484.0, 12484.0, 12484.0] | [148.0, 153.0, 148.0] | [184, 186, 182] |
p03243 | u611655181 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['\nN=int(input() )\n\nwhile(N<1000):\n N+=1\n if(N%111==0):\n print (N)\n break', '\nN=int(input() )\n\nwhile(N<1000):\n if(N%111==0):\n print (N)\n break\n N+=1'] | ['Wrong Answer', 'Accepted'] | ['s688597167', 's025155671'] | [2940.0, 2940.0] | [17.0, 17.0] | [99, 99] |
p03243 | u614314290 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = input()\n\nfor s in "123456789":\n\tif int(N) < int(s * 3):\n\t\tprint(s * 3)\n\t\tbreak\n', 'N = input()\n\nfor s in "123456789":\n\tif int(N) <= int(s * 3):\n\t\tprint(s * 3)\n\t\tbreak\n'] | ['Wrong Answer', 'Accepted'] | ['s070215487', 's406049366'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 84] |
p03243 | u617225232 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['a=input()\nif int(a) <= int(a[0])*111:\n print(int(a[0])*111)\nelse:\n print((int(a[0])+1)*111\n', 'a=input()\nif int(a) < int(a[0])*111:\n print(int(a[0])*111)\nelse:\n print((int(a[0])+1)*111)\n', 'a=input()\nif int(a) < int(a[0])*111:\n print(int(a[0])*111)\nelse:\n print((int(a[0])+1)*111', 'a=input()\nif int(a) <= int(a[0])*111:\n print(int(a[0])*111)\nelse:\n print((int(a[0])+1)*111)\n'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s189906028', 's331539620', 's356680303', 's368986578'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [93, 93, 91, 94] |
p03243 | u619458041 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ["import sys\n\ndef main():\n input = sys.stdin.readline\n N = str(input())\n L = len(N)\n f = N[0]\n a = f * L\n b = str(int(f) + 1) * L\n \n if int(a) >= int(N):\n print(int(a))\n else:\n print(int(b))\n\n\nif __name__ == '__main__':\n main()", "import sys\n\ndef main():\n input = sys.stdin.readline\n N = str(input())\n L = len(N)\n f = N[0]\n a = f * L\n b = str(int(f) + 1) * L\n \n if int(a) >= int(N):\n print(int(a))\n else:\n print(int(b))\n\n\nif __name__ == '__main__':\n main()", "import sys\n\ndef main():\n input = sys.stdin.readline\n N = str(input())\n L = len(N)\n f = N[0]\n a = f * L\n b = str(int(f) + 1) * L\n \n if int(a) >= int(N):\n print(int(a))\n else:\n print(int(b))\n\n\nif __name__ == '__main__':\n main()", "import sys\n\ndef main():\n input = sys.stdin.readline\n N = str(input().strip())\n L = len(N)\n f = N[0]\n a = f * L\n b = str(int(f) + 1) * L\n \n if int(a) >= int(N):\n print(int(a))\n else:\n print(int(b))\n\n\nif __name__ == '__main__':\n main()"] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s164812086', 's182649938', 's334402253', 's862529561'] | [3060.0, 3316.0, 3060.0, 3060.0] | [18.0, 18.0, 17.0, 18.0] | [241, 241, 241, 249] |
p03243 | u621674426 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N=int(input())\nprint(N+111-(N%111))', 'N=int(input())\nprint(N+111-(N%111) if N % 111 != 0 else N)'] | ['Wrong Answer', 'Accepted'] | ['s338167758', 's536133311'] | [2940.0, 2940.0] | [17.0, 17.0] | [35, 58] |
p03243 | u623687794 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\na = 111\nfor i in range(9):\n if a*i < n <= a*(i+1)\n print(a*(i+1))', 'n = int(input())\na = 111\nfor i in range(9):\n if a*i < n <= a*(i+1):\n print(a*(i+1))\n'] | ['Runtime Error', 'Accepted'] | ['s252489943', 's884254744'] | [2940.0, 2940.0] | [17.0, 17.0] | [84, 88] |
p03243 | u626228246 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['import sys\nN = int(input())\nfor i in range(0,112):\n n = list(str(N+i))\n print(n)\n if n[0] == n[1] == n[2]:\n print(N+i)\n sys.exit()', 'N = int(input())\nfor i in range(0,112):\n N = N+i\n n = str(N)\n if n[0] == n[1] == n[2]:\n print(N)', 'N = int(input())\nfor i in range(0,112):\n N = N+i\n n = list(str(N))\n if n[0] == n[1] == n[2]:\n print(N)\n', 'import sys\nN = int(input())\nfor i in range(0,112):\n n = list(str(N+i))\n if n[0] == n[1] == n[2]:\n print(N+i)\n sys.exit()'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s333284110', 's851675450', 's854110617', 's592344740'] | [9172.0, 9084.0, 9176.0, 9036.0] | [27.0, 28.0, 32.0, 33.0] | [139, 102, 109, 128] |
p03243 | u626337957 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N = int(input())\nA = [str(i) * 3 for i in range(10)[1:]]\nfor j in range(10)[1:]:\n if N >= A[j]:\n print(A[j])\n break', 'N = int(input())\nA = [str(i) * 3 for i in range(1, 10)]\nfor j in range(9):\n if N <= int(A[j]):\n print(A[j])\n break'] | ['Runtime Error', 'Accepted'] | ['s921425316', 's262028308'] | [2940.0, 2940.0] | [17.0, 17.0] | [122, 121] |
p03243 | u626468554 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\nli = list(111,222,333,444,555,666,777,888,999)\n\nfor i in range(9):\n if n <= li[i]:\n print(li[i])\n break\n', 'n = int(input())\nli =[111,222,333,444,555,666,777,888,999]\n\nfor i in range(9):\n if n <= li[i]:\n print(li[i])\n break\n'] | ['Runtime Error', 'Accepted'] | ['s962703623', 's506514731'] | [2940.0, 2940.0] | [18.0, 17.0] | [138, 133] |
p03243 | u627325970 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\n\nfor p in prospects:\n if p < n:\n continue\n if p >= n:\n print(p)\n break', 'n = int(input())\nprospects = [111*i for i in range(1, 10)]\n\nfor p in prospects:\n if p < n:\n continue\n if p >= n:\n print(p)\n break'] | ['Runtime Error', 'Accepted'] | ['s075790323', 's229628006'] | [2940.0, 2940.0] | [17.0, 18.0] | [114, 156] |
p03243 | u629607744 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = str(input())\nmemo = int( n[0] + n[0] + n[0] )\nif int(n) < memo:\n\tprint(memo)\nelse:\n\tprint(memo + 111)', 'n = str(input())\nmemo = int( n[0] + n[0] + n[0] )\nif int(n) <= memo:\n\tprint(memo)\nelse:\n\tprint(memo + 111)\n'] | ['Wrong Answer', 'Accepted'] | ['s997200184', 's785308774'] | [9052.0, 9104.0] | [25.0, 29.0] | [105, 107] |
p03243 | u633548583 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n=int(input())\nm==111\nfor i in range(1,10):\n if 111*i>=n:\n m=min(m,111*i)\nprint(m)\n ', 'n=int(input())\nm=999\nfor i in range(1,10):\n if 111*i>=n:\n m=min(m,111*i)\nprint(m)\n \n'] | ['Runtime Error', 'Accepted'] | ['s115999715', 's709575536'] | [2940.0, 2940.0] | [18.0, 18.0] | [97, 97] |
p03243 | u634461820 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = input()\nfor ans in range(111, 999, 111):\n if n <= ans:\n break\nprint(ans)', 'n = input()\nfor ans in range(111, 1000, 111):\n if n <= ans:\n break\nprint(ans)\n', 'n = input()\nfor ans in range(111, 1000, 111):\n if int(n) <= ans:\n break\nprint(ans)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s345050347', 's479378402', 's912157610'] | [2940.0, 2940.0, 3316.0] | [17.0, 17.0, 18.0] | [86, 88, 93] |
p03243 | u651047049 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['N=int(input())\n\nfor a in range(10):\n if a*111<=N:\n pass\n elif a*111>=N:\n print(a*111)\n break', 'N=int(input())\n\nfor a in range(10):\n if a*111<N:\n pass\n elif a*111>=N:\n print(a*111)\n break'] | ['Wrong Answer', 'Accepted'] | ['s346520787', 's352611584'] | [2940.0, 2940.0] | [17.0, 17.0] | [119, 118] |
p03243 | u658288444 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = int(input())\na = -(-n//111)\nif a = 10:\n print(1111)\nelse:\n print(a*111)', 'n = int(input())\na = -(-n//111)\nif a == 10:\n print(1111)\nelse:\n print(a*111)'] | ['Runtime Error', 'Accepted'] | ['s293962782', 's688657677'] | [8952.0, 9104.0] | [24.0, 34.0] | [81, 82] |
p03243 | u661455670 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ['n = input()\nnum = input(n)\nans = 0\nfor digit in range(1,10):\n if int(num/digit) == 111:\n ans = num\n break\n elif int(num/digit) < 111:\n ans = digit*100+digit*10+digit\n break\nprint(ans)', 'n = input()\nnum = int(n)\nans = 0\nfor digit in range(1,10):\n if num/digit == float(111):\n ans = num\n break\n elif num/digit < float(111):\n ans = digit*100+digit*10+digit\n break\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s991731105', 's674613910'] | [3060.0, 2940.0] | [17.0, 17.0] | [217, 219] |
p03243 | u661576386 | 2,000 | 1,048,576 | Kurohashi has never participated in AtCoder Beginner Contest (ABC). The next ABC to be held is ABC N (the N-th ABC ever held). Kurohashi wants to make his debut in some ABC x such that all the digits of x in base ten are the same. What is the earliest ABC where Kurohashi can make his debut? | ["a=list(str(input()))\ne=int(''.join(a))\n\n\nb=int(a[1])-int(a[1]*111)\nc=a[0]\nc=int(c)\nb = e-c*111\nif b =<0:\n print(c*111)\nelse:\n c+=1\n print(c*111)", "a=list(str(input()))\ne=int(''.join(a))\n\n\nb=int(a[1])-int(a[1]*111)\nc=a[0]\nc=int(c)\nb = e-c*111\nif b <0:\n print(c*111)\nelse:\n c+=1\n print(c*111)", "a=list(str(input()))\ne=int(''.join(a))\n\n\nb=int(a[1])-int(a[1]*111)\nc=a[0]\nc=int(c)\nb = e-c*111\nif b <=0:\n print(c*111)\nelse:\n c+=1\n print(c*111)"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s487695013', 's623273292', 's924259233'] | [2940.0, 3064.0, 3060.0] | [17.0, 17.0, 17.0] | [147, 146, 147] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.