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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02765 | u862920361 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R=input(int(x) for x in input().split())\nif N>=10:\n print(R)\nelse:\n print(R+100*(10-N))', 'N,R=(int(x) for x in input().split())\nif N>=10:\n print(R)\nelse:\n print(R+100*(10-N))'] | ['Runtime Error', 'Accepted'] | ['s533758730', 's365929750'] | [3060.0, 2940.0] | [17.0, 17.0] | [95, 90] |
p02765 | u863370423 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ["def E(N,R):\n if 1<= N <= 100 and 0<= R <= 4111:\n K = 100*(10-N)\n if K < 0:\n M =R\n print(M)\n else:\n M = R +K\n print(M)\n else:\n print('please input right numbers')\n", 'def E(N,R):\n while int(N)==N and int(R)==R:\n if 1<= N <= 100 and 0<= R <= 4111:\n if N > 10:\n print(R)\n else:\n K = 100 * (10 - N)\n print(R+K)\n break', 'N = int(input())\nR = int(input())\nif 10 < N <= 100 and 0 <= R <= 4111:\n print(R)\nif 1<= N < 10 and 0 <= R <= 4111:\n K = 100 * (10 - N)\n M = R + K\n print(M)', 'N , K = input().split()\nif (N <= 10) :\n print (100 * (10 - int(N)) + int(K))\nelse :\n print (K)', 'if 1 <= N <= 100 and 0 <= R <= 4111:\n if N > 10:\n print(R)\n else:\n K = 100 * (10 - N)\n M = R + K\n print(M)\nelse:\n False', "class E():\n def ee(N,R):\n if int(N)==N and int(R)==R:\n if 1<= N <= 100 and 0<= R <= 4111:\n if N > 10:\n M =R\n print(M)\n else:\n K = 100 * (10 - N)\n M = R + K\n print(M)\n else:\n print('please input right numbers')\n else:\n print('please input an integer')\n", "def E(N,R):\n if 1<= N <= 100 and 0<= R <= 4111:\n if N > 10:\n M =R\n print(M)\n else:\n K = 100 * (10 - N)\n M = R + K\n print(M)\n else:\n print('please input right numbers')", 'm = input("")\nlist = m.split(" ")\nif eval(list[0])<10:\n print(eval(list[1])+100*(10-eval(list[0])))\nif eval(list[0])>=10:\n print(eval(list[1]))'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s074479918', 's194457422', 's456801717', 's475466375', 's519821061', 's635761449', 's869114624', 's894912194'] | [8948.0, 9028.0, 9116.0, 2940.0, 8968.0, 9000.0, 8952.0, 8848.0] | [24.0, 25.0, 23.0, 17.0, 20.0, 26.0, 22.0, 31.0] | [240, 231, 167, 100, 156, 441, 249, 149] |
p02765 | u863371419 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n = list(map(int, input()))\n\nn1 = n[0]\nn2 = n[1]\n\nif n1 < 10:\n print(n2 - (100*(10-n1)))\nelse:\n print(n2)', 'n = list(map(int, input().split()))\n\nif n[0] < 10:\n print(100*(10-n[0]))\nelse:\n print(n[1])', 'n = list(map(int, input().split()))\n\nif n[0] < 10:\n a = 100*(10-n[0])\n print(n[1]+a)\nelse:\n print(n[1])'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s004586599', 's711478775', 's146997222'] | [2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0] | [107, 93, 106] |
p02765 | u865479192 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['def resolve():\n n = int(input())\n x = list(map(int, input().split()))\n x.sort()\n xx = [0 for i in range(n)]\n for i,j in enumerate(x):\n xx[i] = j**2\n minp = 100\n p = 0\n for i in range(max(x)):\n k = i*(n*i - 2*sum(x))\n if k < minp:\n minp = k\n p = i\n print(sum(xx)-2*p*sum(x)+n*(p**2))', 'def resolve():\n n, r = map(int, input().split())\n if n <10:\n print(r+100*(10-n))\n else:\n print(r)\n \nif __name__ == "__main__":\n resolve()'] | ['Wrong Answer', 'Accepted'] | ['s687848242', 's016019489'] | [3064.0, 2940.0] | [17.0, 17.0] | [352, 166] |
p02765 | u866374539 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r = map(int,input().split())\n\nif n<10:\n print(r-100*(10-n))\nelse:\n print(r)', 'n,r = map(int,input().split())\n\nif n<10:\n print(r+100*(10-n))\nelse:\n print(r)\n'] | ['Wrong Answer', 'Accepted'] | ['s133379219', 's695254849'] | [2940.0, 2940.0] | [17.0, 17.0] | [79, 80] |
p02765 | u870894487 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n = int(input())\nr = int(input())\nif n < 10:\n print(r + 100 * (10 - n))\nelse:\n print(r)', 'str = input().split(" ")\nn = int(str[0])\nr = int(str[1])\nif n < 10:\n print(r + 100 * (10 - n))\nelse:\n print(r)'] | ['Runtime Error', 'Accepted'] | ['s790070100', 's848201159'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 112] |
p02765 | u871841829 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\n\nprint(R - 100 * max(0, 10-N))', 'N, R = map(int, input().split())\nprint(R + 100 * max(0, 10-N))'] | ['Wrong Answer', 'Accepted'] | ['s451814071', 's056859764'] | [9140.0, 9156.0] | [26.0, 31.0] | [63, 62] |
p02765 | u872184182 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R=int(input( ).split( ))\nans=0\nif N>=10:\n ans=R\n \nelse:\n ans=R+100*(10-N)\n \nprint(ans)\n', 'N,R=int(input().split())\nans=0\nif N>=10:\n ans=R\n \nelse:\n ans=R+100*(10-N)\n \nprint(ans)\n', 'N,R=int(input().split())\nans=0\nif N>=10:\n ans=R\n \nelse:\n ans=R-100*(10-N)\n \nprint(ans)', 'N,R=map(int,input().split())\nans=0\nif N>=10:\n ans=R\n \nelse:\n ans=R+100*(10-N)\n \nprint(ans)\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s725245512', 's823645761', 's928686674', 's525159514'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [92, 90, 89, 94] |
p02765 | u878239774 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, a, b = map(int, input().split())\n\nfrom math import factorial\nans = 0\n\nif n % 2 == 1:\n for i in range(1, n // 2 + 1):\n ans += factorial(n) // factorial(i) // factorial(n - i)\n ans *= 2 + 1\nelse:\n for i in range(1, n // 2):\n ans += factorial(n) // factorial(i) // factorial(n - i)\n ans *= 2\n ans += factorial(n) // factorial(n // 2) // factorial(n - n // 2) + 1\n\nans -= factorial(n) // factorial(a) // factorial(n - a)\nans -= factorial(n) // factorial(b) // factorial(n - b)\nprint(ans)', 'n, r = map(int, input().split())\n\nif n >= 10:\n print(r)\nelse:\n print(r + 100 * (10 - n))\n'] | ['Runtime Error', 'Accepted'] | ['s354497476', 's766990225'] | [3064.0, 2940.0] | [17.0, 17.0] | [515, 92] |
p02765 | u878291720 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().solit())\nif N>= 10:\n print(R)\nelse:\n print(R+1000-100*N)', 'N, R = map(int, input().split())\nif N>= 10:\n print(R)\nelse:\n print(R+1000-100*N)'] | ['Runtime Error', 'Accepted'] | ['s111575646', 's704159252'] | [2940.0, 2940.0] | [18.0, 17.0] | [82, 82] |
p02765 | u886907961 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n = list(map(int,input().split()))\nif n[0]<10:\n print(100*(10-n[0]))\nelse:\n print(n[1])', 'n = list(map(int,input().split()))\nif n[0]<10:\n print(100*(10-n[0])+n[1])\nelse:\n print(n[1])'] | ['Wrong Answer', 'Accepted'] | ['s328530640', 's631111465'] | [2940.0, 2940.0] | [18.0, 17.0] | [93, 98] |
p02765 | u888337853 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['import math\nimport copy\nfrom copy import deepcopy\nimport sys\nimport fractions\nimport numpy as np\nfrom functools import reduce\nimport statistics\nimport heapq\n\n# input = sys.stdin.readline\n\n\n# ===FUNCTION===\n\ndef getInputInt():\n inputNum = int(input())\n return inputNum\n\n\ndef getInputListInt():\n outputData = []\n inputData = input().split()\n outputData = [int(n) for n in inputData]\n\n return outputData\n\n\ndef getSomeInputInt(n):\n outputDataList = []\n for i in range(n):\n inputData = int(input())\n outputDataList.append(inputData)\n\n return outputDataList\n\n\ndef getSomeInputListInt(n):\n inputDataList = []\n outputDataList = []\n for i in range(n):\n inputData = input().split()\n inputDataList = [int(n) for n in inputData]\n outputDataList.append(inputDataList)\n\n return outputDataList\n\n\n# ===CODE===\n\ndata = getInputListInt()\nn = data[0]\nr = data[1]\n\nans = 0\nif n > 10:\n ans = r\nelse:\n ans = r - 100*(10-n)\n\nprint(ans)', 'import math\nimport copy\nfrom copy import deepcopy\nimport sys\nimport fractions\nimport numpy as np\nfrom functools import reduce\nimport statistics\nimport heapq\n\n# input = sys.stdin.readline\n\n\n# ===FUNCTION===\n\ndef getInputInt():\n inputNum = int(input())\n return inputNum\n\n\ndef getInputListInt():\n outputData = []\n inputData = input().split()\n outputData = [int(n) for n in inputData]\n\n return outputData\n\n\ndef getSomeInputInt(n):\n outputDataList = []\n for i in range(n):\n inputData = int(input())\n outputDataList.append(inputData)\n\n return outputDataList\n\n\ndef getSomeInputListInt(n):\n inputDataList = []\n outputDataList = []\n for i in range(n):\n inputData = input().split()\n inputDataList = [int(n) for n in inputData]\n outputDataList.append(inputDataList)\n\n return outputDataList\n\n\n# ===CODE===\n\ndata = getInputListInt()\nn = data[0]\nr = data[1]\n\nans = 0\nif n > 10:\n ans = r\nelse:\n ans = r + 100*(10-n)\n\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s965576580', 's537004902'] | [22976.0, 22768.0] | [321.0, 554.0] | [1022, 1022] |
p02765 | u889390649 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['a,b = map(int, input().split())\nif a < 10:\n ans = b + 100*(10 - a)\nelse:\n ans = b\nprint(b)\n\t\n', 'a,b = map(int, input().split())\nif a < 10:\n ans = b + 100*(10 - a)\nelse:\n ans = b\nprint(ans)\n\t\n'] | ['Wrong Answer', 'Accepted'] | ['s513462237', 's562991269'] | [9012.0, 9080.0] | [25.0, 24.0] | [95, 97] |
p02765 | u891125728 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['i = list(map(int, input().split()))\nN = i[0]\nR = i[1]\n\nif N >= 10:\n insc = R\nelse:\n insc = R + 100(10-N)\n\nprint(insc)', 'i = list(map(int, input().split()))\nN = i[0]\nR = i[1]\n\nif N >= 10:\n insc = R\nelse:\n insc = R + 100*(10-N)\n\nprint(insc)'] | ['Runtime Error', 'Accepted'] | ['s777649075', 's534463286'] | [2940.0, 2940.0] | [17.0, 17.0] | [123, 124] |
p02765 | u896451538 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r = list(map(int,input().split()))\n\nif n>=10:\n print(r)\nelse:\n t = 100*(10-n)\n print(r-t)', 'n,r = list(map(int,input().split()))\n\nif n>=10:\n print(r)\nelse:\n t = 100*(10-n)\n print(r+t)'] | ['Wrong Answer', 'Accepted'] | ['s386732664', 's518386546'] | [2940.0, 2940.0] | [17.0, 17.0] | [100, 100] |
p02765 | u896741788 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,m=map(int,input().split())\nif n>=10:print(m)\nelse:\n print(n-100*(10-m))', 'n,r=map(int,input().split())\nprint(r+100*(max(0,10-n)))'] | ['Wrong Answer', 'Accepted'] | ['s300988658', 's903370764'] | [2940.0, 2940.0] | [17.0, 17.0] | [74, 55] |
p02765 | u901757711 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,k = map(int, input().split())\nt=0\n\nwhile n >= k: \n n = n // k\n t += 1\n \nprint(t+1)', 'n,r = map(int, input().split())\n\nif n>=10:\n print(r)\nelse:\n print(r+(100*(10-n)))'] | ['Runtime Error', 'Accepted'] | ['s607191481', 's871826194'] | [2940.0, 2940.0] | [17.0, 17.0] | [94, 87] |
p02765 | u902361509 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['a, b = input().split()\nif int(a) =< 9:\n ans = int(b) + 100 * (10 - int(a))\n print(ans)\nelse:\n print(b)\n ', 'a, b = input().split()\nif int(a) < 9:\n ans = int(b) - 100 * (10 - int(a))\n print(ans)\nelse:\n print(b)\n\n', 'a, b = input().split()\nif int(a) <= 9:\n ans = int(b) + 100 * (10 - int(a))\n print(ans)\nelse:\n print(b)\n '] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s345140532', 's817645700', 's150668374'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [107, 106, 107] |
p02765 | u903179665 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R=list(map(int,input().split()))\n\nif N>=10:\n print(R)\nelse:\n print(A+100*(10-N))\n \n ', 'n,k = map(int, input().split())\n \nans = 0\nwhile 1 <= n:\n n = n / k\n ans += 1\n \nprint(ans)', 'N,R=list(map(int,input().split()))\n\nif N>=10:\n A=R\nelse:\n A=100*(10-N)\nprint(A) \n ', 'N,R=list(map(int,input().split()))\n \nif N>=10:\n print(R)\nelse:\n print(R+100*(10-N))'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s040221954', 's303168026', 's505267510', 's363703003'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [101, 91, 98, 85] |
p02765 | u904804404 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R = list(map(int,input().split()))\nprint( int(R + 100*max(0,10)) )', 'N,R = list(map(int,input().split()))\nprint( int(R + 100*max(0,10-N)) )\n'] | ['Wrong Answer', 'Accepted'] | ['s854842159', 's296045652'] | [2940.0, 2940.0] | [17.0, 17.0] | [69, 72] |
p02765 | u905743924 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\nrating = R if N >= 10 else R - 100*(10-N)\nprint(rating if rating > 0 else 0)', 'N, R = map(int, input().split())\nprint(R if N >= 10 else R - 100*(10-N))', 'N, R = map(int, input().split())\nr = R if N >= 10 else R + 100*(10-N)\nprint(r)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s424756627', 's661346931', 's726323604'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [109, 72, 78] |
p02765 | u905793676 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r=map(int,input().split())\nif n>=10:\n print(r)\nelse:\n ans = r + 100 * (10 - r)\n print(ans)\n', 'n,r=map(int,input().split())\nif n>=10:\n print(r)\nelse:\n ans = r + 100 * (10 - n)\n print(ans)'] | ['Wrong Answer', 'Accepted'] | ['s174341746', 's319708468'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 101] |
p02765 | u909375661 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N = int(input())\nX = list(map(int, input().split()))\n\nm = min(X)\nM = max(X)\n\nmin_val = 100 * 100 * 100 * 100\nfor p in range(m, M+1):\n score = 0\n for x in X:\n score += (x-p)*(x-p)\n if score < min_val: min_val = score\nprint(min_val)\n', 'N, R_disp = map(int, input().split())\nprint(R_disp + 100 * (10 - N) if N < 10 else R_disp)'] | ['Runtime Error', 'Accepted'] | ['s592437115', 's166118279'] | [3060.0, 2940.0] | [17.0, 17.0] | [248, 90] |
p02765 | u909809957 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ["import math\ndef main():\n N, K = map(int, input().split())\n if N % K == 0:\n print(math.ceil(math.log(N,K))+1)\n else:\n print(math.ceil(math.log(N,K)))\n\n\nif __name__ == '__main__':\n main()", "import math\ndef main():\n N, K = map(int, input().split())\n if K ==1:\n print(N+1)\n elif N % K == 0:\n print(math.ceil(math.log(N,K))+1)\n else:\n print(math.ceil(math.log(N,K)))\n\n\nif __name__ == '__main__':\n main()", "def main():\n K, R = map(int, input().split())\n\n if K >=10:\n print(R)\n else:\n print(R + 100*(10-K))\n\nif __name__ =='__main__':\n main() "] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s129226068', 's978991900', 's010883033'] | [3060.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0] | [211, 246, 163] |
p02765 | u911567364 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R=input().split()\nN=int(N)\nR=int(R)\nif 1<=N<=9:\n R_exhibit=R-100*(10-N)\n print(R_exhibit)\nelif N>=10:\n R_exibit=R\n print(R_exhibit)', 'N,R=input().split()\nN=int(N)\nR=int(R)\nif (R>4111)or(R<0):\n None\nif 1<=N<=9:\n R_internal=R+100*(10-N)\n print(R_internal)\nelif N>=10:\n R_internal=R\n print(R_internal)\nelse:\n None'] | ['Runtime Error', 'Accepted'] | ['s064136602', 's790899510'] | [2940.0, 2940.0] | [17.0, 17.0] | [145, 182] |
p02765 | u912672208 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r=map(int,input().split())\n\nif n>=10:\n print(r)\n\nelse:\n print(100*(10-n))', 'n,r=map(int,input().split())\n\nif n>=10:\n print(r)\n\nelse:\n print(r-(100*(10-n)))\n\n', 'n,r=map(int,input().split())\n\nif n>=10:\n print(r)\n\nelse:\n print(r+(100*(10-n)))\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s474012058', 's795075346', 's756323498'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [77, 83, 82] |
p02765 | u918601425 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,K=[int(s) for s in input().split()]\nif N<10:\n print(K-(10-N)*100)\nelse:\n print(K)', 'N,K=[int(s) for s in input().split()]\nif N<10:\n print(K+(10-N)*100)\nelse:\n print(K)\n'] | ['Wrong Answer', 'Accepted'] | ['s645228080', 's877742272'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 86] |
p02765 | u919681556 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = int(input())\nk = 0\nif(n<10):\n k=100*(10-n)\n print(k)\nelse:\n print(r)', 'n= int(input())\nr = int(input())\nk = 0\nif(n<10):\n k=100*(10-n)+r\n print(k)\nelse:\n print(r)', 'def toStr(n,base):\n convertString = "0123456789ABCDEF"\n if n < base:\n return convertString[n]\n else:\n return toStr(n//base,base) + convertString[n%base]\n\na,b = map(int,input().split())\nprint(len(toStr(a,b)))', 'n= int(input())\nr = int(input())\nk = 0\nif(n<10):\n k=100*(10-n)\n print(k)\nelse:\n print(r)', 'def toStr(n,base):\n convertString = "0123456789ABCDEF"\n if n < base:\n return convertString[n]\n else:\n return toStr(n//base,base) + convertString[n%base]\n\na,b = map(int,input().split())\nprint(len(toStr(a,b)))', 'N, R = map(int, input().split())\nif N < 10:\n print((100*(10-N))+R)\nelse:\n print(R)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s199000480', 's433087688', 's505831679', 's506404777', 's940121048', 's283444062'] | [2940.0, 2940.0, 3060.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [84, 99, 230, 97, 230, 88] |
p02765 | u919730120 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ["import sys\ninput = sys.stdin.readline\n\ndef main():\n def calc(n, mod):\n f = 1\n for m in range(1, n + 1):\n f *= m\n f %= mod\n fn = f\n inv = pow(f, mod - 2, mod)\n invs = [1] * (n + 1)\n invs[n] = inv\n for m in range(n, 1, -1):\n inv *= m\n inv %= mod\n invs[m - 1] = inv \n return fn, invs\n\n mod = 10**9+7\n n,a,b=map(int,input().split())\n ans=0\n fn,invs=calc(n,mod)\n for i in range(1,n+1):\n if i==a or i==b:\n continue\n else:\n ans+=(invs[i]*invs[n-i])%mod\n print((fn*ans)%mod)\n\nif __name__ == '__main__':\n main()", "import sys\ninput = sys.stdin.readline\n\ndef main():\n n,r=map(int,input().split())\n if n>=10:\n print(r)\n else:\n print(int(100*(10-n)+r))\n\n\nif __name__ == '__main__':\n main()"] | ['Runtime Error', 'Accepted'] | ['s668431383', 's152228429'] | [3064.0, 2940.0] | [17.0, 19.0] | [673, 197] |
p02765 | u922449550 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\n\nif N >= 10:\n print(R)\nelse:\n print(R - 100*(10-N))', 'N, R = map(int, input().split())\n\nif N >= 10:\n print(R)\nelse:\n print(R + 100*(10-N))\n\n'] | ['Wrong Answer', 'Accepted'] | ['s192090630', 's303534223'] | [3316.0, 2940.0] | [21.0, 17.0] | [86, 88] |
p02765 | u924273546 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['#coding:utf-8\n\nn,k = map(int,input()split())\n\nif(n < 10):\n k = k + 100 * (10 - n)\n \nprint("{}".format(k))', '#coding:utf-8\n\nn,k = map(int,input().split())\n\nif(n < 10):\n k = k + 100 * (10 - n)\n \nprint("{}".format(k))'] | ['Runtime Error', 'Accepted'] | ['s185493651', 's862037831'] | [2940.0, 2940.0] | [17.0, 17.0] | [107, 108] |
p02765 | u924783770 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R=map(int,input().split())\n\nif N>=10:\n print(R)\nelse:\n print(100*(10-N))', 'N,R=map(int,input().split())\n\nif N>=10:\n print(R)\nelse:\n print(100*(10-K))', 'N,R=map(int,input().split())\n\nif N>=10:\n print(R)\nelse:\n print(R+100*(10-N))'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s067224634', 's643470920', 's912719697'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [80, 80, 82] |
p02765 | u927105328 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['import numpy as np\n\ni = list(map(int, input().split()))\nN = i[0]\nR = i[1]\n\nif N>=10:\n print(R)\nelse:\n print(R-(100*(10-N))', 'import numpy as np\n\ni = list(map(int, input().split()))\nN = i[0]\nR = i[1]\n\nif N>=10:\n print(R)\nelse:\n print(R-(100*(10-N)))', 'import numpy as np\n\ni = list(map(int, input().split()))\nN = i[0]\nR = i[1]\n\nif N>=10:\n print(R)\nelse:\n print(R-(100*(10-N)))', 'import numpy as np\n\ni = list(map(int, input().split()))\nN = i[0]\nR = i[1]\n\nif N>=10:\n print(R)\nelse:\n print(R+(100*(10-N)))'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s027581356', 's158910463', 's223054465', 's767558596'] | [2940.0, 12396.0, 12396.0, 12396.0] | [17.0, 153.0, 148.0, 148.0] | [128, 129, 129, 129] |
p02765 | u927807968 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n = int(input())\nr = int(input())\nif n<10 and -1<n:\n \tprint(r+100*(10-n))\nelif n>=10:\n print(r)', 'n = int(input())\nr = int(input())\nif n<10 and -1<n:\n \tprint(r+100(10-n))\nelif n>=10:\n print(r)', 'n,m=map(int,input().split())\na=[]\nfor i in range(0,m):\n num=int(input())\n a.append(num)\n n-=a[i]\nif n<=0:\n print(-1)\nelse:\n print(n)', 'N,R = map(int,input().split())\nif N<10:\n\tprint(R+100*(10-N))\nelse:\n print(R)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s069645616', 's494491644', 's855768594', 's211889323'] | [2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0, 19.0] | [99, 98, 147, 77] |
p02765 | u928758473 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['import os\n\ndef main():\n\n N,K = (int(x) for x in input().split())\n count = 0\n\n while(N > 0):\n N = N // K\n \n count += 1\n\n print(count)\n\nif __name__ == "__main__":\n main()', 'import os\n\ndef main():\n a=[int(x) for x in input().split()]\n if a[0] >= 10:\n print(a[1])\n else:\n num = 100*(10-a[0])\n print(num + a[1])\n\nif __name__ == "__main__":\n main()'] | ['Runtime Error', 'Accepted'] | ['s583127206', 's194395180'] | [2940.0, 3064.0] | [17.0, 17.0] | [197, 204] |
p02765 | u930970950 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\nprint(r - 100 * max(10 - n, 0))', 'n, r = map(int, input().split())\nprint(r - 100 * max(0, 10 - n))', 'n, r = map(int, input().split())\nprint(r + 100 * max(0, 10 - n))'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s031334048', 's045254005', 's666236144'] | [8996.0, 2940.0, 2940.0] | [29.0, 17.0, 17.0] | [64, 64, 64] |
p02765 | u931348791 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r = map(int,input().split())\nif n > 10:\n n = 10\nprint( r - 100 * (10 -n))', 'n,r = map(int,input().split())\nif n > 10:\n n = 10\nprint(r + 100 * (10 -n))'] | ['Wrong Answer', 'Accepted'] | ['s976164120', 's166889912'] | [2940.0, 2940.0] | [17.0, 17.0] | [76, 75] |
p02765 | u932225778 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r = map(int(input(),split()))\nif n < 10 :\n print(100 * (10 - n) + r)\nelse:\n print(r)', 'n,r =int(input().split())\nif n < 10 :\n print(100 * (10 - n) + r)\nelse:\n print(r)', 'n,r =map(int,input().split())\nif n < 10 :\n print(100 * (10 - n) + r)\nelse:\n print(r)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s661590096', 's763646548', 's028535973'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [88, 82, 86] |
p02765 | u935840914 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input())\nif n >= 10:\n print(r)\nelse:\n print(r + 100 * (10 - n))\n', 'n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r + 100 * (10 - n))\n'] | ['Runtime Error', 'Accepted'] | ['s819191130', 's312338283'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 94] |
p02765 | u936285815 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\n\nif n >= 10:\n print(r)\nelse:\n print( 100 * (10-n))', 'n, r = map(int, input().split())\n\nif n >= 10:\n print(r)\nelse:\n print( r + 100 * (10-n))\n '] | ['Wrong Answer', 'Accepted'] | ['s833932821', 's124807983'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 98] |
p02765 | u937782958 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = input().split()\n\ndef calc(n, r):\n if n >= 10:\n return n\n else:\n return 100*(10-r)\n\nreturn calc(n,r)', 'n, k = map(int, input().split())\n\ndef calc(n, k):\n i = 1\n tmp = n\n while (tmp > k):\n tmp = tmp - k**i\n i += 1\n return i\n\nprint(str(calc(n,k)))', 'n, r = map(int, input().split())\n\ndef calc(n, r):\n if n >= 10:\n return n\n else:\n return n - 100*(10-r)\n\nprint(str(calc(n, r)))\n', 'n, r = map(int, input().split())\n\ndef calc(n, r):\n if n >= 10:\n return r\n else:\n return r + 100*(10-n)\n\nprint(calc(n, r))\n'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s021238512', 's245466425', 's673628327', 's346814247'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [114, 154, 135, 130] |
p02765 | u939775002 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N = int(input())\nR = int(input())\nif N >= 10:\n print(R)\nelse:\n print(100*(10-N) + R)', 'if N >= 10:\n print(R)\nelse:\n print(100*(10-K))\n ', 'N = int(input())\nR = int(input())\nif N >= 10:\n print(R)\nelif N <= 10:\n print(100*(10-N) + R)', 'N, R = map(int, input().split())\nif N >= 10:\n print(R)\nelse:\n print(100*(10-N) + R)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s339148900', 's436315606', 's979211843', 's978771905'] | [2940.0, 2940.0, 2940.0, 2940.0] | [16.0, 19.0, 18.0, 17.0] | [90, 57, 98, 89] |
p02765 | u940533000 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\n\nif N >= 10:\n print(R)\nelse:\n print(R-100*(10-N))', 'N, R = map(int, input().split())\n\nif N >= 10:\n print(R)\nelse:\n print(R+100*(10-N))'] | ['Wrong Answer', 'Accepted'] | ['s456525351', 's014311844'] | [2940.0, 2940.0] | [17.0, 17.0] | [84, 84] |
p02765 | u940765148 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['import numpy as np\n\nn = int(input())\nx = np.array(list(map(int,input().split())))\n# x = np.array(x)\nr = np.full(100, 100 * n)\n\nfor p in range(100):\n r[p] = np.sum((x - p + 1)**2)\nprint(np.min(r))', 'n,r = [int(i) for i in input().split()]\n\nif n >= 10:\n print(r)\nelse:\n print(r + (100*(10 - n)))'] | ['Runtime Error', 'Accepted'] | ['s068897047', 's593270898'] | [12396.0, 2940.0] | [154.0, 18.0] | [198, 101] |
p02765 | u942356554 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = int(input())\nif n >= 10:\n print(r)\nelse:\n print(r+100*(10-n))', 'n, r = map(int,input().split())\nif n >= 10:\n print(r)\nelse:\n print(r+100*(10-n))'] | ['Runtime Error', 'Accepted'] | ['s460374641', 's912459290'] | [8980.0, 8964.0] | [26.0, 24.0] | [74, 86] |
p02765 | u944643608 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int,input().split())\nif N >= 10:\n print(R)\nelse:\n print(R + 100*N -1000)', 'N, R = map(int,input().split())\nif N >= 10:\n print(R)\nelse:\n print(R - 100*N +1000)\n'] | ['Wrong Answer', 'Accepted'] | ['s644790853', 's211669088'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 86] |
p02765 | u946969297 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = lambda(int,input().split())\nprint(r-100*max(0,10-n))', 'n, r = map(int,input().split())\nprint(r-10*max(0,10-n))', 'n, r = map(int,input().split())\nprint(r-100*max(0,10-n))', 'n, r = map(int,input().split())\nprint(r-100*max(0,10-n))', 'n, r = map(int,input().split())\nprint(r+100*max(0,10-n))'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s015807937', 's508983087', 's886820903', 's916657303', 's313956564'] | [8936.0, 9116.0, 9124.0, 9092.0, 9140.0] | [27.0, 29.0, 27.0, 26.0, 27.0] | [59, 55, 56, 56, 56] |
p02765 | u948779457 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['import math\nn,a,b = map(int,input().split())\nmod = 10**9+7\nans = pow(2,n,mod)\ndef cmb(n, r, mod):\n if ( r<0 or r>n ):\n return 0\n r = min(r, n-r)\n return g1[n] * g2[r] * g2[n-r] % mod\n\nmod = 10**9+7\nN = 10**4\ng1 = [1, 1]\ng2 = [1, 1]\ninverse = [0, 1]\n\nfor i in range(2, N + 1):\n g1.append( (g1[-1]*i) % mod)\n inverse.append( (-inverse[mod % i] * (mod//i)) % mod)\n g2.append( (g2[-1]*inverse[-1]) % mod)\nans = ans-(cmb(n,a,mod)+cmb(n,b,mod))-1\nprint(ans)', 'N,R = map(int,input().split())\nif N >= 10:\n print(R)\nelse:\n print(R+100*(10-N))\n'] | ['Runtime Error', 'Accepted'] | ['s659113425', 's480480701'] | [3064.0, 2940.0] | [17.0, 17.0] | [476, 82] |
p02765 | u953379577 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['deta = input().split()\nn = deta[0]\nr = deta[1]\nif n>=10:\n print(r)\nelse:\n rate = 100*(10-int(n))\n print(rate)', 'deta = input().split()\nn = deta[0]\nr = deta[1]\nif int(n)>=10:\n print(r)\nelse:\n rate = 100*(10-int(n))\n print(rate)', 'deta = input().split()\nn = deta[0]\nr = deta[1]\nif int(n)>=10:\n print(r)\nelse:\n rate = 100*(10-int(n))+int(r)\n print(rate)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s505394573', 's655472588', 's142014191'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [118, 123, 130] |
p02765 | u954153335 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,m=map(int,input().split())\nif 10<=n:\n print(m)\nelse:\n m=m-(10-n)*100\n print(m)', 'n,m=map(int,input().split())\nif 10<=n:\n print(m)\nelse:\n m=m+(10-n)*100\n print(m)'] | ['Wrong Answer', 'Accepted'] | ['s028945744', 's024394066'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 83] |
p02765 | u957098479 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ["N,R=map(int,input().split())\n\nif N >= 10:\n R' = R\nelse:\n R' = R + 100 * (10 - N)\n\nprint(R')", "N,R=map(int,input().split())\n\nif N >= 10:\n R' == R\nelse:\n R' == R + 100 * (10 - N)\n\nprint(R')", 'N,R=map(int,input().split())\n\nif N >= 10:\n X = R\nelse:\n X = R + 100 * (10 - N)\n\nprint(X)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s573417026', 's731691833', 's699745206'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [97, 99, 94] |
p02765 | u957198490 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R = map(int,input().split())\nif N <= 10:\n print(R)\nelse:\n print(R + 1000 -10*N)', 'N,R = map(int,input().split())\nif N <= 10:\n print(R)\nelse:\n print(R + 1000 -10*K)', 'N,R = map(int,input().split())\nif N >= 10:\n print(R)\nelse:\n print(R + 1000 -100*N)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s235694547', 's600207914', 's329251645'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [87, 87, 88] |
p02765 | u957957759 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r=int(input())\n \nif n<10:\n print(int(r+100*(10-n)))\nelse:\n print(r)', 'n,r=int(input())\n\nif n<10:\n print(r+100*(10-n))\nelse:\n print(r)', 'n,r=map(int,input().split())\n \nif n<10:\n print(r+100*(10-n))\nelse:\n print(r)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s206299823', 's517498726', 's179421307'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 20.0] | [71, 65, 78] |
p02765 | u958578969 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['a,b=map(int, input().split())\n\nif a > 10:\n print(b)\nelse:\n print(b-100*(10 - a))', 'a,b=map(int, input().split())\n\nif a >= 10:\n print(b)\nelse:\n print(b-100*(10 - a))', 'n = int(input())\n\nif n > 10:\n print(n)\nelse:\n R = 100*(10 - n)\n print(R)', 'a,b=map(int, input().split())\n\nif a >= 10:\n print(b)\nelse:\n print(b + 100*(10 - a))'] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s418942894', 's475930685', 's752553866', 's660653371'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [86, 87, 81, 89] |
p02765 | u959225525 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r=map(int,input().split())\n\nif n>10:\n print(r)\nelse:\n print(r-(100*(10-n)))', 'n,r=map(int,input().split())\n \nif n>10:\n print(r)\nelse:\n print(r+(100*(10-n)))'] | ['Wrong Answer', 'Accepted'] | ['s801981466', 's660628682'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 84] |
p02765 | u962309487 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\nif n < 10:\n print(r - 100 * (10 - n))\nelse:\n print(r)', 'n, r = map(int, input().split())\nif n < 10:\n print(r + 100 * (10 - n))\nelse:\n print(r)'] | ['Wrong Answer', 'Accepted'] | ['s509511590', 's237626554'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 92] |
p02765 | u962609087 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['def main():\n n, r = map(int,input().split())\n if n >= 10:\n print(r)\n else:\n print(r + 100* (10 - r))\nmain()', 'def main():\n n, r = map(int,input().split())\n if n >= 10:\n print(r)\n else:\n print(r + 100* (10 - k))\nmain()', 'def main():\n n, r = map(int,input().split())\n if n >= 10:\n print(r)\n else:\n print(r + 100* (10 - r))\nmain()', 'def main():\n n, r = map(int,input().split())\n if n >= 10:\n print(r)\n else:\n print(r + 100* (10 - n))\nmain()'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s110211078', 's639540993', 's780581389', 's832339130'] | [9052.0, 9048.0, 9152.0, 9096.0] | [27.0, 25.0, 26.0, 28.0] | [115, 115, 115, 115] |
p02765 | u964521959 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\nans = 0\n\nif(N>=10):\n ans = R\nelse:\n ans = R + 100*(10−K)\n\nprint(ans)\n', 'N, R = map(int, input().split())\nans = 0\n\nif(N>=10):\n ans = R\nelse:\n ans = R + 100*(10−N)\n\nprint(ans)\n', 'N, R = map(int, input().split())\nans = 0\n\nif(N>=10):\n ans = R\nelse:\n ans = R + 100×(10−K)\n\nprint(ans)\n', 'N, R = map(int, input().split())\nans = 0\n\nif(N>=10):\n ans = R\nelse:\n ans = R + 100*(10 - N)\n\nprint(ans)\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s218354907', 's269431179', 's888527743', 's846330966'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [106, 106, 107, 106] |
p02765 | u967484343 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R = int(input())\nans = 0\nif N < 10:\n ans = R\nelse:\n ans = R + 100 * (10-N)\nprint(ans)\n', 'N,R = map(int,input().split())\nans = 0\nif N >= 10:\n ans = R\nelse:\n ans = R + 100 * (10-N)\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s309241007', 's137699620'] | [9004.0, 9120.0] | [26.0, 28.0] | [141, 102] |
p02765 | u969190727 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r=map(int,input().split())\nif n>=10:\n print(r)\nelse:\n print(r-100*(10-n))\n', 'n,r=map(int,input().split())\nif n>=10:\n print(r)\nelse:\n print(r+100*(10-n))\n'] | ['Wrong Answer', 'Accepted'] | ['s537607481', 's485200449'] | [2940.0, 2940.0] | [17.0, 17.0] | [78, 78] |
p02765 | u969236097 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\nprint(n, r)\nif n >= 10:\n print(r)\nelse:\n print(r + 100 * (10 - n))', 'n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r + 100 * (10 - n))'] | ['Wrong Answer', 'Accepted'] | ['s674886454', 's750736464'] | [2940.0, 2940.0] | [17.0, 17.0] | [105, 93] |
p02765 | u970133396 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().strip().split())\n\nif n>=10:\n print(r)\nelse:\n print(r+100*(10-r))', 'n, r = map(int, input().strip().split())\n\nif n>=10:\n print(r)\nelse:\n print(r+100*(10-n))'] | ['Wrong Answer', 'Accepted'] | ['s827030897', 's478295391'] | [2940.0, 2940.0] | [17.0, 17.0] | [94, 94] |
p02765 | u971476953 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r = map(int,input().split())\nans = 0\n\nif n >= 10:\n ans = r\nelse:\n ans = 100 * (10 - n)\n \nprint(ans)', 'n,r = map(int,input().split())\nans = 0\n\nif n >= 10:\n ans = r\nelse:\n ans = r + (100 * (10 - n))\n \nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s975347873', 's694908252'] | [9132.0, 9004.0] | [29.0, 26.0] | [104, 110] |
p02765 | u973108807 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r - 100*(10-n))', 'n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r + 100*(10-n))'] | ['Wrong Answer', 'Accepted'] | ['s712096883', 's732672935'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 85] |
p02765 | u975039852 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\nprint(r - (10 - min(n, 10)) * 100)', 'n, r = map(int, input().split())\nprint(r + (10 - min(n, 10)) * 100)\n'] | ['Wrong Answer', 'Accepted'] | ['s861553803', 's875509165'] | [2940.0, 2940.0] | [17.0, 18.0] | [67, 68] |
p02765 | u977490411 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int, input().split())\nif (N>=10):\n print(R)\nelse:\n print(R-100*(10-N))', 'N, R = map(int, input().split())\nif (N>=10):\n print(R)\nelse:\n print(R+100*(10-N))'] | ['Wrong Answer', 'Accepted'] | ['s217695875', 's342622026'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 87] |
p02765 | u978167553 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\nprint(r if n >= 10 else r - 100 * (10 - n))', 'n, r = map(int, input().split())\nprint(r if n >= 10 else r + 100 * (10 - n))'] | ['Wrong Answer', 'Accepted'] | ['s323082971', 's428201091'] | [9036.0, 9108.0] | [24.0, 25.0] | [76, 76] |
p02765 | u981040490 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ["# -*- coding: utf-8 -*-\ndef main():\n N,R = map(int,input().split())\n if N >= 10:\n print(R)\n return\n else:\n print(R-(100*(10-N)))\n\nif __name__ == '__main__':\n main()", "# -*- coding: utf-8 -*-\ndef main():\n N,R = map(int,input().split())\n if N >= 10:\n print(R)\n return\n else:\n print(100*(10-N))\n\n\n\nif __name__ == '__main__':\n main()", "# -*- coding: utf-8 -*-\ndef main():\n N,R = map(int,input().split())\n if N >= 10:\n print(R)\n return\n else:\n print(R+(100*(10-N)))\n\nif __name__ == '__main__':\n main()"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s871318899', 's944587992', 's748578370'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 24.0] | [197, 195, 197] |
p02765 | u981269105 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R =[int(x) for x in input().split()]\nif(N>=10):\n print(R)\nelse:\n print(R-100*(10-N))', 'N,R = [int(x) for x in input().split()]\nif(N>=10):\n print(R)\nelse:\n print(R+100*(10-N))'] | ['Wrong Answer', 'Accepted'] | ['s103768463', 's412630289'] | [2940.0, 2940.0] | [17.0, 17.0] | [88, 89] |
p02765 | u981864683 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R = map(int,input().split())\n\nif N < 10:\n print(R + N)\nelse:\n print(N)', 'N,R = map(int,input().split())\n\nif N < 10:\n print(R + 100*(10-N))\nelse:\n print(R)'] | ['Wrong Answer', 'Accepted'] | ['s963132790', 's741629635'] | [2940.0, 2940.0] | [17.0, 17.0] | [78, 87] |
p02765 | u984664611 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r-100*(10-n))\n', 'n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r+100*(10-n))\n'] | ['Wrong Answer', 'Accepted'] | ['s625027109', 's172695502'] | [2940.0, 2940.0] | [17.0, 17.0] | [88, 88] |
p02765 | u987164499 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['from sys import stdin\nn,k = map(int,stdin.readline().rstrip().split())\nif n >= 10:\n print(k)\nelse:\n print(n*100+k)', 'n,r = map(int,input().split())\n\nif n >= 10:\n print(r)\nelse:\n print(1000-100*n+r)'] | ['Wrong Answer', 'Accepted'] | ['s891635106', 's007903596'] | [2940.0, 3064.0] | [17.0, 17.0] | [120, 86] |
p02765 | u988191897 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N=input()\nR=input()\nNaibu = int(R) + 100*(10-int(N))\nif int(N)<=9:\n print(Naibu)\nelse:\n print(R)', 'N=input().split()\n\nNaibu = int(N[1]) + 100*(10-int(N[0]))\nif int(N[0])<=9:\n print(Naibu)\nelse:\n print(N[1])'] | ['Runtime Error', 'Accepted'] | ['s677027672', 's539449495'] | [2940.0, 2940.0] | [20.0, 17.0] | [102, 113] |
p02765 | u990300472 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N = int(input())\nR = int(input())\n\nif N < 10:\n ans = R + (100 * (10 - N))\n print(ans)\nelse:\n print(R)', 'N, R = map(int, input().split())\n\nif N < 10:\n ans = R + (100 * (10 - N))\n print(ans)\nelse:\n print(R)'] | ['Runtime Error', 'Accepted'] | ['s430178219', 's489092227'] | [2940.0, 2940.0] | [17.0, 17.0] | [110, 109] |
p02765 | u991148747 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N,R = map(int,input().split())\n\ninside = 0\nif N >= 10:\n inside = R\nelse:\n inside = R - 100*(10-N)\n\nprint(inside)\n ', 'N,R = map(int,input().split())\n\ninside = 0\nif N >= 10:\n inside = R\nelse:\n inside = R + 100*(10-N)\n\nprint(inside)\n '] | ['Wrong Answer', 'Accepted'] | ['s764969171', 's598998001'] | [2940.0, 2940.0] | [17.0, 17.0] | [117, 117] |
p02765 | u993090205 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r = map(int,input().split())\nif n < 10:\n print(r-(100*(10-n)))\nelse:\n print(r)', 'n,r = input().split()\n\nif n<10:\n\tprint(r-100*(10-n))\nelse:\n\tprint(r)', 'n,r = map(int,input().split())\nif n < 10:\n print(r+(100*(10-n)))\nelse:\n print(r)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s318461904', 's856110492', 's399363374'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [86, 68, 86] |
p02765 | u994064513 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n = int(input())\nX = list(map(int, input().split()))\nx_min = min(X)\nx_max = max(X)\n\nmin_val = 10**6 + 1\n\nfor i in range(x_min, x_max + 1):\n min_val = min(min_val, sum(map(lambda x: (x-i)**2, X)))\n\nprint(min_val)', 'N, R = list(map(int, input().split()))\nprint(R if N >= 10 else R + 100*(10-N))'] | ['Runtime Error', 'Accepted'] | ['s169453080', 's691472612'] | [9112.0, 9100.0] | [25.0, 22.0] | [214, 78] |
p02765 | u995163736 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r-100*(10-n))\n\n', 'n, r = map(int, input().split())\nif n >= 10:\n print(r)\nelse:\n print(r+100*(10-n))'] | ['Wrong Answer', 'Accepted'] | ['s453663688', 's274413408'] | [9132.0, 9168.0] | [30.0, 26.0] | [85, 83] |
p02765 | u995419623 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r=map(int,input().split())\nans=r\n\nif n <10:\n ans= r - (100*(10-n))\n \nprint(ans)', 'n,r=map(int,input().split())\nans=r\n\nif n <10:\n ans= r + (100*(10-n))\n \nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s023928880', 's963244344'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 83] |
p02765 | u997393081 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['a,b=map(int,input())\nif a<10:\n print(b+(100*(10-a))\nelse:\n print(b)\n ', 'a,b=map(int,input().split())\nif a<10:\n print(b+(100*(10-a))\nelse:\n print(b)', 'a,b=map(int,input())\nif a<10:\n print(b+(100*(10-a)))\nelse:\n print(b)', 'a,b=map(int,input().split())\nif a<10:\n print(b+(100*(10-a)))\nelse:\n print(b)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s077391621', 's117869576', 's986105183', 's547095760'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0, 17.0] | [78, 77, 70, 78] |
p02765 | u998262711 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['N, R = map(int,input().split())\nprint(type(N), N, R)\n\nif N<10:\n R=R-100*(10-N)\n print(R)\nelse:\n print(R)', ' N, R = map(int,input().split())\n print(type(N), N, R)\n\nif N<10:\n R=R+100*(10-N)\n print(R)\nelse:\n print(R)\n', 'N,R = map(int,input().split())\nprint(type(N), N, R)\n\nif N<10:\n R=R+100*(10-N)\n print(R)\nelse:\n print(R)', 'N,R = map(int,input().split())\n\n\nif N<10:\n R=R+100*(10-N)\n print(R)\nelse:\n print(R)\n'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s231573013', 's611176612', 's914236941', 's559523165'] | [2940.0, 2940.0, 2940.0, 2940.0] | [20.0, 17.0, 17.0, 17.0] | [113, 116, 112, 93] |
p02765 | u998867748 | 2,000 | 1,048,576 | Takahashi is a member of a programming competition site, _ButCoder_. Each member of ButCoder is assigned two values: **Inner Rating** and **Displayed Rating**. The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests. Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating. | ['n,r = map(int,input().split())\n\nif n > =10:\n print(r)\n\nelse:\n print(r-100*(10-n))', 'n,r = map(int,input().split())\n\nif n >= 10:\n print(r)\n\nelse:\n print(r+100*(10-n))'] | ['Runtime Error', 'Accepted'] | ['s087939434', 's948348520'] | [2940.0, 2940.0] | [17.0, 17.0] | [83, 83] |
p02766 | u006425112 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['314159265 3', 'n, k = map(int, input().split())\ncount = 0\n\nwhile n > 0:\n n = n // k\n count += 1\n\nprint(count)\n'] | ['Runtime Error', 'Accepted'] | ['s914336550', 's265574550'] | [2940.0, 2940.0] | [17.0, 17.0] | [11, 101] |
p02766 | u007931962 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ["strings = input().split(' ')\nN = int(strings[0])\nK = int(strings[1])\n \nans = 1\nmax = 1\n\nwhile max < N:\n max = max * K\n ans =ans + 1\n \nprint(ans)", "strings = input().split(' ')\nN = int(strings[0])\nK = int(strings[1])\n \nans = 1\nmax = K\n\nwhile max <= N:\n max = max * K\n ans =ans + 1\n \nprint(ans)"] | ['Wrong Answer', 'Accepted'] | ['s560158092', 's145914780'] | [3060.0, 3060.0] | [17.0, 17.0] | [148, 149] |
p02766 | u008357982 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['n, k = map(int, input().split())\nans = 0\nwhile n > 0:\n n /= k\n ans += 1\nprint(ans)\n', 'n, k = map(int, input().split())\nans = 0\nwhile n > 0:\n n //= k\n ans += 1\nprint(ans)\n'] | ['Wrong Answer', 'Accepted'] | ['s130970173', 's663095134'] | [2940.0, 3060.0] | [18.0, 19.0] | [89, 90] |
p02766 | u015993380 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['import math\nprint(math.ceil(math.log(int(input()), int(input()))))', 'n, k = map(int,input().split())\nans = 0\nwhile (n > 0):\n ans += 1\n n //= k\nprint(ans + n%k)'] | ['Runtime Error', 'Accepted'] | ['s691474342', 's163579898'] | [2940.0, 3060.0] | [17.0, 17.0] | [66, 96] |
p02766 | u016901717 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['n,k=map(int,input().split())\nn=0\nwhile n>=k**n:\n n+=1\nprint(n)', 'n,k=map(int,input().split())\ndef Base_10_to_n(X, n):\n if (int(X/n)):\n return Base_10_to_n(int(X/n), n)+str(X%n)\n return str(X%n)\nprint(len(Base_10_to_n(n,k)))\n\n'] | ['Wrong Answer', 'Accepted'] | ['s601890772', 's932818523'] | [2940.0, 2940.0] | [18.0, 17.0] | [65, 173] |
p02766 | u017603316 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['[N,K] = list(map(int,input().split()))\nshou= N // K\namari=[]\nwhile shou<K:\n shou = shou // K\n ama=shou % K\n amari.append(ama)\n \n\nprint(len(amari)+2)', '[N,K] = list(map(int,input().split()))\nif N<K:\n print(1)\nelse:\n i=N\n j=0\n while i>=K:\n i = i/K\n j=j+1\n print(j+1)'] | ['Wrong Answer', 'Accepted'] | ['s707502446', 's772136928'] | [71064.0, 2940.0] | [2106.0, 17.0] | [160, 142] |
p02766 | u018258333 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['n,k = map(int,input().split())\nn2 = k\ncount = 0\nwhile n2 <= n:\n n2*=k\n count+=1\nprint(n2)\nprint(count+1)', 'n,k = map(int,input().split())\nn2 = k\ncount = 0\nwhile n2 <= n:\n n2*=k\n count+=1\nprint(count+1)'] | ['Wrong Answer', 'Accepted'] | ['s271475418', 's102669883'] | [9144.0, 9040.0] | [25.0, 29.0] | [106, 96] |
p02766 | u018679195 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['N,K=input().split()\nn,k=int(N),int(K)\n\nfor i in range(0,1000000):\n \n if n-k**i>1:\n print(i)\n break\n if n=k**i-1:\n print(i-1)\n break', 'import math \ndef findNumberOfDigits(n, b): \n dig = (math.floor(math.log(n) /math.log(b)) + 1) \n return dig\nn, k = map(int, input().strip().split())\nprint(findNumberOfDigits(n, k))'] | ['Runtime Error', 'Accepted'] | ['s714135876', 's349938969'] | [2940.0, 9092.0] | [17.0, 25.0] | [166, 186] |
p02766 | u019291053 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['import numpy as np\n\nn,r = map(int,input().split())\n\nprint(len(str(n)))', 'import numpy as np\n\nn,r = map(int,input().split())\n\nk = 1\na = 1\nwhile True:\n a *= r\n if n >= a:\n k += 1\n else:\n print(k)\n break\n'] | ['Wrong Answer', 'Accepted'] | ['s103136829', 's822900649'] | [14304.0, 12392.0] | [157.0, 147.0] | [70, 158] |
p02766 | u023229441 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['n,p=map(int,input().split())\nfor i in range(10000):\n if p**i<=n<p**(i+1):\n print(i-1)\n exit()', 'n,p=map(int,input().split())\nfor i in range(10000):\n if p**i<=n<p**(i+1):\n print(i+1)\n exit()\n'] | ['Wrong Answer', 'Accepted'] | ['s024577639', 's291133408'] | [2940.0, 2940.0] | [18.0, 17.0] | [100, 101] |
p02766 | u024422110 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['N,K = map(int, input().split())\nX = N\na = ""\nwhile X > 0:\n a = str(X&K) + a\n X = X/K\n\n \nprint(a)', 'N,K = map(int, input().split())\nX = N\na = ""\nwhile X > 0:\n a = str(X%K) + a\n X = X//K\n\n \nprint(len(a))'] | ['Runtime Error', 'Accepted'] | ['s904517596', 's616762178'] | [2940.0, 2940.0] | [17.0, 18.0] | [99, 105] |
p02766 | u035081865 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['n, r = input().split(" ")\nn=int(n)\nr=int(r)\nif n<10:\n print((100*(10-n))+r)\nelse:\n print(r)', 'import math\nn, k = input().split(" ")\nn= int(n)\nk= int(k)\ndig = (math.floor(math.log(n) / math.log(k)) + 1)\nprint(dig)'] | ['Wrong Answer', 'Accepted'] | ['s376928694', 's646768319'] | [3064.0, 2940.0] | [17.0, 17.0] | [97, 118] |
p02766 | u038136206 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['n, k = map(int, input().split())\nans = 1\nwhile n < k:\n n = n / k\n ans += 1\nprint(ans)\n', 'n, k = map(int, input().split())\nans = 1\nwhile n >= k:\n n = n / k\n ans += 1\nprint(ans)\n'] | ['Wrong Answer', 'Accepted'] | ['s746500677', 's214995134'] | [9088.0, 9116.0] | [2206.0, 28.0] | [92, 93] |
p02766 | u038819082 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['N,K=map(int,input().split())\nc=0\nwhile N/K>=1:\n N=N/K\n c+=1\nprint(c)', 'N,K=map(int,input().split())\nc=1\nwhile N>=K**c:\n c+=1\nprint(c)'] | ['Wrong Answer', 'Accepted'] | ['s673661146', 's010001989'] | [2940.0, 2940.0] | [18.0, 17.0] | [74, 65] |
p02766 | u039189422 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['N,K = map(int,input().split())\nN =+ 1\nans = 1\nfor i in range(1000000): \n\tif K**(ans) < N:\n\t\tans += 1\n\telse:\n\t\tprint(ans)\n\t\tbreak', 'N,K = map(int,input().split())\nN += 1\nans = 1\nfor i in range(1000000): \n\tif K**(ans) < N:\n\t\tans += 1\n\telse:\n\t\tprint(ans)\n\t\tbreak'] | ['Wrong Answer', 'Accepted'] | ['s624923867', 's821910719'] | [2940.0, 2940.0] | [17.0, 17.0] | [128, 128] |
p02766 | u044964932 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['def ans(n, k):\n if (int(n/k)):\n return ans(int(n/k), k)+str(n % k)\n return str(n % k)\n\n\ndef main():\n n, k = map(int, input().split())\n print(ans(n, k))\n\n\nif __name__ == "__main__":\n main()\n', 'def ans(n, k):\n if (int(n/k)):\n return ans(int(n/k), k)+str(n % k)\n return str(n % k)\n\n\ndef main():\n n, k = map(int, input().split())\n print(len(ans(n, k)))\n\n\nif __name__ == "__main__":\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s566532649', 's519707975'] | [2940.0, 2940.0] | [17.0, 19.0] | [211, 216] |
p02766 | u052221988 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['n, k = map(int, input().split())\nans = []\nwhile n!=0 :\n ans.append(n % x)\n n = n // x\nprint(len(ans))', 'n, x = map(int, input().split())\nans = []\nwhile n!=0 :\n ans.append(n % x)\n n = n // x\nprint(len(ans))'] | ['Runtime Error', 'Accepted'] | ['s988877631', 's784415962'] | [2940.0, 2940.0] | [17.0, 17.0] | [107, 107] |
p02766 | u054556734 | 2,000 | 1,048,576 | Given is an integer N. Find the number of digits that N has in base K. | ['import numpy as np\nimport scipy.sparse as sps\nimport scipy.misc as spm\nimport collections as col\nimport functools as func\nimport itertools as ite\nimport fractions as frac\nimport math as ma\nfrom math import cos,sin,tan,sqrt\nimport cmath as cma\nimport copy as cp\nimport sys\nimport re\nimport bisect as bs\nsys.setrecursionlimit(10**7)\nEPS = sys.float_info.epsilon\nPI = np.pi; EXP = np.e; INF = np.inf\nMOD = 10**9 + 7\n\ndef sinput(): return sys.stdin.readline().strip()\ndef iinput(): return int(sinput())\ndef imap(): return map(int, sinput().split())\ndef fmap(): return map(float, sinput().split())\ndef iarr(n=0):\n if n: return [0 for _ in range(n)]\n else: return list(imap())\ndef farr(): return list(fmap())\ndef sarr(n=0):\n if n: return ["" for _ in range(n)]\n else: return sinput().split()\ndef adj(n): return [[] for _ in range(n)]\n\nclass unionfind:\n def __init__(self, n):\n self.parent = [i for i in range(n)]\n self.size = [1 for i in range(n)]\n def find(self,a):\n if a == self.parent[a]: return a\n else: self.parent[a] = find(self,self.parent[a]); return self.parent[a]\n def unite(self,a,b):\n pa,pb = self.find(self,a), self.find(self,b)\n if pa == pb: return\n else: self.parent[pb] = pa; self.size[pa] += self.size[pb]\n def same(self,a,b): return find(self,a) == find(self,b)\n\nn,k = imap()\nfor i in range(31):\n if k**i > n: ans = i; break\nans = 1 if\nprint(ans)\n', 'import numpy as np\nimport scipy.sparse as sps\nimport scipy.misc as spm\nimport collections as col\nimport functools as func\nimport itertools as ite\nimport fractions as frac\nimport math as ma\nfrom math import cos,sin,tan,sqrt\nimport cmath as cma\nimport copy as cp\nimport sys\nimport re\nimport bisect as bs\nsys.setrecursionlimit(10**7)\nEPS = sys.float_info.epsilon\nPI = np.pi; EXP = np.e; INF = np.inf\nMOD = 10**9 + 7\n\ndef sinput(): return sys.stdin.readline().strip()\ndef iinput(): return int(sinput())\ndef imap(): return map(int, sinput().split())\ndef fmap(): return map(float, sinput().split())\ndef iarr(n=0):\n if n: return [0 for _ in range(n)]\n else: return list(imap())\ndef farr(): return list(fmap())\ndef sarr(n=0):\n if n: return ["" for _ in range(n)]\n else: return sinput().split()\ndef adj(n): return [[] for _ in range(n)]\n\nclass unionfind:\n def __init__(self, n):\n self.parent = [i for i in range(n)]\n self.size = [1 for i in range(n)]\n def find(self,a):\n if a == self.parent[a]: return a\n else: self.parent[a] = find(self,self.parent[a]); return self.parent[a]\n def unite(self,a,b):\n pa,pb = self.find(self,a), self.find(self,b)\n if pa == pb: return\n else: self.parent[pb] = pa; self.size[pa] += self.size[pb]\n def same(self,a,b): return find(self,a) == find(self,b)\n\nn,k = imap()\nfor i in range(31):\n if k**i > n: ans = i; break\nprint(ans)\n'] | ['Runtime Error', 'Accepted'] | ['s040484130', 's410283512'] | [8812.0, 37836.0] | [23.0, 180.0] | [1435, 1424] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.