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
|
---|---|---|---|---|---|---|---|---|---|---|
p03250 | u246820565 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ["S = str(input())\nT = str(input())\n\nfrom collections import defaultdict\ns = defaultdict(int)\nt = defaultdict(int)\n\nfor i in S:\n\ts[i] += 1\n\nfor j in T:\n\tt[j] += 1\n\nss = sorted(s.values())\ntt = sorted(t.values())\n\nif ss == tt:\n\tprint('Yes')\nelse:\n\tprint('No')\n\t\t", "S = str(input())\nT = str(input())\n\n\nfrom collections import defaultdict\ns = defaultdict(int)\nt = defaultdict(int)\n\n\nfor i in S:\n\ts[i] += 1\n\nfor j in T:\n\tt[j] += 1\n\n\n\n\nss = sorted(s.values())\ntt = sorted(t.values())\n\nif ss == tt:\n\tprint('Yes')\nelse:\n\tprint('No')\n\t\t", 'A = list(map(int, input().split()))\nA.sort()\nA.reverse()\n\nanswer = A[0]*10 + A[1] + A[2] \n\nprint(answer)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s395509109', 's611932466', 's657056267'] | [3060.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0] | [259, 508, 105] |
p03250 | u248670337 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['A,B,C=sorted(map(int,input().split()))\nprint(10*A+B+C)', 'A,B,C=sorted(map(int,input().split()))\nprint(10*C+B+A)'] | ['Wrong Answer', 'Accepted'] | ['s747380108', 's886836011'] | [2940.0, 3064.0] | [17.0, 20.0] | [54, 54] |
p03250 | u258735798 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a, b, c = map(int, input().split())\nx =a*10 + b\ny = b*10+ c\nprint([x, y] if x < y)', 'a, b, c = map(int, input().split())\nx =a*10 + b\ny = b*10+ c\nprint([x, y][if x < y])\n', 'a, b, c = map(int, input().split())\nx = a*10 + b + c\ny = b*10+ c + a\nz = c*10+ a + b\nprint(max([x, y,z]))\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s549112283', 's996757113', 's026658973'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 19.0] | [82, 84, 106] |
p03250 | u259861571 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['A = list(map(int, input().split()))\na = sorted(A)\nk = str(A[-1])+str(A[1])\nprint(int(k)+A[0])\n', 'A = list(map(int, input().split()))\na = sorted(A)\nk = str(a[-1])+str(a[1])\nprint(int(k)+a[0])\n'] | ['Wrong Answer', 'Accepted'] | ['s266016278', 's418812550'] | [2940.0, 2940.0] | [18.0, 17.0] | [94, 94] |
p03250 | u260216890 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['def prime_factorize(n):\n a = []\n while n % 2 == 0:\n a.append(2)\n n //= 2\n f = 3\n while f * f <= n:\n if n % f == 0:\n a.append(f)\n n //= f\n else:\n f += 2\n if n != 1:\n a.append(n)\n return a\n\nN,M=map(int,input().split())\nif M==1:\n print(1)\nelse:\n primes0=prime_factorize(M)\n keys=list(set(primes0))\n primes={}\n for i in range(len(keys)):\n k=keys[i]\n primes[k]=0\n for j in range(len(primes0)):\n if primes0[j]==k:\n primes[k]+=1\n\n def cmb(n, k, mod, fac, ifac): #calc nCk under mod\n if n < k or n < 0 or k < 0:\n return 0\n else: \n k = min(k, n-k)\n return fac[n] * ifac[k] * ifac[n-k] % mod\n\n def make_tables(mod, n): #Make factorial and inverse tables under mod \n fac = [1, 1] # factorial table\n ifac = [1, 1] #factorial of inverse table\n inverse = [0, 1] #inverse\n\n for i in range(2, n+1):\n fac.append((fac[-1] * i) % mod)\n inverse.append((-inverse[mod % i] * (mod//i)) % mod)\n ifac.append((ifac[-1] * inverse[-1]) % mod)\n return fac, ifac\n\n mod=10**9+7\n fac,ifac = make_tables(mod,N*2)\n ans=1\n for i in range(len(keys)):\n ans*=cmb(N+primes[keys[i]]-1, primes[keys[i]], mod, fac, ifac)\n ans%=mod\n print(ans)', 'x=list(map(int,input().split))\nx.sort()\nprint(x[-1]*10+x[-2]+x[-3])', 'x=list(map(int,input().split()))\nx.sort()\nprint(x[-1]*10+x[-2]+x[-3])'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s177743253', 's632257314', 's212596296'] | [3188.0, 2940.0, 2940.0] | [17.0, 16.0, 17.0] | [1314, 67, 69] |
p03250 | u264265458 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a=sorted(list(int,input().split()))\nprint(a[2]*10+a[0]+a[1])', 'a=sorted(list(map(int,input().split())))\nprint(a[2]*10+a[0]+a[1])'] | ['Runtime Error', 'Accepted'] | ['s659374447', 's296785242'] | [2940.0, 2940.0] | [17.0, 17.0] | [60, 65] |
p03250 | u265118937 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a, b, c = map(int, input().split())\nans = []\nans.append(100* a + 10*b + c)\nans.append(100* a + 10*c + b)\nans.append(100* b+ 10*a + c)\nans.append(100* b + 10*b + a)\nans.append(100* c + 10*a + b)\nans.append(100* c + 10*b + a)\nprint(max(ans))', 'a, b, c = map(int, input().split())\nans = []\nans.append(10* a + b + c)\nans.append(10* a + c + b)\nans.append(10* b+ a + c)\nans.append(10* b + c + a)\nans.append(10* c + a + b)\nans.append(10* c + b + a)\nprint(max(ans))'] | ['Wrong Answer', 'Accepted'] | ['s694322602', 's695522216'] | [3060.0, 3060.0] | [17.0, 17.0] | [240, 215] |
p03250 | u266171694 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a, b, c = map(int, input().split())\nprint(max(a, b, c) * 9 + sum(a, b, c))\n', 'a, b, c = map(int, input().split())\nprint(max([a, b, c]) * 9 + sum([a, b, c]))\n'] | ['Runtime Error', 'Accepted'] | ['s838495112', 's274410010'] | [2940.0, 2940.0] | [17.0, 17.0] | [75, 79] |
p03250 | u266874640 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a = list[int(input().split()) for i in range(3)]\na.remove(max(a))\nresult = 0\nfor i in range(2):\n result += a[i]\nprint(int(max(a) * 10 + result))\n', 'a = list(input().split())\nb = int(max(a))\na.remove(max(a))\nresult = 0\nfor i in range(2):\n result += int(a[i])\nprint(b * 10 + int(result))\n'] | ['Runtime Error', 'Accepted'] | ['s859666787', 's942220094'] | [2940.0, 2940.0] | [17.0, 17.0] | [148, 141] |
p03250 | u277448038 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c =map(int, input().split())\nprint(c*10+b+a)', 'a, b, c =sorted(map(int,input().split()))\nprint(c*10 +b +a)'] | ['Wrong Answer', 'Accepted'] | ['s024759944', 's272618809'] | [2940.0, 2940.0] | [17.0, 17.0] | [48, 59] |
p03250 | u277641173 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c=map(int,input().split())\nprint(max([10*a+b,a+10*b,10*b+c,b+10*c,10*a+c,a+10*c]))', 'a,b,c=map(int,input().split())\nprint(max([10*a+b+c,a+10*b+c,a+b+10*c]))'] | ['Wrong Answer', 'Accepted'] | ['s093070173', 's440650355'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 71] |
p03250 | u277802731 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['#110a\na=list(map(int,input().split()))\nsorted(a)\nans=str(a[0])+str(a[1])\nprint(int(ans)+a[2])', '#110a\na=list(map(int,input().split()))\nsorted(a)\nprint(a)\nans=str(a[0])+str(a[1])\nprint(int(ans)+a[2])', '#110a\na,b,c=map(int,input().split())\nans=(max(a,b,c)*9 + a+b+c)', '#110a\na=list(map(int,input().split()))\nsorted(a)\nans=str(a[0])+str(a[1])\ntemp=str(a[0])+str(a[2])\nprint(max(int(ans)+a[2],int(temp)+a[1]))', '#110a\na,b,c=map(int,input().split())\nans=(max(a,b,c)*9 + a+b+c)\nprint(ans)'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s238223899', 's246406377', 's326197176', 's565085105', 's466053037'] | [2940.0, 2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0, 19.0, 17.0] | [93, 102, 63, 138, 74] |
p03250 | u280552586 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a, b, c = map(int, input().split())\nprint(10*a+b+c if 10*a+b+c a+10*b+c else a+10*b+c)', 'a, b, c = sorted(map(int, input().split()))\nprint(10*a+b+c)', 'a, b, c = map(int, input().split())\nprint(10a+b if 10a+b>=10b+c else 10b+c)', 'a, b, c = map(int, input().split())\nprint(10*a+b if 10*a+b>=10*b+c else 10*b+c)', 'l = list(map(int, input().split()))\nprint(sum(l)+max(l)*9)\n'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s451307815', 's470893055', 's722708676', 's991968408', 's749739966'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [86, 59, 75, 79, 59] |
p03250 | u280978334 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c = input().split()\nprint(max(int(a+b)+int(c),int(b+c)+int(a))', 'A = list(map(int,input().split()))\nA.sort()\nprint(A[2]*10 + A[1]+A[0])'] | ['Runtime Error', 'Accepted'] | ['s688343257', 's959382017'] | [2940.0, 2940.0] | [17.0, 17.0] | [66, 70] |
p03250 | u284363684 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['# input\nABC = list(map(int, input().split()))\n\n\nABC.sort()\nX = 10 * ABC[0] + ABC[1]\nY = ABC[2]\nprint(X + Y)\n', '# input\nABC = list(map(int, input().split()))\n\n\nABC.sort(reverse=True)\nX = 10 * ABC[0] + ABC[1]\nY = ABC[2]\nprint(X + Y)'] | ['Wrong Answer', 'Accepted'] | ['s596688990', 's582089432'] | [2940.0, 2940.0] | [17.0, 18.0] | [115, 126] |
p03250 | u294322005 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['from sys import stdin\na, b, c = [int(i) for i in stdin.readline().rstrip().split()]\n\nprint(max([10 * a + b + c, a + 10 * b + c, a + b + 10 * c])\n', 'from sys import stdin\na, b, c = [int(i) for i in stdin.readline().rstrip().split()]\n\nprint(max([10 * a + b + c, a + 10 * b + c, a + b + 10 * c]))\n'] | ['Runtime Error', 'Accepted'] | ['s169989234', 's523450310'] | [2940.0, 2940.0] | [17.0, 17.0] | [145, 146] |
p03250 | u294385082 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c = map(int,input().split())\nprint(10*a+b+c,a+10*b+c,a+b+10*c)', 'a,b,c = map(int,input().split())\nprint(max(10*a+b+c,a+10*b+c,a+b+10*c))'] | ['Wrong Answer', 'Accepted'] | ['s931978962', 's702831030'] | [2940.0, 2940.0] | [17.0, 17.0] | [66, 71] |
p03250 | u305138793 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a=input()\nb=a.split(" ")\nb=[int(x) for x in b]\nb.sort()\nprint(b)\nprint(int(str(b[2])+str(b[1]))+b[0])', 'a=input()\nb=a.split(" ")\nb=[int(x) for x in b]\nb.sort()\nprint(int(str(b[2])+str(b[1]))+b[0])'] | ['Wrong Answer', 'Accepted'] | ['s708610574', 's353981077'] | [2940.0, 2940.0] | [18.0, 17.0] | [101, 92] |
p03250 | u309141201 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['x = sorted(map(int, input().split()))\nprint(10 * x[0] + x[1] + x[2])', 'x = sorted(map(int, input().split()))\nprint(10 * x[2] + x[1] + x[0])'] | ['Wrong Answer', 'Accepted'] | ['s549032016', 's587962066'] | [2940.0, 2940.0] | [19.0, 18.0] | [68, 68] |
p03250 | u313498252 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['n, m, x, y = map(int, input().split())\nxs = input().split()\nys = input().split()\n\nfor i in range(n):\n xs[i] = int(xs[i])\n\nfor i in range(m):\n ys[i] = int(ys[i])\n\nif max(xs) < min(ys):\n print("No War")\nelse:\n print("War")', 'l = input().split()\nfor i in range(len(l)):\n l[i] = int(l[i])\n \nl.sort()\nprint(l[2] * 10 + l[1] + l[0])'] | ['Runtime Error', 'Accepted'] | ['s683317883', 's136425901'] | [9080.0, 9088.0] | [25.0, 30.0] | [232, 109] |
p03250 | u317711717 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a = int(input())\nb = int(input())\nc = int(input())\nprint(a+b+c+9 * max(a, b, c))\n', 'a,b,c= map(int,input().split())\nprint(a+b+c+9 * max(a, b, c))\n'] | ['Runtime Error', 'Accepted'] | ['s093123400', 's328203909'] | [2940.0, 2940.0] | [17.0, 17.0] | [81, 62] |
p03250 | u320325426 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['l = sorted(ist(map(int, input().split())))\nprint(l[0] + int(str(l[1]) + str(l[2])))', 'l = sorted(list(map(int, input().split())))\nprint(l[0] + int(str(l[1]) + str(l[2])))', 'l = sorted(list(map(int, input().split())))\nprint(l[0] + int(str(l[2]) + str(l[1])))'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s299075397', 's558827909', 's979125794'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [83, 84, 84] |
p03250 | u328755070 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['A, B, C = list(map(int, input().split()))\nli = [A,B,C].sort()\nans = sum(li[:2]) + li[2] * 10\n\nprint(ans)', 'li = list(map(int, input().split()))\nli.sort()\n\nans = sum(li) + 9 * li[-1]\n\n \nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s639252965', 's608730603'] | [2940.0, 2940.0] | [18.0, 17.0] | [104, 88] |
p03250 | u329143273 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c=sorted(map(int,input().split()))\nprint(a*10+b+c)', 'a,b,c=sorted(map(int,input().split()))\nprint(c*10+a+b)'] | ['Wrong Answer', 'Accepted'] | ['s115555011', 's804334612'] | [2940.0, 2940.0] | [17.0, 17.0] | [54, 54] |
p03250 | u330799501 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['#k = int(input())\n#s = input()\n#a, b = map(int, input().split())\n#s, t = map(str, input().split())\n#l = list(map(int, input().split()))\n\n#a = [list(input()) for _ in range(n)]\n#a = [input() for _ in range(n)]\n\nl = list(map(int, input().split()))\n\nl.sort()\nprint(l[2]*10+l[1]-l[0])\n\n\n', '#k = int(input())\n#s = input()\n#a, b = map(int, input().split())\n#s, t = map(str, input().split())\n#l = list(map(int, input().split()))\n\n#a = [list(input()) for _ in range(n)]\n#a = [input() for _ in range(n)]\n\nl = list(map(int, input().split()))\n\nl.sort()\nprint(l[2]*10+l[1]+l[0])\n\n\n'] | ['Wrong Answer', 'Accepted'] | ['s372767989', 's990709361'] | [8972.0, 9000.0] | [26.0, 25.0] | [338, 338] |
p03250 | u333945892 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ["from collections import defaultdict,deque\nimport sys,heapq,bisect,math,itertools,string,queue,datetime\nsys.setrecursionlimit(10**8)\nINF = float('inf')\nmod = 10**9+7\neps = 10**-7\ndef inp(): return int(input())\ndef inpl(): return list(map(int, input().split()))\ndef inpls(): return list(input().split())\n\nabc = inpl()\nabc.sort()\n\nprint(abc[2]*9+abc[0]+abc[1])\n", "from collections import defaultdict,deque\nimport sys,heapq,bisect,math,itertools,string,queue,datetime\nsys.setrecursionlimit(10**8)\nINF = float('inf')\nmod = 10**9+7\neps = 10**-7\ndef inp(): return int(input())\ndef inpl(): return list(map(int, input().split()))\ndef inpls(): return list(input().split())\n\nabc = inpl()\nabc.sort()\n\nprint(abc[2]*10+abc[0]+abc[1])\n"] | ['Wrong Answer', 'Accepted'] | ['s547849196', 's243719061'] | [4456.0, 4324.0] | [112.0, 31.0] | [358, 359] |
p03250 | u339523379 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['l=list(map,(int,input().split()))\nl=sorted(l)\n\nans=l[0]+l[1]+10*l[2]\n\nprint(ans)', 'l=list(map(int,input().split()))\nl=sorted(l)\n\nans=l[0]+l[1]+10*l[2]\n\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s308621236', 's046060277'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 79] |
p03250 | u339550873 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['#! /usr/bin/env python3\n# -*- coding: utf-8 -*-\nls = [int(c) for c in input().split()]\nls.sort()\nans = ls[0]*10 + ls[1] + ls[2]\nprint(ans)\n', '#! /usr/bin/env python3\n# -*- coding: utf-8 -*-\nls = [int(c) for c in input().split()]\nls.sort()\nans = ls[2] * 10 + ls[1] + ls[0]\nprint(ans)\n'] | ['Wrong Answer', 'Accepted'] | ['s376895414', 's232295687'] | [2940.0, 2940.0] | [17.0, 17.0] | [139, 141] |
p03250 | u339851548 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | [" = list(map(int, input().split()))\na = a.sort\nb = [str(a[2]), str(a[1])]\nc = ''.join(b)\nprint(int(c) + a[0])", "a = list(map(int, input().split()))\na = sorted(a)\nb = [str(a[2]), str(a[1])]\nc = ''.join(b)\nprint(int(c) + a[0])"] | ['Runtime Error', 'Accepted'] | ['s393070178', 's179530746'] | [2940.0, 2940.0] | [17.0, 17.0] | [108, 112] |
p03250 | u340781749 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a, b, c = map(int, input().split())\na, b, c = sorted([a, b, c])\nprint(a + 10 * b + c)\n', 'a, b, c = map(int, input().split())\na, b, c = sorted([a, b, c])\nprint(a + b + 10 * c)\n'] | ['Wrong Answer', 'Accepted'] | ['s430176113', 's783227580'] | [2940.0, 2940.0] | [17.0, 17.0] | [86, 86] |
p03250 | u342051078 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['A, B, C = int(input().split())\n\nint D = max(A, B, C)\n\nif A == D :\n print(A * 10 + B + c)\n \nelif B == D:\n print(B * 10 + A + C)\n \nelif C == D\n print(C * 10 + A + B)', 'A, B, C = int(input().split())\n\nint ans = max(A*10 + B + C, B*10 + A + C, C*10 + A + B)\nprint(ans)', 'A, B, C = map(int, input().split())\n\n\nint ans = max(A*10 + B + C, B*10 + A + C, C*10 + A + B)\nprint(ans)', 'A, B, C = int(input())\n\nint D = max(A, B, C)\n\nif A == D :\n print(A * 10 + B + c)\n \nelif B == D:\n print(B * 10 + A + C)\n \nelse :\n print(C * 10 + A + B)', 'int A, B, C = input().split()\n\nint D = max(A, B, C)\n\nif A == D :\n print(A * 10 + B + c)\n \nelif B == D:\n print(B * 10 + A + C)\n \nelif C == D\n print(C * 10 + A + B)', 'data = int(input().split())\n\nint A = data[0]\nint B = data[1]\nint C = data[2]\n\nint ans = max(A*10 + B + C, B*10 + A + C, C*10 + A + B)\nprint(ans)', 'A, B, C = int(input[])\n\nint D = max(A, B, C)\n\nif A == D :\n print(A * 10 + B + c)\n \nelif B == D:\n print(B * 10 + A + C)\n \nelif C == D\n print(C * 10 + A + B)', 'A, B, C = int(input().split())\n\nint D = max(A, B, C)\n\nif A == D :\n print(A * 10 + B + c)\n \nelif B == D:\n print(B * 10 + A + C)\n \nelif C == D\n print(C * 10 + A + B)', 'A, B, C = int(input())\n\nint D = max(A, B, C)\n\nif A == D :\n print(A * 10 + B + c)\n \nelif B == D:\n print(B * 10 + A + C)\n \nelse :\n print(C * 10 + A + B)', 'A, B, C = int(input().split())\n\n\nans = max(A*10 + B + C, B*10 + A + C, C*10 + A + B)\nprint(ans)', 'A, B, C = int(input())\n\nint D = max(A, B, C)\n\nif A == D :\n print(A * 10 + B + c)\n \nelif B == D:\n print(B * 10 + A + C)\n \nelif C == D\n print(C * 10 + A + B)', 'A, B, C = int(input().split)\n\nint D = max(A, B, C)\n\nif A == D :\n print(A * 10 + B + c)\n \nelif B == D:\n print(B * 10 + A + C)\n \nelif C == D\n print(C * 10 + A + B)', 'A, B, C = int(input().split)\n\nint D = max(A, B, C)\n\nif A == D :\n print(A * 10 + B + c)\n \nelif B == D:\n print(B * 10 + A + C)\n \nelif C == D\n print(C * 10 + A + B)', 'A, B, C = (int(x) for x in input().split())\n\nint D = max(A, B, C)\n\nif A == D :\n print(A * 10 + B + c)\n \nelif B == D:\n print(B * 10 + A + C)\n \nelif C == D\n print(C * 10 + A + B)', 'A, B, C = map(int, input().split())\n\n\nans = max(A*10 + B + C, B*10 + A + C, C*10 + A + B)\nprint(ans)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s061315414', 's084206926', 's088673360', 's103666886', 's215189506', 's224302676', 's231855761', 's351642535', 's365761262', 's367111998', 's467860215', 's564669861', 's886343807', 's987429860', 's971682589'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 16.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [168, 98, 104, 155, 167, 144, 160, 168, 155, 95, 160, 166, 166, 181, 100] |
p03250 | u343977188 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c=map(str,input().split())\nprintmax((int(a+b)+int(c),int(a)+int(b+c)))', 'a,b,c=map(str,input().split())\nprint(int(a+b)+int(c),int(a)+int(b+c))', 'L=sorted(list(map(str,input().split())))\nprint(int(L[2]+L[1])+int(L[0]))\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s475290407', 's650256886', 's058422240'] | [2940.0, 3064.0, 2940.0] | [17.0, 18.0, 18.0] | [74, 69, 73] |
p03250 | u344959886 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c=map(int,input().split())\n\nprint(max(a,b,c)*9+sum(a,b,c)', 'l=list(map(int,input().split()))\nprint(max(l)*9+sum(l))'] | ['Runtime Error', 'Accepted'] | ['s690721304', 's877898578'] | [2940.0, 2940.0] | [17.0, 17.0] | [61, 55] |
p03250 | u345136423 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c = map(int,input().split())\n\nanli = sorted([a,b,c])\n\nprint(anli[2] * 10 + anli[1] +anli[1])', 'a,b,c = map(int,input().split())\n\nanli = sorted([a,b,c])\n\nprint(anli[2] * 10 + anli[1] +anli[0])'] | ['Wrong Answer', 'Accepted'] | ['s596887148', 's067469452'] | [2940.0, 2940.0] | [17.0, 17.0] | [96, 96] |
p03250 | u347600233 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a, b, c = map(int, input().split())\nprint(max(a, b, c)*9 + sum(a, b, c))', 'a, b, c = map(int, input().split())\nprint(max(a, b, c)*9 + sum([a, b, c]))'] | ['Runtime Error', 'Accepted'] | ['s473526847', 's123423408'] | [2940.0, 2940.0] | [19.0, 18.0] | [72, 74] |
p03250 | u347640436 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['A, B, C = map(int, input().split())\n\nt = sorted([A, B, C])\nprint(A * 10 + B + C)', 'A, B, C = map(int, input().split())\n\nprint(max(A * 10 + B + C, A + N * 10 + C))', 'A, B, C = map(int, input().split())\n\nt = sorted([A, B, C])\nprint(t[0] * 10 + t[1] + t[2])', 'A, B, C = map(int, input().split())\n\nt = sorted([A, B, C])\nprint(t[0] + t[1] + t[2] * 10)'] | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s586030059', 's587911146', 's850296594', 's288342081'] | [9124.0, 9040.0, 9132.0, 8952.0] | [25.0, 25.0, 29.0, 22.0] | [80, 79, 89, 89] |
p03250 | u365375535 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['num = map(int, input().split())\nnum = sorted(num, reverce = True)\nprint(num[0]*10 + num[1] + num[2])', 'num = map(int, input().split())\nnum = sorted(num, reverse = True)\nprint(num[0]*10 + num[1] + num[2])'] | ['Runtime Error', 'Accepted'] | ['s195273229', 's785405299'] | [2940.0, 2940.0] | [18.0, 17.0] | [100, 100] |
p03250 | u365928729 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['# coding: utf-8\n# Your code here!\na=input().split(" ")\na.sort()\nprint(int(a[0])*10+int(a[1])+int(a[2]))', '# coding: utf-8\n# Your code here!\na=input().split(" ")\na.sort()\nprint(int(a[2])*10+int(a[1])+int(a[0]))'] | ['Wrong Answer', 'Accepted'] | ['s634220428', 's143167641'] | [2940.0, 2940.0] | [18.0, 17.0] | [103, 103] |
p03250 | u370793182 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['n = list(map(int, input().split()))\nn.sort()\nprint(n[0]*10 + n[1] + n[2])', 'n = list(map(int, input().split()))\nn.sort(reverse=True)\nprint(n[0]*10 + n[1] + n[2])\n'] | ['Wrong Answer', 'Accepted'] | ['s431923739', 's025039145'] | [2940.0, 2940.0] | [17.0, 17.0] | [73, 86] |
p03250 | u374829922 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ["import sys\n\ndef odd_def(num):\n if num % 2 == 0:\n return False\n else:\n return True\n\ndef main():\n a,b = map(int, input().split())\n for i in range(1,4):\n mal = a*b*c\n if odd_def(mal):\n print('Yes')\n sys.exit()\n print('No')\n\n\nif __name__ == '__main__' :\n main()", "def main():\n l = list(map(int,input().split()))\n l = sorted(l,reverse=True)\n ans = ''\n\n ans = 10* l[0] + l[1] + l[2]\n print(ans)\n\n\n \n\n\n\n\nif __name__ == '__main__' :\n main()"] | ['Runtime Error', 'Accepted'] | ['s160296968', 's580199021'] | [3060.0, 3060.0] | [18.0, 17.0] | [325, 322] |
p03250 | u375616706 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['mod = 10 ** 9 + 7\nn, m = map(int, input().split())\n\nf = []\np = 2\nwhile p * p <= m:\n if m % p != 0:\n p += 1\n continue\n c = 0\n while m % p == 0:\n c += 1\n m //= p\n f.append(c)\n p += 1\nif m != 1:\n f.append(1)\n\n\ndef comb(a, b):\n ret = 1\n r = min(b, a-b)\n for i in range(a-r+1, a+1):\n ret *= i\n for j in range(1, r+1):\n ret /= j\n return (int)(ret)\n\n\nres = 1\nfor ele in f:\n ret = comb(ele+n-1, n-1)\n res *= ret\n\nprint(res % mod)\n', 'l=list(map(int,input().split()))\nl=sorted(l)\nprint(l[0]*10+l[1]+l[2])', 'l=list(map(int,input().split()))\nl=sorted(l,reverse=True)\nprint(l[0]*10+l[1]+l[2])'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s509965195', 's727221758', 's326850257'] | [3064.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [503, 69, 82] |
p03250 | u385244248 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['A,B,C = map(int.input().split())\nprint(max(A+B,B+C,C+A))', 'listabc = sorted(list(map(int,input().split())))\nprint(9*listabc[2]+sum(listabc))\n'] | ['Runtime Error', 'Accepted'] | ['s636842857', 's210419950'] | [2940.0, 2940.0] | [17.0, 17.0] | [56, 82] |
p03250 | u390793752 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['def main():\n ABC = [int(s) for s in input().split()]\n sorted = ABC.sort()\n result = int(str(sorted[0])+str(sorted[1])) + sorted[2]\n print(result)\n\nif __name__ == "__main__":\n main()', 'def main():\n inputs = [int(s) for s in input().split()]\n sorted_list = sorted(inputs,reverse=True)\n result = int(str(sorted_list[0])+str(sorted_list[1])) + sorted_list[2]\n print(result)\n\nif __name__ == "__main__":\n main()'] | ['Runtime Error', 'Accepted'] | ['s570926552', 's520852138'] | [2940.0, 2940.0] | [18.0, 17.0] | [196, 236] |
p03250 | u393512980 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['in = list(map(int, input().split()))\nprint(max(in)*10+sum(in)-max(in))', 'lst = list(map(int, input().split()))\nprint(max(lst)*10+sum(lst)-max(lst))'] | ['Runtime Error', 'Accepted'] | ['s112143813', 's560243035'] | [2940.0, 2940.0] | [18.0, 18.0] | [70, 74] |
p03250 | u393693918 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['import math\nfrom scipy.misc import comb\n \nN, M = map(int, input().split())\nli1 = []\nli2 = []\na = 1\n\nfor j in range(2, int(math.sqrt(M))):\n dest = int(math.sqrt(j))\n for i in range(2,dest):\n if j % i == 0:\n continue\n li1.append(j)\n\nfor k in range(len(li1)):\n if M % li1[k] != 0:\n continue\n c = 0\n x = M\n while x % li1[k] == 0:\n x = x / li1[k]\n c += 1\n li2.append(c)\n\nfor l in range(len(li2)):\n a *= comb(li2[l] + N - 1, N - 1)\n\nprint(int(a))', 'l = sorted(list(map(int, input().split())))\nprint(l[0] * 10 + l[1] + l[2])', 'l = sorted(list(map(int, input().split())))\nprint(l[2] * 10 + l[1] + l[0])'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s054809351', 's326736596', 's473052428'] | [13212.0, 2940.0, 2940.0] | [163.0, 18.0, 18.0] | [506, 74, 74] |
p03250 | u394853232 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['lst = list(map(int, input().split()))\nprint(lst[0] + lst[1] + 10 * lst[2])', 'lst = list(map(int, input().split()))\nlst.sort()\nprint(lst[0] + lst[1] + 10 * lst[2])'] | ['Wrong Answer', 'Accepted'] | ['s026362691', 's475290367'] | [3188.0, 2940.0] | [19.0, 17.0] | [74, 85] |
p03250 | u395576337 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['\narray = list(map(int, input().strip().split()))\n#array.sort(reverse = True)\nN = array[0]\nM = array[1]\nX = array[2]\nY = array[3]\n\nxarray = list(map(int, input().strip().split()))\nxarray.sort(reverse = True)\n##print(xarray)\nxmax = xarray[0]\n\nyarray = list(map(int, input().strip().split()))\nyarray.sort()\n##print(yarray)\nymin = yarray[0]\nif (ymin > xmax):\n if((abs(ymin) - abs(xmax)) >= 1):\n print("No War")\n else:\n print("War")\nelse:\n print("War")\n\n##print(array)\n', 'array = list(map(int, input().strip().split()))\narray.sort(reverse = True)\nA = 10 * array[0] + array[1] + array[2]\nprint(A)\n'] | ['Runtime Error', 'Accepted'] | ['s603371584', 's390394273'] | [3064.0, 2940.0] | [17.0, 18.0] | [487, 124] |
p03250 | u397563544 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c = map(int,input().split())\n\nif a>=b and a>=c:\n a=a*10\n print(a+b+c)\nelif b>=a and b>=c:\n b=b*10\n print(a+b+c)\nelse\n c=c*10\n print(a+b+c)', 'a,b,c = map(int,input().split())\n\nif a>=b and a>=c:\n a = a*10\n print(a+b+c)\nelif b>=a and b>=c:\n b = b*10\n print(a+b+c)\nelse:\n c = c*10\n print(a+b+c)\n\n '] | ['Runtime Error', 'Accepted'] | ['s515456087', 's169257325'] | [2940.0, 2940.0] | [17.0, 17.0] | [148, 158] |
p03250 | u400221789 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c=map(int,input().split())\nx=max(a,b,c)\nprint(x*10+sum(a,b,c)-x)', 'a,b,c=map(int,input().split())\nx=max(a,b,c)\nprint(x*10+a+b+c-x)'] | ['Runtime Error', 'Accepted'] | ['s453933344', 's352736545'] | [2940.0, 2940.0] | [17.0, 17.0] | [68, 63] |
p03250 | u402467563 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['A, B, C = map(int,input().split())\nans = []\nans.append(A+B)\nans.append(B+C)\nans.append(C+A)\nprint(max(ans))', 'li = list(map(int,input().split()))\nli.sort()\nprint(10*li[0]+li[1]+li[2])', 'li = list(map(int,input().split()))\nli.sort(reverse = True)\nprint(10*li[0]+li[1]+li[2])\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s171709045', 's387030299', 's935662616'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [107, 73, 88] |
p03250 | u405256066 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['from sys import stdin\na,b,c=[x for x in stdin.readline().rstrip().split()]\nprint(max(int(a)+int(b+c),int(a+b)+int(c))', 'from sys import stdin\na,b,c=[x for x in stdin.readline().rstrip().split()]\nprint(max(int(a)+int(b+c),int(a+b)+int(c),int(c+b)+int(a)))'] | ['Runtime Error', 'Accepted'] | ['s596862499', 's443237787'] | [2940.0, 2940.0] | [18.0, 18.0] | [117, 134] |
p03250 | u407016024 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ["N, M, X, Y = map(int, input().split())\nx = list(map(int, input().split()))\ny = list(map(int, input().split()))\nx.append(X)\ny.append(Y)\nif max(x) < min(y):\n print('No War')\nelse:\n print('War')", 'A, B, C = map(int, input().split())\nif max(A, B, C) == A:\n print(10*A + B + C)\nelif max(A, B, C) == B:\n print(10*B + A + C)\nelse:\n print(10*C + B + A)'] | ['Runtime Error', 'Accepted'] | ['s119135596', 's666040565'] | [3060.0, 3060.0] | [17.0, 17.0] | [197, 159] |
p03250 | u411544692 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['numbers = map(int, input().split())\n\nprint(sum(numbers) + max(numbers)*9)', 'numbers = [int(input()) for i in range(3)]\n\nnumbers.sort()\nnumbers.reverse()\n\nprint(numbers[0]*10 + numbers[1] + numbers[2])', 'numbers = [int(input()) for i in range(3)]\n\nnumbers.sort()\nnumbers.reverse()\n\nprint(numbers[0]*10 + numbers[1] + numbers[2])', 'numbers = [int(input()) for i in range(3)]\n\nprint(sum(numbers) + max(numbers)*9)', 'numbers = list(map(int, input().split()))\n\nprint(sum(numbers) + max(numbers)*9)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s245161320', 's336747455', 's589892999', 's973226753', 's436854687'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [20.0, 17.0, 19.0, 17.0, 17.0] | [73, 124, 124, 80, 79] |
p03250 | u415325136 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['num = [int(i) for i in input().split()]\nnum = num.sorted(reverse=True)\nans = 10*num[0] + num[1] + num[2]\nprint(ans)', 'num = [int(i) for i in input().split()]\nnum.sort()\nprint(sum(num)+num[-1]*9)\n'] | ['Runtime Error', 'Accepted'] | ['s522019574', 's011145300'] | [3060.0, 2940.0] | [20.0, 17.0] | [115, 77] |
p03250 | u416223629 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ["NMXY = list(map(int,input().split()))\nN=NMXY[0]\nM=NMXY[1]\nX=NMXY[2]\nY=NMXY[3]\nx=list(map(int,input().split()))\ny=list(map(int,input().split()))\nflag1=[]\nflag2=[]\n\nZ=list(range(X+1,Y))\n\nfor k in Z:\n flag1.append(all([i<k for i in x]))\n flag2.append(all([j>=k for j in y]))\nprint(flag1)\nprint(flag2)\nif any(flag1) and any(flag2):\n print('No War')\nelse:\n print('War')\n", 'a = list(map(int,input().split()))\na.sort()\nprint(10*a[2]+a[0]+a[1])\n'] | ['Runtime Error', 'Accepted'] | ['s788351266', 's121977821'] | [3064.0, 2940.0] | [17.0, 17.0] | [377, 69] |
p03250 | u417014669 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c=map(int, input())\n\nA=10*a+b+c\nB=a+10*b+c\nprint(max(A,B))', 'a,b,c=map(int, input().split())\n\nA=10*a+b+c\nB=a+10*b+c\nC=a+b+10*c\nprint(max(A,B,C))'] | ['Runtime Error', 'Accepted'] | ['s997530291', 's697145697'] | [2940.0, 2940.0] | [17.0, 18.0] | [62, 83] |
p03250 | u418527037 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['A, B, C = map(int, input().split())\n\np = [A, B, C]\n\np.sort()\n\nprint(int(str(p[1]) + str(p[2])) + p[0])', 'A, B, C = map(int, input().split())\n\np = [A, B, C]\n\np.sort()\n\nprint(int(str(p[2]) + str(p[1])) + p[0])'] | ['Wrong Answer', 'Accepted'] | ['s126640616', 's255277749'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 102] |
p03250 | u419963262 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['S=list(input().split())\nAS=sorted(S)\nprint(int((S[2]+S[1])+int(S[0]))', 'S=list(map(int,input().split()))\nAS=sorted(S)\nprint(int(str(S[2])+str(S[1]))+int(S[0]))\n', 'S=list(map(int,input().split()))\nAS=sorted(S)\nprint(int(str(AS[2])+str(AS[1]))+int(AS[0]))\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s312541684', 's355713449', 's995695748'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [69, 88, 91] |
p03250 | u422267382 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['N=[int(input()) for i in range(3)]\nN.sort (reverse=True)\nans1=10*N[0]+N[1]\nans2=N[-1]\nprint(ans1+ans2)', 'a,b,c=map(int,input().split())\nN=[a,b,c]\nN.sort (reverse=True)\nprint(10*N[0]+N[1]+N[-1])'] | ['Runtime Error', 'Accepted'] | ['s928439053', 's499241336'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 88] |
p03250 | u424240341 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ["iptA=list(map(int,input().split()))\nX=list(map(int,input().split())).append(iptA[2])\nY=list(map(int,input().split())).append(iptA[3])\n\nxmax,ymax=max(X),max(Y)\nif xmax>=ymax:\n print('War')\n else:\n print('No War')", "iptA=list(map(int,input().split()))\nX=list(map(int,input().split()))\nY=list(map(int,input().split()))\nX.append(iptA[2])\nY.append(iptA[3])\n \nxmax,ymin=max(X),min(Y)\nif xmax>=ymax:\n print('War')\nelse:\n print('No War')", 'ipt=list(map(int,input().split()))\nimax=max(ipt)\nipt.remove(imax)\nprint(10*imax+sum(ipt))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s063207800', 's917625515', 's488583447'] | [2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [218, 225, 89] |
p03250 | u426108351 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a = list(map(int, input().split()))\na.sort(reversed = True)\nprint(a[0]*10+a[1]+a[2])\n', 'a = list(map(int, input().split()))\na.sort(reversed = True)\nprint(int(a[0])*10+a[1]+a[2])\n', 'a = list(map(int, input().split()))\na.sort(reverse = True)\nprint(int(a[0])*10+a[1]+a[2])\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s110026916', 's132653541', 's203272066'] | [2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0] | [85, 90, 89] |
p03250 | u432805419 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a = input().split()\na.sort\nprint(int(a[2]+a[1]) + int(a[0]))', 'a = input().split()\nb = sorted(a, key = int)\nprint(int(b[2]+ b[1]) + int(b[0]))'] | ['Wrong Answer', 'Accepted'] | ['s941066126', 's363793972'] | [2940.0, 2940.0] | [17.0, 17.0] | [60, 79] |
p03250 | u440129511 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['k=list(map(str,input().split()))\nprint(int(max(k)+max(k)[1])+int(min(k)))\n', 'k=list(map(str,input().split()))\nk.sort()\nl=k[0]+k[1]\nprint(int(l)+int(k[2]))', 'k=list(map(str,input().split()))\nk.sort()\nl=str(k[0]+k[1])\nprint(int(l)+int(k[2]))', 'k=list(map(str,input().split()))\nk.sort()\nprint(int(k[0]+k[1])+int(k[2]))\n', 'k=list(map(str,input().split()))\nk.sort()\nl=str(k[2])+str(k[1])\nprint(int(l)+int(k[0]))\n'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s200177193', 's203014499', 's602471829', 's735654267', 's384224678'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 17.0] | [74, 77, 82, 74, 88] |
p03250 | u440161695 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['A=list(input().split())\nA=sorted(A,reverse=True)\nprint(A)\nb=A[0]+A[1]\nprint(int(b)+int(A[2]))', 'A=list(input().split())\nA=sorted(A,reverse=True)\nprint(A)\nb=A[0]+A[1]\nprint(int(b)+int(A[2]))', 'A=list(input().split())\nA=sorted(A)\nb=A[0]+A[1]\nprint(int(b)+int(A[2]))', 'A=list(input().split())\nA=sorted(A,reverse=True)\nb=A[0]+A[1]\nprint(int(b)+int(A[2]))'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s021412427', 's195864098', 's772850209', 's243152093'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [93, 93, 71, 84] |
p03250 | u445511055 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['# -*- coding: utf-8 -*-\n\n\ndef main():\n """Function."""\n a, b, c = map(int, input().split())\n print(max([a+b, a+c, b+c]))\n\n\nif __name__ == "__main__":\n main()\n', '# -*- coding: utf-8 -*-\n\n\ndef main():\n """Function."""\n a = list(map(str, input().split()))\n a.sort(reverse=True)\n print(int(a[0]+a[2]) + int(a[1]))\n\n\nif __name__ == "__main__":\n main()\n'] | ['Wrong Answer', 'Accepted'] | ['s525739696', 's558131326'] | [2940.0, 2940.0] | [18.0, 19.0] | [170, 201] |
p03250 | u449555432 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | [' = list(input())\nb = [int(i) for i in a]\nc=sorted(b,reverse=True)\nd =10*c[0]+c[1]+c[2]\nprint(d)', 'a = list(input())\nb = [int(i) for i in a]\nc=sorted(b,reverse=True)\nd =10*c[0]+c[1]+c[2]\nprint(int(d))', 'a,b,c = sorted(input().split())\nprint(int(c+b)+int(a))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s268879412', 's442021183', 's457404691'] | [2940.0, 3056.0, 2940.0] | [18.0, 18.0, 18.0] | [95, 101, 54] |
p03250 | u449822557 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a, b, c = list(map(int, input().split()))\nif a >= b && a >= c:\n print(10*a + b + c)\nelif b >= a && b >= c:\n print(10*b + a + c)\nelse:\n print(10*c + a + b) ', 'a, b, c = list(map(int, input().split()))\nif a >= b and a >= c:\n print(10*a + b + c)\nelif b >= a and b >= c:\n print(10*b + a + c)\nelse:\n print(10*c + a + b) '] | ['Runtime Error', 'Accepted'] | ['s563614174', 's891559908'] | [2940.0, 3060.0] | [17.0, 17.0] | [166, 168] |
p03250 | u453500284 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['A, B, C = sorted(map(input().split()))\nprint(10*C+A+B)', 'A, B, C = sorted(map(int, input().split()))\nprint(10*C+A+B)\n'] | ['Runtime Error', 'Accepted'] | ['s719830578', 's970566641'] | [2940.0, 2940.0] | [17.0, 17.0] | [54, 60] |
p03250 | u454481887 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a, b, c = map(int, input().split())\nprint(max([10*a + b, 10*b + c]))', 'a, b, c = map(int, input().split())\nprint(max([10*a + b + c, 10*b + c + a, 10*c + a + b]))'] | ['Wrong Answer', 'Accepted'] | ['s257971062', 's226788538'] | [2940.0, 2940.0] | [17.0, 17.0] | [68, 90] |
p03250 | u455177911 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ["x = sorted(int(a) for a in input().split(' '))\nprint(x[0] * 10 + x[1] + x[2])", "x = [int(a) for a in input().split(' ')]\nx = sorted(x)\nprint(x[0] + x[1] + x[2] * 10)"] | ['Wrong Answer', 'Accepted'] | ['s540956142', 's657806603'] | [3064.0, 2940.0] | [17.0, 18.0] | [77, 85] |
p03250 | u455317716 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['n = [int(x) for x in input().split()].sort()\nprint(10*n[2]+n[1]+n[0])', 'n = [int(x) for x in input().split()]\nn.sort()\nprint(10*n[2]+n[1]+n[0])'] | ['Runtime Error', 'Accepted'] | ['s287640289', 's429155680'] | [2940.0, 2940.0] | [17.0, 17.0] | [69, 71] |
p03250 | u457901067 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['A, B, C = map(int, input().split())\nS = sum(A,B,C)\nprint(max(S+9*A, S+9*B, S+9*C))', 'A, B, C = map(int, input().split())\nS = A+B+C\nprint(max(S+9*A, S+9*B, S+9*C))\n'] | ['Runtime Error', 'Accepted'] | ['s965975915', 's779511020'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 78] |
p03250 | u463655976 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['S = sorted(input(), reverse=False)\nprint(int(S[0:2])+int(S[2]))\n', 'S = "".join(sorted(input().split(), reverse=True))\nprint(int(S[0:2])+int(S[2]))\n'] | ['Runtime Error', 'Accepted'] | ['s266343698', 's552958626'] | [2940.0, 3064.0] | [17.0, 17.0] | [64, 80] |
p03250 | u464912173 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a, b, c = map(int, input()split())\n\ns = sorted.[a, b, c]\n\nprint(s)', 'a, b, c = sorted(map(int, input().split()))\n\nprint(a + b + 10*c)'] | ['Runtime Error', 'Accepted'] | ['s936248093', 's417524856'] | [2940.0, 2940.0] | [17.0, 17.0] | [66, 64] |
p03250 | u466331465 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['S = list(input().split())\nS.sort(reverse=True)\na = int("".join(S[:1]))\nb = int(S[2])\nprint(a+b)\n', 'S = list(input().split())\nS.sort(reverse=True)\na = int("".join(S[:2]))\nb = int(S[2])\nprint(a+b)'] | ['Wrong Answer', 'Accepted'] | ['s909801932', 's774897162'] | [2940.0, 2940.0] | [17.0, 17.0] | [96, 95] |
p03250 | u468972478 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['nums = sorted(list(map(int, input().split())))\nprint(int(str(nums[0]) + str(nums[1])) + nums[2])', 'a, b, c = map(int, input().split())\nprint(max(a, b, c) * 9 + a + b + c)'] | ['Wrong Answer', 'Accepted'] | ['s700870176', 's311626304'] | [9140.0, 9088.0] | [26.0, 24.0] | [96, 71] |
p03250 | u469953228 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['li = map(int(input().split()))\nli.sort()\nprint(li[0]*10+li[1]+li[2])', 'import collections\ns=input()\nt=input()\ns = collections.Count(s)\nt = collections.Count(t)\nif sorted(s.values()) == sorted(t.values()):\n print("Yes")\nelse:\n print("No")', 'li=list(map(int,input().split()))\nli.sort()\nprint(li[0]+li[1]+li[2]*10)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s387519627', 's705624071', 's522315684'] | [2940.0, 3316.0, 2940.0] | [17.0, 21.0, 17.0] | [68, 168, 71] |
p03250 | u475675023 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['L=input().split()\nL.sort()\nX=10*L[2]+L[1]+L[0]\nprint(X)', 'L=list(map(int,input().split()))\nL.sort()\nX=10*L[2]+L[1]+L[0]\nprint(X)'] | ['Wrong Answer', 'Accepted'] | ['s973117151', 's563333872'] | [2940.0, 2940.0] | [17.0, 17.0] | [55, 70] |
p03250 | u477343425 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c = sorted(map(int, input().split()))\nx = a * 10 + b\nans = x + c\nprint(ans)', 'a, b, c = sorted(map(int, input().split()))\nprint(10*c + b + a)\n\n'] | ['Wrong Answer', 'Accepted'] | ['s492156211', 's015105741'] | [2940.0, 2940.0] | [17.0, 17.0] | [79, 65] |
p03250 | u477977638 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c=sorted(map(int,input().split()))\nprint(10*a+b+c)', 'a,b,c=sorted(map(int,input().split()))\nprint(10*c+b+a)'] | ['Wrong Answer', 'Accepted'] | ['s333759853', 's292715186'] | [2940.0, 2940.0] | [17.0, 17.0] | [54, 54] |
p03250 | u478296955 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a = list(input().split()).sort()\nprint(a[0]*10+a[1]+a[2])', 'a = sorted(map(int), list(input().split()))\nprint(10*a[0]+a[1]+a[2])\n', 'a = sorted(list(map(int, input().split())))\nprint(10*a[0]+a[1]+a[2])\n', 'a = list(input().split()).sort()\nprint(int(a[0])*10+int(a[1])+int(a[2]))', 'a = sorted(map(int),input().split())\nprint(10*a[0]+a[1]+a[2])\n', 'a = sorted(list(map(int, input().split())))\nprint(10*a[2]+a[1]+a[0])\n'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s116930509', 's168487297', 's450772693', 's662748166', 's976420604', 's190787759'] | [2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 18.0, 17.0] | [57, 69, 69, 72, 62, 69] |
p03250 | u480038302 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c = sorted(map(int,input().split()))\nprint(a*10+b+c)', 'ls = list(map(int,input().split()))\nls = sorted(ls)\nprint(ls[2]*10+ls[1]+ls[0])'] | ['Wrong Answer', 'Accepted'] | ['s038814614', 's205620637'] | [2940.0, 2940.0] | [17.0, 17.0] | [56, 79] |
p03250 | u480200603 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['s, t = [input() for _ in range(2)]\n\nfor i in range(len(s)):\n if s[i] == t[i]:\n pass\n else:\n s_diff = s[i]\n t_diff = t[i]\n s = s.translate(str.maketrans({s_diff: "", t_diff: ""}))\n t = t.translate(str.maketrans({s_diff: "", t_diff: ""}))\nif s == t:\n print("Yes")\nelse:\n print("No")\n', 'num = list(map(int, input().split()))\nnum.sort()\nnum.reverse()\nm_ = int(str(num[0]) + str(num[1]))\n_m = num[2]\nsum_ = m_ + _m\nprint(sum_)\n'] | ['Runtime Error', 'Accepted'] | ['s662633596', 's125348101'] | [3060.0, 2940.0] | [17.0, 17.0] | [328, 138] |
p03250 | u487288850 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c = map(int,input().split())\nl=sorted([a,b,c])\nint(str(l[2])+str(l[1]))+l[0]', 'a,b,c = map(int,input().split())\nl=sorted([a,b,c])\nprint(int(str(l[2])+str(l[1]))+l[0])'] | ['Wrong Answer', 'Accepted'] | ['s651733884', 's298814915'] | [9112.0, 9136.0] | [29.0, 29.0] | [80, 87] |
p03250 | u492030100 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ["N,M,X,Y=map(int,input().split())\nx_list =list(map(int,input().split()))\ny_list=list(map(int,input().split()))\n\nfor i in range(1,100):\n\n if(max(x_list)<i and i<=min(y_list)):\n print('No War')\n exit(0)\nprint('War')\nexit(0)", 'lists=input().split()\n\nfor i in range(len(lists)):\n lists[i]=int(lists[i])\n\nlists=sorted(lists,reverse=True)\nprint(lists[0]*10+lists[1]+lists[2])'] | ['Runtime Error', 'Accepted'] | ['s691883630', 's059080748'] | [3060.0, 3060.0] | [17.0, 17.0] | [238, 148] |
p03250 | u492447501 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['*A,_= map(int, input().split())\n\nA.sort(reverse=True)\n\nprint(A[0]*10+A[1]+A[2])', 'a,b,c = sorted(map(int, input().split()))\n\nprint(a*10+b+c)', '*A,= map(int, input().split())\n\nA.sort(reverse=True)\n\nprint(A[0]*10+A[1]+A[2])\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s373796392', 's990923910', 's240875856'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [79, 58, 79] |
p03250 | u497046426 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ["*S = sorted(input().split(), reverse=True)\nprint(eval(S[0]+S[1]+ '+' + S[2]))", "S = sorted(input().split(), reverse=True)\nprint(eval(S[0]+S[1]+ '+' + S[2]))"] | ['Runtime Error', 'Accepted'] | ['s577052016', 's748149488'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 76] |
p03250 | u497883442 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['abc = list(map(int, input().split()))\nabc = sort(abc)\nabc = abc[:,:,-1]\nprint(abc[0]*10+abc[1]+abc[2])', 'abc = list(map(int, input().split()))\nabc = sorted(abc)\nprint(abc[2]*10+abc[1]+abc[0])\n'] | ['Runtime Error', 'Accepted'] | ['s526060857', 's185517298'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 87] |
p03250 | u506587641 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a, b, c = map(int, input().split())\nx = [sorted(a, b, c)]\n\nprint(x[3]*10 + x[1] + x[2])', 'a, b, c = map(int, input().split())\nx = [sorted(a, b, c)]\n\nprint(x[2]*10 + x[0] + x[1])', 'a, b, c = map(int, input().split())\nx = sorted([a, b, c])\n\nprint(x[2]*10 + x[0] + x[1])'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s388971194', 's567004658', 's461414030'] | [3316.0, 2940.0, 2940.0] | [21.0, 17.0, 17.0] | [87, 87, 87] |
p03250 | u506858457 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['A,B,C=sorted(map(int,input().split()))\nprint(10*A+B+C)\n', 'A,B,C=map(int,input().split())\nTTL=A+B+C\nl=[A,B,C]\nl.sort\nans=TTL+l[0]*9\nprint(ans)', 'A,B,C=(map(int,input().split())).sort()\nprint(10*C+B+A)', 'A,B,C=map(int,input().split())\nTTL=A+B+C\nl=[A,B,C]\nl.sort\nans=TTL+l[2]*9\nprint(ans)', "print(eval('+'.join(sorted(input()))+'*10'))"] | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s065439407', 's069008613', 's194089507', 's279586776', 's400130097'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 17.0] | [55, 83, 55, 83, 44] |
p03250 | u507116804 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a,b,c=map(int,input().split())\n\nk=max(a,b,c)\n\nprint(int(10k+a+b+c-k))', 'a,b,c=map(int,input().split())\n\nk=max(a,b,c)\n\nprint(int(9k+a+b+c))', 'a,b,c=map(int,input().split())\n\nm=max(a,b,c)\n\nprint(int(9*m+a+b+c))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s335254739', 's977758930', 's952791276'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [69, 66, 67] |
p03250 | u512803662 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['n,m,x,y=map(int,input().split())\na=list(map(int,input().split()))\nb=list(map(int,input().split()))\na.sort(reverse=True)\nb.sort()\n# xx=a[0]\nf=0\n# if xx<x:\n# xx=x \nfor i in range(x+1,y+1):\n if i<=b[0] and i>a[0]:\n #print(i)\n f=1 \n break \nif f==1:\n print("No War")\nelse:\n print("War")', 'l=list(map(int,input().split()))\nl=sorted(l)\nl=l[::-1]\ns=str(l[0])\ns+=str(l[1])\nxx=int(s)\nprint(xx+l[-1])\n'] | ['Runtime Error', 'Accepted'] | ['s503630431', 's526475746'] | [3188.0, 2940.0] | [19.0, 17.0] | [315, 106] |
p03250 | u514118270 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['A,B,C = I()\nif max(A,B,C) == A:\n print(A*10+B+C)\nif max(A,B,C) == B:\n print(B*10+A+C)\nelse:\n print(C*10+A+B)', 'import sys\nimport math\nimport itertools\nimport bisect\nfrom copy import copy\nfrom collections import deque,Counter\nfrom decimal import Decimal\ndef s(): return input()\ndef i(): return int(input())\ndef S(): return input().split()\ndef I(): return map(int,input().split())\ndef L(): return list(input().split())\ndef l(): return list(map(int,input().split()))\ndef lcm(a,b): return a*b//math.gcd(a,b)\nsys.setrecursionlimit(10 ** 9)\nmod = 10**9+7\n\nA,B,C = I()\nif max(A,B,C) == A:\n print(A*10+B+C)\nelif max(A,B,C) == B:\n print(B*10+A+C)\nelse:\n print(C*10+A+B)'] | ['Runtime Error', 'Accepted'] | ['s783904772', 's751080468'] | [9104.0, 10096.0] | [25.0, 36.0] | [117, 558] |
p03250 | u517447467 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['import numpy as np\n \ninp = np.asarray(input().split(), dtype=int)\ninp = np.sort(inp)\nprint(inp[2]*10+np.sum(inp[:1]))', 'import numpy as np\n\ninp = np.asarray(input().split(), dtype=int)\ninp = np.sort(inp)\nprint(inp[0]*10+np.sum(inp[1:])', 'import numpy as np\n \ninp = np.asarray(input().split(), dtype=int)\ninp = np.sort(inp)\nprint(inp[2]*10+np.sum(inp[:1])', 'import numpy as np\n\ninp = list(map(input().split(), int))\ninp = np.sort(inp)\nprint(inp[0]*10+np.sum(inp[1:])', 'import numpy as np\n\ninp = list(map(input(), int))\ninp = np.sort(inp)\nprint(inp[0]*10+np.sum(inp[1:])', 'import numpy as np\n \ninp = np.asarray(input().split(), dtype=int)\ninp = np.sort(inp)\nprint(np.sum(inp)+inp[2]*9)'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s090465560', 's204067704', 's437450307', 's903127740', 's977871509', 's391708331'] | [17976.0, 2940.0, 2940.0, 2940.0, 2940.0, 12388.0] | [248.0, 17.0, 17.0, 17.0, 17.0, 148.0] | [117, 115, 116, 108, 100, 112] |
p03250 | u518556834 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a, = list(map(int,input().split()))\na.sort(reverse=True)\nprint(10*a[0] + a[1] +a[2])\n', 'a = list(map(int,input().split()))\na.sort(reverse=True)\nprint(a[0]*10 + a[1] + a[2])'] | ['Runtime Error', 'Accepted'] | ['s227217761', 's261446433'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 84] |
p03250 | u519939795 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['Not found', 'a,b,c=sorted(map(int,input().split()))\nprint(10*c+b+a)'] | ['Runtime Error', 'Accepted'] | ['s592918732', 's076066821'] | [2940.0, 2940.0] | [17.0, 17.0] | [9, 54] |
p03250 | u522937309 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['c=list(map(int, input().split())) \n\nfrom itertools import permutations, combinations,combinations_with_replacement,product\na=[2,4,7]\nc = list(permutations(a))\n#print(c)\n\ni = c[0]\nfirst = int(str(i[0])+str(i[1]))\n#print(first)\nx = first+i[2]\n#print(x)\n\nmaxnum = 0\nfor i in c:\n first = int(str(i[0])+str(i[1]))\n after = i[2]\n x = first + after\n\n if x > maxnum:\n maxnum = x\n\nprint(maxnum)\n', 'a=list(map(int, input().split())) \n\nfrom itertools import permutations, combinations,combinations_with_replacement,product\n#a=[2,4,7]\nc = list(permutations(a))\n\ni = c[0]\nfirst = int(str(i[0])+str(i[1]))\n#print(first)\nx = first+i[2]\n#print(x)\n\nmaxnum = 0\nfor i in c:\n first = int(str(i[0])+str(i[1]))\n after = i[2]\n x = first + after\n\n if x > maxnum:\n maxnum = x\n\nprint(maxnum)'] | ['Wrong Answer', 'Accepted'] | ['s777206408', 's713420901'] | [3064.0, 3064.0] | [18.0, 18.0] | [422, 412] |
p03250 | u523781418 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['a, b, c=map(int, input().split())\nnum_list=[a,b,c]\nnum_list.sort()\nprint(num_list[0]*10+num_list[1]+num_list[2])', 'a, b, c=map(int, input().split())\nnum_list=[a,b,c]\nnum_list.sort(reverse=True)\nprint(num_list[0]*10+num_list[1]+num_list[2])'] | ['Wrong Answer', 'Accepted'] | ['s527355036', 's444914702'] | [2940.0, 2940.0] | [17.0, 17.0] | [112, 124] |
p03250 | u535827181 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ["S = [int(i) for i in input().split()]\nN = S[0]\nM = S[1]\nX = S[2]\nY = S[3]\nC = [int(i) for i in range(N)]\nD = [int(i) for i in range(M)]\n\nx = max(C)\ny = min(D)\n\nif x < y:\n A = 1\nelif x >= y:\n A = 0\n\nif X > x:\n if Y >= y > X:\n B = 1\nif Y < y:\n if X < x < Y:\n B = 1\nif X < (x + y) / 2 <= Y:\n B = 1\n\nif A == 1 and B == 1:\n print('No War')\nelse:\n print('War')", "S = [int(i) for i in input().split()]\nN = S[0]\nM = S[1]\nX = S[2]\nY = S[3]\nC = [int(i) for i in range(N)]\nD = [int(i) for i in range(M)]\n \nx = max(C)\ny = min(D)\n \nif x < y:\n A = 1\nelif x >= y:\n A = 0\n\nif A == 1:\n if X > x:\n if Y >= y:\n B = 1\n if Y < y:\n if X < x:\n B = 1\n if x < X and y > Y:\n B = 1\n \nif A == 1 and B == 1:\n print('No War')\nelse:\n print('War')", "S = [int(i) for i in input().split()]\nN = S[0]\nM = S[1]\nX = S[2]\nY = S[3]\nC = [int(i) for i in range(N)]\nD = [int(i) for i in range(M)]\n\nx = max(C)\ny = min(D)\n\nif x < y:\n A = 1\nelif x >= y:\n A = 0\n\nif X > x:\n if Y >= y > X:\n B = 1\nif Y < y:\n if X < x < Y:\n B = 1\nif X < (x + y) / 2 <= Y:\n B = 1\nif x < X and y > Y:\n B = 1\n\nif A == 1 and B == 1:\n print('No War')\nelse:\n print('War')", 'A = [int(i) for i in input().split()]\n\nA.sort()\nM = 10 * int(A[-1]) + int(A[0]) + int(A[1])\nprint(M)\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s473849782', 's546985885', 's615246680', 's123134813'] | [3064.0, 3316.0, 3064.0, 2940.0] | [17.0, 21.0, 17.0, 17.0] | [377, 422, 419, 101] |
p03250 | u537900943 | 2,000 | 1,048,576 | You have decided to give an allowance to your child depending on the outcome of the game that he will play now. The game is played as follows: * There are three "integer panels", each with a digit between 1 and 9 (inclusive) printed on it, and one "operator panel" with a `+` printed on it. * The player should construct a formula of the form X + Y, by arranging the four panels from left to right. (The operator panel should not be placed at either end of the formula.) * Then, the amount of the allowance will be equal to the resulting value of the formula. Given the values A, B and C printed on the integer panels used in the game, find the maximum possible amount of the allowance. | ['arr = [int(i) for i in input().split()]\n\narr.sort()\n\n[a, b, c] = arr\nprint(c * 10 + b + c)\n', 'arr = [int(i) for i in input().split()]\n\narr.sort()\n\n[a, b, c] = arr\nprint(c * 10 + b + a)\n'] | ['Wrong Answer', 'Accepted'] | ['s825234503', 's915764081'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 91] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.