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 |
|---|---|---|---|---|---|---|---|---|---|---|
p03128 | u821588465 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ["N, M = map(int, input().split())\nA = list(map(int, input().split()))\nweight = [0,2,5,5,4,5,6,3,7,6]\ninf = float('inf')\ndp = [-inf] * (N+1)\ndp[0] = 0\nfor i in range(N+1):\n for a in A:\n if i + weight[a] < N+1:\n dp[i + weight[a]] = max(dp[i + weight[a]], dp[i]*10 + a)\nprint(dp)\n", 'N, M =... | ['Wrong Answer', 'Accepted'] | ['s023130059', 's747366749'] | [88816.0, 20592.0] | [1254.0, 140.0] | [297, 282] |
p03128 | u832039789 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['import sys\nfrom fractions import gcd\nfrom itertools import groupby as gb\nfrom itertools import permutations as perm\nfrom collections import Counter as C\nfrom collections import defaultdict as dd\nsys.setrecursionlimit(10**5)\n\nn,m = map(int,input().split())\n\nb = list(map(int,input().split()))\nhonsuu = [-1,2,... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s021338693', 's062435088', 's142127009', 's486632579', 's630152142', 's941426708', 's498294594'] | [5172.0, 5172.0, 5208.0, 5172.0, 5340.0, 5172.0, 3572.0] | [37.0, 38.0, 37.0, 37.0, 40.0, 38.0, 19.0] | [5956, 5944, 6062, 5944, 5587, 5626, 5438] |
p03128 | u848504701 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['import math\n\nN,M=map(int,input().split())\nA=list(map(int,input().split()))\nA.sort(reverse=True)\nnum=[0,2,5,5,4,5,6,3,7,6]\ndp=[0]\nketa=[0]\ntmp=0\ntmp1=0\ntmp_keta=-1\ntmp1_keta=-1\nfor i in range(1,N+1):\n tmp=0\n for j in A:\n tmp1=-100000000000000000000\n if(i-num[j]>=0):\n if(... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s069023913', 's122732102', 's287261827', 's982051814', 's962794254'] | [14664.0, 2940.0, 11044.0, 14176.0, 15088.0] | [2104.0, 17.0, 2104.0, 2104.0, 1031.0] | [639, 694, 468, 498, 1033] |
p03128 | u853952087 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ["a,b=list(map(int,input().split()))\nX={1:2,2:5,3:5,4:4,5:5,6:6,7:3,8:7,9:6}\nA=list(map(int,input().split()))\nB=[v for k,v in X.items() if k in A]\nprint(B)\nDP=[0]+[[] for i in range(10**4+1)]\nL=[[] for i in range(10**4+1)]\nfor i in range(10):\n if i in B:\n DP[i]=1\n L[i].append(i)\n#print(DP)\n... | ['Wrong Answer', 'Accepted'] | ['s538421327', 's559429866'] | [248692.0, 248692.0] | [714.0, 722.0] | [885, 886] |
p03128 | u859897687 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['nn=[[1,2],[7,3],[4,4],[5,5],[3,5],[2,5],[9,6],[6,6],[8,7]]\nn,m=map(int,input().split())\na=input().split()\nfor i in range(m):\n a[i]=int(a[i])\nb=[]\nfor i in range(9):\n if nn[i][0] in a:\n b.append(nn[i])\n \nc=[b[0]]\ndel b[0]\nfor i in range(len(b)):\n t=0\n for j in range(len(c)):\n if b[i][1] == c[... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s134354726', 's366902249', 's186343374'] | [3064.0, 3416.0, 3432.0] | [17.0, 75.0, 76.0] | [646, 663, 688] |
p03128 | u864013199 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['N,M = map(int,input().split())\nA = list(map(int,input().split()))\nA.sort()\nINF = float("inf")\nnum = [INF,2,5,5,4,5,6,3,7,6]\nif N==2, and M==9:\n print(1)\n exit()\n\ndp = [0]+[-INF]*N\n\nfor i in range(1,N+1):\n ins = -INF\n for a in A:\n try:\n tmp = dp[i-num[a]]+1\n ins... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s535264719', 's653833227', 's042417267'] | [3064.0, 2940.0, 3688.0] | [17.0, 17.0, 79.0] | [740, 735, 739] |
p03128 | u864197622 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['def intlog10(n):\n if n <= 0:\n return -1\n i = 0\n while 10**i <= n:\n i += 1\n return i-1\n\nN, M = map(int, input().split())\nA = [int(a) for a in input().split()]\nif True:\n N = 10000\n M = 9\n A = [1, 2, 3, 4, 5, 6, 7, 8, 9]\n \nL = [2, 5, 5, 4, 5, 6, 3, 7, 6]\nB = [[A[i], ... | ['Wrong Answer', 'Accepted'] | ['s479391897', 's856525665'] | [3192.0, 14516.0] | [157.0, 146.0] | [1377, 293] |
p03128 | u892251744 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['N,M=map(int, input().split())\nA=list(map(int, input().split()))\ninf = float(\'inf\')\n\nnumber = [6,2,5,5,4,5,6,3,7,6]\n\n\ndp = [-1*inf]*(N+1)\ndp[0] = 0\nfor i in range(1,N+1):\n dp_new = 0\n for j in A:\n if i - number[j] >= 0:\n if dp[i-number[j]] +1 > dp_new:\n dp[i] = dp[i-number[j]] +1\n\nA.... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s505750604', 's579991701', 's014687350'] | [3364.0, 3540.0, 3348.0] | [62.0, 25.0, 67.0] | [461, 1473, 519] |
p03128 | u894258749 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ["import numpy as np\n\ncosts=np.array([6,2,5,5,4,5,6,3,7,6],dtype=np.int)\n\n(N,M) = map(int,input().split())\nA = np.array(list(map(int,input().split())))\n\ncost_table = np.vstack((costs[A],A)).transpose()\ntb1=np.array(sorted(list(cost_table),key=lambda x:(x[0],-x[1])))\ntb2=np.array(sorted(list(cost_table),key=lam... | ['Wrong Answer', 'Accepted'] | ['s047665456', 's037393835'] | [18152.0, 23352.0] | [2109.0, 281.0] | [859, 304] |
p03128 | u905582793 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['n,m=map(int,input().split())\na=list(map(int,input().split()))\nb=[0,2,5,5,4,5,6,3,7,6]\nwv=[]\nfor i in a:\n wv.append((b[i],i))\nwv.sort()\ndp=[-1 for i in range(n+1)]\ndp[0]=0\nfor i in range(1,n+1):\n for w,v in wv:\n if dp[i-w]==-1:\n continue\n dp[i]=max(dp[i],dp[i-w]*10+v)', 'n,m=map(int,input().s... | ['Runtime Error', 'Accepted'] | ['s186477749', 's963705121'] | [14388.0, 14516.0] | [145.0, 160.0] | [280, 322] |
p03128 | u916908463 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['import time\nn, m = map(int, input().split())\nnumbers = list(map(int, input().split()))\ncosts = [0,2,5,5,4,5,6,3,7,6]\nf = [-1]*10010\nf[0] = 0\nfor i in range(1, n+1):\n for x in numbers:\n if i-costs[x] >= 0:\n f[i] = max(f[i], f[i-costs[x]]*10+x)\nprint(f)', 'import time\nn, m = map(int, inp... | ['Wrong Answer', 'Accepted'] | ['s073987973', 's489049547'] | [87904.0, 14448.0] | [1510.0, 148.0] | [272, 275] |
p03128 | u919127329 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['#python3.4\nimport math\ndef inpul(): return list(map(int, input().split()))\n\nN, M = inpul()\nA = inpul()\n\nc = [0,2,5,5,4,5,6,3,7,6]\nf = [-1]*10010\n\nf[0] = 0\nfor i in range(1, N+1):\n\tfor x in a:\n\t\tif i-c[x] >= 0:\n\t\t\tf[i] = max(f[i], f[i-c[x]]*10+x)\nprint(f[n])', '#python3.4\nimport math\ndef inpul()... | ['Runtime Error', 'Accepted'] | ['s335270069', 's019664710'] | [3064.0, 14444.0] | [18.0, 156.0] | [257, 258] |
p03128 | u919730120 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['def main():\n n,m=map(int,input().split())\n a=list(map(int,input().split()))\n a.sort(reverse=True)\n cost=[0,2,5,5,4,5,6,3,7,6]\n dp=[-2*n]*(n+10)\n dp[0]=0\n ans=[]\n for i in range(1,n+1):\n for j in cost:\n if i>=j:\n dp[i]=max(dp[i],dp[i-j]+1)\n cnt=n\... | ['Wrong Answer', 'Time Limit Exceeded', 'Time Limit Exceeded', 'Wrong Answer', 'Time Limit Exceeded', 'Accepted'] | ['s052335625', 's197063346', 's828208552', 's838635988', 's960270088', 's952285962'] | [4848.0, 4208.0, 3696.0, 4848.0, 3756.0, 4108.0] | [2104.0, 2104.0, 2108.0, 2104.0, 2104.0, 58.0] | [575, 436, 547, 440, 578, 585] |
p03128 | u924770834 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['\n\n\ndef solve():\n\t\n\tnum = [0, 2, 5, 5, 4, 5, 6, 3, 7, 6]\n\tN, M = map(int, input().split())\n\tA = [int(i) for i in input().split()]\n\tA.sort(reverse=True)\n\t\n\t\n\tdp = [-1 * float("inf")] * (N + 1)\n\n\t\n\tdp[0] = 0\n\tfor n in range(1, N + 1):\n\t\tfor a in A:\n\t\t\tif n - num[a] >= 0:\n\t\t\t\t\n\t\t\... | ['Wrong Answer', 'Accepted'] | ['s900746583', 's106659015'] | [3564.0, 3312.0] | [62.0, 62.0] | [1826, 1765] |
p03128 | u938486382 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ["l = list(map(int, input().split(' ')))\nd = {} # key=match, val=num\nd[2] = [1]\nd[3] = [7]\nd[4] = [4]\nd[5] = [5, 3, 2]\nd[6] = [9, 6]\nd[7] = [8]\nenable = [False] * 10\nfor a in l:\n enable[a] = True\nmemo = {}\n\ndef f(nokori, current):\n k = (nokori, current)\n if k in memo:\n return memo[k]\n if nokori... | ['Runtime Error', 'Accepted'] | ['s957821314', 's476249797'] | [3064.0, 3444.0] | [17.0, 198.0] | [1116, 1236] |
p03128 | u945181840 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ["N, M = map(int, input().split())\nA = list(map(int, input().split()))\nA.sort(reverse=True)\n\ntable = {1: 2, 2: 5, 3: 5, 4: 4, 5: 5, 6: 6, 7: 3, 8: 7, 9: 6}\na = [table[i] for i in A]\n\n\nINF = float('inf')\ndp = [-INF] * (N + 1)\ndp[0] = 0\ncost = set(a)\n\nfor i in range(1, N + 1):\n for j in cost:\n if... | ['Wrong Answer', 'Accepted'] | ['s505961483', 's443998770'] | [3384.0, 3676.0] | [37.0, 43.0] | [639, 642] |
p03128 | u945228737 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['\n\n\ndef solve():\n \n num = [0, 2, 5, 5, 4, 5, 6, 3, 7, 6]\n N, M = map(int, input().split())\n A = [int(i) for i in input().split()]\n A.sort(reverse=True)\n \n \n dp = [-1 * float("inf")] * (N + 1)\n\n \n for n in range(1, N + 1):\n for a in A:\n if n - num[a] >= 0:... | ['Runtime Error', 'Accepted'] | ['s934603439', 's145907252'] | [3188.0, 3312.0] | [57.0, 62.0] | [2062, 2076] |
p03128 | u955251526 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ["def inv(x, ava):\n if x == 2:\n if 1 in ava:\n return 1\n else:\n return -1\n if x == 3:\n if 7 in ava:\n return 7\n else:\n return -1\n if x == 4:\n if 4 in ava:\n return 4\n else:\n return -1\n if... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s263968631', 's842193201', 's145041593'] | [3064.0, 4340.0, 4340.0] | [17.0, 2104.0, 67.0] | [1397, 1396, 1409] |
p03128 | u962197874 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['n_dic = {1:2,2:5,3:5,4:4,5:5,6:6,7:3,8:7,9:6}\nn,m = map(int,input().split())\nl = list(map(int,input().split()))\ndic = {}\nfor i in l:\n if n_dic[i] not in dic or dic[n_dic[i]] < i:\n dic[n_dic[i]] = i\nif n % min(dic) == 0:\n ans = str(dic[min(dic)]) * int(n / min(dic))\nelse:\n ans = str(dic[min(d... | ['Wrong Answer', 'Accepted'] | ['s866562378', 's176040431'] | [3192.0, 14692.0] | [30.0, 148.0] | [726, 255] |
p03128 | u979823197 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['N,M=map(int,input().split())\nnum={1:2,2:5,3:5,4:4,5:5,6:6,7:3,8:7,9:6}\nA=list(map(int,input().split()))\nA.sort(reverse = True)\ndp = [0]+[-1]*(N+1)\nfor i in range(N):\n for j in A:\n if i+num[j]<=N:\n dp[i+num[j]] = max(dp[i+num[j]],dp[i]+1)\nans = []\nm=N\nwhile m>0:\n for i in A:\n ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s193971304', 's204532900', 's950815961'] | [3064.0, 3696.0, 3696.0] | [17.0, 93.0, 96.0] | [438, 467, 438] |
p03128 | u989345508 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['n,m=map(int,input().split())\nx=[2,5,5,4,5,6,3,7,6]\na=[]\nfor i in map(int,input().split()):\n a.append([i,x[i-1]])\nmi=a[0]\nfor i in range(1,m):\n if mi[1]>a[i][1] or (mi[1]==a[i][1] and a[i][0]>mi[0]):\n mi=a[i]\na=[a[i] for i in range(m) if a[i][0]>=mi[0]]\nm=len(a)\nb=sorted(a,key=lambda x:x[1])\nc... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s193610790', 's293442677', 's366917288'] | [3188.0, 3188.0, 16492.0] | [17.0, 22.0, 143.0] | [684, 732, 330] |
p03128 | u997521090 | 2,000 | 1,048,576 | Find the largest integer that can be formed with exactly N matchsticks, under the following conditions: * Every digit in the integer must be one of the digits A_1, A_2, ..., A_M (1 \leq A_i \leq 9). * The number of matchsticks used to form digits 1, 2, 3, 4, 5, 6, 7, 8, 9 should be 2, 5, 5, 4, 5, 6, 3, 7, 6, respe... | ['n,m,*a=map(int,open(0).read().split())\nd=[0]*n+[-1]*9\nfor i in range(n+1):d[i]=max(d[i-int("0255456376"[j])]*10+j for j in a)\nprint(d[n])', 'n,m,*a=map(int,open(0).read().split());d=[0]*n+[-1]*9\nfor i in range(n):d[i+1]=max(d[i-int("0144345265"[j])]*10+j for j in a)\nprint(d[n])'] | ['Wrong Answer', 'Accepted'] | ['s289993203', 's020972911'] | [6580.0, 14388.0] | [55.0, 132.0] | [137, 137] |
p03135 | u201968280 | 2,000 | 1,048,576 | In order to pass the entrance examination tomorrow, Taro has to study for T more hours. Fortunately, he can _leap_ to World B where time passes X times as fast as it does in our world (World A). While (X \times t) hours pass in World B, t hours pass in World A. How many hours will pass in World A while Taro studies ... | ['a,b = int(input())\nprint("%.10f"%(a/b))', 'a,b = map(int,input().split())\nprint("%.10f"%(a/b))'] | ['Runtime Error', 'Accepted'] | ['s788983400', 's729670441'] | [2940.0, 3316.0] | [17.0, 22.0] | [39, 51] |
p03135 | u407535999 | 2,000 | 1,048,576 | In order to pass the entrance examination tomorrow, Taro has to study for T more hours. Fortunately, he can _leap_ to World B where time passes X times as fast as it does in our world (World A). While (X \times t) hours pass in World B, t hours pass in World A. How many hours will pass in World A while Taro studies ... | ['all=input().split()\nT=all[0]\nX=all[1]\nround(T/X,10)', 'all=input().split()\nT=int(all[0])\nX=int(all[1])\nround(T/X,10)', 'all=input().split();T=int(all[0]);X=int(all[1]);print(str(round(T/X,10)))'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s784613767', 's793994882', 's057253217'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [51, 61, 73] |
p03135 | u416758623 | 2,000 | 1,048,576 | In order to pass the entrance examination tomorrow, Taro has to study for T more hours. Fortunately, he can _leap_ to World B where time passes X times as fast as it does in our world (World A). While (X \times t) hours pass in World B, t hours pass in World A. How many hours will pass in World A while Taro studies ... | ['a,b = (int(x) for x in input.split())\n \nprint(round((a/b),10))', 'a,b = [int(x) for x in input.split()]\n\nprint(round((a/b),10))', 'a,b = [int(x) for x in input().split()]\n \nprint(round((a/b),10))'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s182318617', 's922829628', 's866213965'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 20.0] | [62, 61, 64] |
p03135 | u567847331 | 2,000 | 1,048,576 | In order to pass the entrance examination tomorrow, Taro has to study for T more hours. Fortunately, he can _leap_ to World B where time passes X times as fast as it does in our world (World A). While (X \times t) hours pass in World B, t hours pass in World A. How many hours will pass in World A while Taro studies ... | ['N, M = map(int,input().split())\na = list(map(int, input().split()))\na.sort()\n#print(a)\nif N > M:\n ans = 0\nelse:\n distance = [abs(a[i+1] - a[i]) for i in range(M-1)]\n #print(distance)\n distance.sort()\n #print(distance)\n del distance[M-N:]\n ans = 0 \n for j in distance:\n ans ... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s227287886', 's420820020', 's986907822'] | [3060.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0] | [319, 69, 71] |
p03135 | u578489732 | 2,000 | 1,048,576 | In order to pass the entrance examination tomorrow, Taro has to study for T more hours. Fortunately, he can _leap_ to World B where time passes X times as fast as it does in our world (World A). While (X \times t) hours pass in World B, t hours pass in World A. How many hours will pass in World A while Taro studies ... | [" # -*- coding: utf-8 -*-\n import sys\n # ----------------------------------------------------------------\n # Use Solve Function\n \n def solve(lines):\n T,X = map(float, lines.pop(0).split(' '))\n print('{:.10f}'.format(T/X))\n #\n # main\n #\n \n # 1. use list inste... | ['Runtime Error', 'Accepted'] | ['s612496660', 's717862638'] | [2940.0, 2940.0] | [18.0, 18.0] | [538, 424] |
p03135 | u599832028 | 2,000 | 1,048,576 | In order to pass the entrance examination tomorrow, Taro has to study for T more hours. Fortunately, he can _leap_ to World B where time passes X times as fast as it does in our world (World A). While (X \times t) hours pass in World B, t hours pass in World A. How many hours will pass in World A while Taro studies ... | ['x=input().slice()\na=int(x[0])\nb=int(x[1])\nresult=float(a/b)\nresult=round(result,10)\nprint(result)', 'x=input().split()\na=int(x[0])\nb=int(x[1])\nresult=float(a/b)\nresult=round(result,10)\nprint(result)\n'] | ['Runtime Error', 'Accepted'] | ['s668804871', 's018537338'] | [2940.0, 3064.0] | [17.0, 18.0] | [97, 98] |
p03135 | u861077506 | 2,000 | 1,048,576 | In order to pass the entrance examination tomorrow, Taro has to study for T more hours. Fortunately, he can _leap_ to World B where time passes X times as fast as it does in our world (World A). While (X \times t) hours pass in World B, t hours pass in World A. How many hours will pass in World A while Taro studies ... | ['N, M = map(int, input().split( ))\ndatas = list(map(int, input().split( )))\ndatas.sort()\nMs = M - 1\n\ndest = list()\nK = 0\ni = 0\nfor i in range(Ms):\n K = datas[i+1] - datas[i]\n dest.append(K)\n\ndest.sort()\nL = 0\nMN = M - N\nfor j in range(MN):\n L = L + dest[j]\n\nprint(L)\n', 'N, M = map(int, input().sp... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s084277384', 's129855909', 's309904376', 's149232666'] | [3064.0, 3064.0, 3064.0, 2940.0] | [19.0, 18.0, 18.0, 17.0] | [269, 271, 343, 84] |
p03135 | u869154953 | 2,000 | 1,048,576 | In order to pass the entrance examination tomorrow, Taro has to study for T more hours. Fortunately, he can _leap_ to World B where time passes X times as fast as it does in our world (World A). While (X \times t) hours pass in World B, t hours pass in World A. How many hours will pass in World A while Taro studies ... | ["T,X=map(int,input().split())\n\nif __name__ == '__main__':\n value = (T/X)\n roundValue = round(value, 10)\n print('Round = ' + str(roundValue))\n", 'T,X=map(int,input().split())\n\nnum = (T/X)\nprint("{:.10f}".format(num))'] | ['Wrong Answer', 'Accepted'] | ['s025173370', 's550912617'] | [8984.0, 9052.0] | [27.0, 24.0] | [149, 70] |
p03136 | u001207659 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['a= input()\nb = input().split()\ns = 0\nfor i in range(0,len(b)):\n s+=int(b[i])\nif s-max(b)>max(b):\n print("Yes")\nelse:\n print("No")', 'a= input()\nb = input().split()\nb = [int(s) for s in b]\ns = 0\nfor i in range(0,len(b)):\n s+=int(b[i])\nprint(s)\nif s-int(max(b))>int(max(b)):\n print("Yes")\... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s006312872', 's660764827', 's842398656', 's632544182'] | [3060.0, 3064.0, 2940.0, 3060.0] | [18.0, 17.0, 19.0, 18.0] | [138, 181, 144, 172] |
p03136 | u003501233 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['N=int(input())\nl=list(map(int,input().split()))\nl=sorted(l)\n\nif l[-1] < sum([:-1]):\n print("Yes")\nelse:\n print("No")\n', 'N=int(input())\nl=list(map(int,input().split()))\nl=sorted(l)\n\nif l[-1] < sum(l[:-1]):\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s260945079', 's671124162'] | [2940.0, 2940.0] | [18.0, 17.0] | [119, 120] |
p03136 | u003928116 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n=int(input())\nmax=0\nsum=0\nfor i in range(n):\n a=int(input())\n if a>=max:\n max=a\n sum=sum+a\nif sum-a<a:\n print("Yes")\nelse:\n print("No")\n', 'n=int(input())\nm=0\ns=0\na=list(map(int,input().split()))\nfor i in range(n):\n if a[i] >= m:\n m=a[i]\n s=s+a[i]\nif s-m>m:\n print("Yes")\nelse:\n ... | ['Runtime Error', 'Accepted'] | ['s916877569', 's205657419'] | [2940.0, 2940.0] | [18.0, 17.0] | [145, 162] |
p03136 | u008357982 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["n=int(input())\nl=list(map(int,input().split()))\nprint('YNeos'[sum(l)>=max(l)::2])", "n=int(input())\nl=list(map(int,input().split()))\nprint('YNeos'[sum(l)-max(l)<=max(l)::2])"] | ['Wrong Answer', 'Accepted'] | ['s777345141', 's769941363'] | [2940.0, 2940.0] | [17.0, 17.0] | [81, 88] |
p03136 | u013408661 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["n=int(input())\narray=[]\nfor i in range(n):\n k=int(input())\n array.append(k)\narray.sorted()\nsum=0\nfor i in range(n-1):\n sum+=array[i]\nif array[n-1]<sum:\n print('Yes')\nelse:\n print('No')", "n=int(input())\narray=[]\nfor i in range(n):\n k=int(input())\n array.append(k)\narray.sort()\nsum=0\nfor i in ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s578350693', 's677049419', 's297072773'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 18.0] | [189, 187, 161] |
p03136 | u015647294 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['N = int(input())\nL = list(map(int, input().split()))\nL.sort()\nif L[-1] > (sum(L) - L[-1]):\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nL = list(map(int, int(input())))\nL.sort()\nif L[-1] > (sum(L) - L[-1]):\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nL = list(map(int, input()... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s753378068', 's937116943', 's693768179'] | [9132.0, 9168.0, 9116.0] | [30.0, 23.0, 25.0] | [129, 126, 129] |
p03136 | u017271745 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['N = int(input())\nL = list(map(int, input().split()))\n\nL.sort\nif sum(L[:-1]) > L[-1]\n ans = "Yes"\nelse: ans = "No"\n\nprint(ans)', 'N = int(input())\nL = list(map(int, input().split()))\n\nL.sort()\n\nif sum(L[:-1]) > L[-1]:\n ans = "Yes"\nelse: ans = "No"\n\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s029263414', 's911434737'] | [2940.0, 2940.0] | [18.0, 17.0] | [128, 132] |
p03136 | u021763820 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['# -*- coding: utf-8 -*-\nN = int(input())\nL = list(map(int, inpout().split()))\nif max(L) > (sum(L)-max(L)):\n print("Yes")\nelse:\n print("No")', '# -*- coding: utf-8 -*-\nN = int(input())\nL = list(map(int, input().split()))\nif max(L) < (sum(L)-max(L)):\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s044675408', 's827679851'] | [2940.0, 2940.0] | [17.0, 17.0] | [145, 144] |
p03136 | u024782094 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n=int(input())\nl=list(map(int,input().split()))\nfor i in range(n):\n if l[i]*2 <=sum(l):\n print("No")\n exit()\nprint("Yes")', 'n=int(input())\nl=list(map(int,input().split()))\n\nif max(l)*2 <=sum(l):\n print("No")\n exit()\nprint("Yes")', 'n=int(input())\nl=list(map(int,input().split()))\n\nif max(l)*2 ... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s026572278', 's557199287', 's767428577'] | [2940.0, 2940.0, 3064.0] | [18.0, 17.0, 19.0] | [128, 106, 106] |
p03136 | u028940452 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['N = int(input())\nA = [int(n) for n in input().split()]\nmaxA = max(A)\nif maxA < sum(A) - maxA:\n print("yes")\nelse:\n print("no")', 'N = int(input())\nL = [int(n) for n in input().split()]\nmaxL = max(L)\nif maxL < sum(L) - maxL\n\tprint("yes")\nelse:\n\tprint("no")', 'N = int(input())\nA = [int(n) for n in input(... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s058198643', 's763805860', 's872894022', 's696222245'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 19.0, 17.0, 17.0] | [126, 125, 126, 111] |
p03136 | u033524082 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n,m=map(int,input().split())\nx=list(map(int,input().split()))\nif n==1:\n print(max(x)-min(x))\nelif m==1 or n>=m:\n print(0)\nelse:\n goukei=0\n l=[0]\n i=0\n x.sort()\n a=0\n b=0\n while i<m-1:\n a=x[i]\n b=x[i+1]\n goukei+=b-a\n l.append(b-a)\n i+=1\n ... | ['Runtime Error', 'Accepted'] | ['s286960362', 's638821715'] | [3064.0, 3060.0] | [17.0, 17.0] | [388, 131] |
p03136 | u035445296 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["N = int(input())\nL = list(map(int, input().split()))\nL.sort(reverse=True)\nif 2*L[0] > sum(L):\n print('Yes')\nelse:\n print('No')", "N = int(input())\nL = list(map(int, input(.split())))\nind = L.index(max(L))\nif sum(L[ind-1:])+sum(L[:ind+1]) < max(L)\n print('Yes')\nelse: \n print('No')", "N = i... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s058065871', 's303857021', 's368331605', 's494281729', 's694239045', 's747996174', 's785060661', 's928019091', 's843575002'] | [2940.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 18.0, 17.0] | [132, 161, 141, 137, 123, 134, 142, 134, 103] |
p03136 | u040320709 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['a = int(input())\nl = list(map(int,input().split()))\nmax = max(l)\nsum = sum(l)\nif max < (sum -max) :\n print("yes")\nelse :\n print("no")', 'a = int(input())\nl = list(map(int,input().split()))\nmax = max(l)\nsum = sum(l)\nif max < (sum -max) :\n print("Yes")\nelse :\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s832382621', 's004308468'] | [3060.0, 2940.0] | [17.0, 17.0] | [135, 135] |
p03136 | u044459372 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["n=int(input())\nl=list(map(int,imput().split()))\nlmax=max(l)\nif lmax<sum(l)-lmax:\n\tprint('Yes')\nelse:\n\tprint('No')", "n=int(input())\nl=list(map(int,input().split()))\nlmax=max(l)\nif lmax<sum(l)-lmax:\n\tprint('Yes')\nelse:\n\tprint('No')"] | ['Runtime Error', 'Accepted'] | ['s678129543', 's790620623'] | [2940.0, 2940.0] | [18.0, 17.0] | [113, 113] |
p03136 | u045707160 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["n = int(input())\nl = list(map(int,input(),split()))\n\nif max(l) < sum(l)-max(l):\n print('Yes')\nelse:\n print('No')", 'N = input()\nL = map(int,raw_input().split())\nif max(L) >= (sum(L)-max(L)):\n print "No"\nelse:\n print "Yes"', "n = int(input())\nl = list(map(int,input(),split())\n\nif max(l) < sum(l)-... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s103562038', 's663528647', 's906061914', 's456060551'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [118, 107, 117, 112] |
p03136 | u053535689 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['# 117b\n\ndef atc_117b(N: int, Li_input: str) -> str:\n Li = [int(i) for i in Li_input.split(" ")]\n Li = sorted(Li)\n max_length = Li.pop()\n if max_length < sum(Li):\n return "Yes"\n return "No"\n\nN_input_value = int(input())\nLi_input_Value = input()\nprint(atc_117b(N_input_value, Li_input_v... | ['Runtime Error', 'Accepted'] | ['s950491796', 's104156767'] | [9144.0, 9116.0] | [26.0, 30.0] | [313, 313] |
p03136 | u054871430 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["n, *l = map(int, open(0).read().split())\n\nmax = 0\ntotal = 0\nfor i in range(0, n):\n if l[i] > max:\n total += max\n max = l[i]\n else:\n total += l[i]\n\nif max >= total:\n print('NO')\nelse:\n print('YES')", "n, *l = map(int, open(0).read().split())\n\nmax = 0\ntotal = 0\nfor i i... | ['Wrong Answer', 'Accepted'] | ['s974364262', 's175721947'] | [2940.0, 2940.0] | [17.0, 17.0] | [229, 229] |
p03136 | u055529891 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["N = int(input())\nLli = input().split()\nL = [int(i) for i in Lli]\nsL = sorted(L)\nif sum(sL[:-1]) < sL[-1]:\n print('Yes')\nelse:\n print('No')", "N = int(input())\nLli = input().split()\nL = [int(i) for i in Lli]\nsL = sorted(L)\nif sum(sL[:-1]) > sL[-1]:\n print('Yes')\nelse:\n print('No')\n"] | ['Wrong Answer', 'Accepted'] | ['s407077880', 's951049716'] | [2940.0, 2940.0] | [17.0, 18.0] | [144, 145] |
p03136 | u057993957 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n = int(input())\ns = [int(i) for i in intpu().split()]\n\ns = sorted(s, reverse=True)\nprint("Yes" if s[0] < sum(s[1:]) else "No")', 'n = int(input())\nx = [int(i) for i in input().split()]\nx = sorted(x, reverse=True)\nprint("Yes" if x[0] < sum(x[1:]) else "No")'] | ['Runtime Error', 'Accepted'] | ['s858076653', 's012783473'] | [2940.0, 3060.0] | [17.0, 17.0] | [127, 126] |
p03136 | u066111527 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['N = input()\na = [input() for i in range(N)]\n\nif max(a)\u3000>=\u3000sum(a) - max(a):\n print("Yes")\nelse:\n print("No")', 'N = int(input())\na = [input() for i in range(N)]\nif max(a)\u3000>=\u3000sum(a) - max(a):\n print("Yes")\nelse:\n print("No")', 'N = input()\na = [input() for i in range(N)]\n\nif max(a)... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s031111153', 's062006121', 's100687318', 's257697921', 's431518724', 's471316179', 's497429855', 's503879242', 's690427552', 's739226160', 's795919428', 's691508169'] | [3064.0, 2940.0, 2940.0, 2940.0, 3064.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 19.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [113, 117, 111, 114, 117, 113, 107, 134, 105, 111, 122, 104] |
p03136 | u069602573 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n = int(input())\nl=input().split()\nfor i in range(n):\n l[i] = int(l[i])\n\nl.sort()\nmax = l.pop(-1)\nsum = sum(l)\nif sum>max:\n print("YES")\nelse:\n print("NO")', 'n = int(input())\nl=input().split()\nfor i in range(n):\n l[i] = int(l[i])\n\nl.sort()\nmax = l.pop(-1)\nsum = sum(l)\nif sum>max:\n ... | ['Wrong Answer', 'Accepted'] | ['s907609448', 's014700571'] | [3060.0, 3060.0] | [18.0, 19.0] | [164, 164] |
p03136 | u072472435 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n = int(input())\nl = [int(x) for x in input().split()]\nsumSides = sum(l)\nlongestSide = max(l)\nif (longestSide < sumSides - longestSide):\n print("YES")\nelse:\n print("NO")', 'n = int(input())\nl = [int(x) for x in input().split()]\nsumSides = sum(l)\nlongestSide = max(l)\nif (longestSide < sumSides - longestSi... | ['Wrong Answer', 'Accepted'] | ['s308652528', 's267627946'] | [2940.0, 2940.0] | [20.0, 19.0] | [171, 171] |
p03136 | u072606168 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["n = int(input())\nl = [int(i) for i in input().split()]\nif max(l) < sum([i for i in l if i != max[l]]):\n print('Yes')\nelse:\n print('No')", "n = int(input())\nl = [int(i) for i in input().split()]\nif max(l) < sum(l)/2:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s587085081', 's698705781'] | [3056.0, 2940.0] | [17.0, 17.0] | [137, 111] |
p03136 | u072949274 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["n = int(input())\nl = list(map(int, input().split()))\n\nl.sort()\nprint(l[-1], sum(l[:-1]))\nif l[-1] >= sum(l[:-1]):\n print('No')\nelse:\n print('Yes')\n", "n = int(input())\nl = list(map(int, input().split()))\n\nl.sort()\nif l[-1] >= sum(l[:-1]):\n print('No')\nelse:\n print('Yes')\n"] | ['Wrong Answer', 'Accepted'] | ['s931654890', 's360942347'] | [2940.0, 2940.0] | [17.0, 18.0] | [153, 127] |
p03136 | u076996519 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["n = int(input())\n# l = sort(map(int, input().split()))\nl = sort(int(x) for x in input().split())\nl_sum = 0\nfor i in range(n-1):\n\tl_sum += l[i]\nif l_sum > l[n-1]:\n\tprint('Yes')\nelse:\n\tprint('No')", "n = int(input())\n# l = sort(map(int, input().split()))\nl = (int(x) for x in input().split()).sort()\nl_sum... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s421010076', 's684122811', 's894474630', 's237882566'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [194, 197, 150, 172] |
p03136 | u077337864 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["n = int(input())\nll = list(sorted(map(int, input().split())))\n\nif sum(ll[:-1]) > sum[-1]:\n print('Yes')\nelse:\n print('No')", "n = int(input())\nll = list(sorted(map(int, input().split())))\n\nif sum(ll[:-1]) > ll[-1]:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s664820728', 's736250497'] | [2940.0, 2940.0] | [18.0, 18.0] | [124, 123] |
p03136 | u079022116 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["n = int(input())\nl = list(map(int,input().split()))w\nif max(l) >= sum(l)-max(l):\n print('No')\nelse:\n print('Yes')", "n = int(input())\nl = list(map(int,input().split()))\nif max(l) >= sum(l)-max(l):\n print('No')\nelse:\n print('Yes')"] | ['Runtime Error', 'Accepted'] | ['s425484782', 's626967171'] | [2940.0, 2940.0] | [17.0, 17.0] | [115, 114] |
p03136 | u081688405 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n = int(input())\nls = list(map(int, input().split(" ")))\nprint("Yes" if 2*max(ls) > sum(ls) else "No")', 'n = int(input())\nls = list(map(int, input().split(" ")))\nprint("Yes" if 2*max(ls) < sum(ls) else "No")\n'] | ['Wrong Answer', 'Accepted'] | ['s391948737', 's784051564'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 103] |
p03136 | u083190434 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n = int(input())\nl = map(int,input().split())\nif sum(l) > 2*max(l):\n print("Yes")\nelse:\n print("No")', 'n = int(input())\nl = list(map(int,input().split()))\nif sum(l) > 2*max(l):\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s090791481', 's559140731'] | [2940.0, 2940.0] | [17.0, 17.0] | [106, 112] |
p03136 | u089230684 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n=input()\nint(n)\nall=0\na=[]\na=input().split()\nmx=0\nfor i in range(0,n):\n\tx=int(a[i])\n\tif x>mx: mx=x\n\tall=all+x\nif all>2*mx : print("Yes")\nelse : print("No")', "n=int(input())\nl=list(map(int,input().split()))\nm=max(l)\ndel l[l.index(m)]\ns=sum(l)\nif s<=m:\n print('No')\nelse:\n print('Yes')\n\n\... | ['Runtime Error', 'Accepted'] | ['s656362727', 's866853558'] | [3060.0, 2940.0] | [17.0, 17.0] | [156, 154] |
p03136 | u089376182 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["_ = input()\ncand_list = list(map(int, input().split()))\nmax_val = max(cand_list)\nprint('Yes' if len([i for i in cand_list if i < max_val])==len(cand_list) else 'No')", "_ = input()\ncand_list = list(map(int, input().split()))\nmax_val = max(cand_list)\nprint('Yes' if sum(cand_list) > 2*max_val else 'No')\n"] | ['Wrong Answer', 'Accepted'] | ['s662002827', 's380584247'] | [3064.0, 3060.0] | [17.0, 18.0] | [165, 134] |
p03136 | u095756391 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['N = input()\nL = list(input().split())\nb=0\nL.sort()\n \na = L.pop(-1)\n \nfor i in range(N-1):\n b+= L[i]\n \nif (a < b):\n print("Yes")\nelse:\n print("No")', 'N = input()\nL = list(input().split())\nb=0\nL.sort()\n \na = L.pop(-1)\n \nfor i in range(N-1):\n b += L[i]\n \nif (a < b):\n print("Yes")\nelse:\n ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s052771577', 's372465933', 's705428256', 's586699147'] | [2940.0, 3060.0, 2940.0, 3060.0] | [18.0, 18.0, 18.0, 18.0] | [149, 150, 142, 164] |
p03136 | u096359533 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["N = int(input())\nL = list(map(int,input().split()))\nL.sort()\nif L[-1] < sum(L[0:-1]):\n print('YES')\nelse:\n print('NO')", "N = int(input())\nL = list(map(int,input().split()))\nL.sort()\nif L[-1] < sum(L[0:-1]):\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s616178282', 's657591099'] | [2940.0, 2940.0] | [17.0, 17.0] | [124, 124] |
p03136 | u102242691 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['\nn = int(input())\nl = list(map(int,input().split()))\n\nl.sort()\n"""\nprint(l)\nprint(sum(l) - l[-1])\nprint(l[-1])\n"""\nif (sum(l) - l[-1]) < l[-1]:\n print("Yes")\nelse:\n print("No")\n', '\nn = int(input())\nl = list(map(int,input().split()))\nl.sort()\n\nif (sum(l)-l[-1]) > l[-1]:\n print("Yes")\nels... | ['Wrong Answer', 'Accepted'] | ['s212375137', 's261468498'] | [2940.0, 2940.0] | [17.0, 17.0] | [183, 134] |
p03136 | u109632368 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['def main():\n n = int(input())\n l = list(map(int,input().split()))\n lmax = max(l)\n\n s = sum(l) - 2*max(l)\n\n if s > 0:\n print("YES")\n else:\n print("NO")\n\nif __name__ == \'__main__\':\n main()', 'def main():\n n = int(input())\n l = list(map(int,input().split()))\n ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s109514953', 's239225881', 's326715061', 's420836342', 's475787168', 's551247029', 's600775617', 's523216780'] | [3060.0, 2940.0, 2940.0, 3060.0, 3060.0, 3060.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [221, 223, 205, 259, 270, 270, 216, 271] |
p03136 | u113750443 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['def nyu():\n N = int(input())\n L = list(map(int,input().split()))\n L.sort()\n\n return N,L\n\ndef check(N,L):\n sum =0 \n\n for n in range(N-1):\n sum += L[n]\n if sum > L[N-1]:\n print("YES")\n else:\n print("NO")\n \n\n\n\nN,L =nyu()\ncheck(N,L)\n\n\n\n\n\n', 'def n... | ['Wrong Answer', 'Accepted'] | ['s528518155', 's270877282'] | [2940.0, 2940.0] | [17.0, 17.0] | [282, 282] |
p03136 | u115110170 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n = input()\na list(map(int,input().split()))\n\na = sorted(a)\n\nif sum(a[0:-2]) > a[-1]:\n print("No")\nelse:\n print("Yes")', 'n = input()\na list(map(int,input().split()))\n\na = sorted(a)\n\nif sum(a[0:-1]) > a[-1]:\n print("No")\nelse:\n print("Yes")\n', 'n = input()\na = list(map(int,input().split()))\n\... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s561044715', 's633821461', 's725846516', 's269540708'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [121, 122, 123, 124] |
p03136 | u115888500 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['N = input()\nL = sorted(list(map(int, input().split())))\nprint("Yes" if (sum(L[:-1]) < L[-1]) else "No")', 'N = input()\nL = sorted(list(map(int, input().split())))\nprint("Yes" if (sum(L[:-1]) > L[-1]) else "No")'] | ['Wrong Answer', 'Accepted'] | ['s061113084', 's078179551'] | [2940.0, 2940.0] | [17.0, 17.0] | [103, 103] |
p03136 | u116233709 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n=int(input())\nl=list(map(int,input().split()))\ncnt=0\nl.sort()\nfor i in range(0,n-1):\n cnt+=l[i]\nif cnt>l[n]:\n print("Yes")\nelse:\n print("No")', 'n=int(input())\nl=list(map(int,input().split()))\ncnt=0\nl.sort()\nfor i in range(0,n-1):\n cnt+=l[i]\nif cnt>l[n-1]:\n print("Yes")\nelse:\n print("No")\n'] | ['Runtime Error', 'Accepted'] | ['s973419127', 's055257405'] | [2940.0, 2940.0] | [17.0, 17.0] | [145, 148] |
p03136 | u118518526 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["n = int(input())\nl = list(input().split())\n\nl.sort(reverse = True)\n\nif len(l) == n:\n lm = l[0]\n\n del l[0]\n\n if lm < sum(l):\n print('Yes')\n else:\n print('No')\nelse:\n print('No')\n", "n = int(input())\nl = list(map(input().split()))\n\nl.sort(reverse = True)\n\nif len(l) == n:\n lm = l[0]\n\n... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s070184644', 's104784983', 's278902742', 's359410788', 's444530046', 's664457906', 's895093905'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [188, 193, 188, 141, 144, 198, 205] |
p03136 | u122195031 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['N = int(input())\nl = list(map(int.input().split()))\n\nif 2 * max(l) < sum(l):\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nl = list(map(int,input().split()))\n\nif 2 * max(l) < sum(l):\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s936986407', 's274732209'] | [2940.0, 2940.0] | [17.0, 17.0] | [115, 115] |
p03136 | u123745130 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['\n#include<algorithm>\n\n#include <numeric>\nusing namespace std;\n\nint main(){\n int n;\n int max_s=0;\n int sum_s=0;\n int L;\n\n cin>>n;\n for (int i=0;i<n;i++){\n cin>>L;\n sum_s+=L;\n max_s=max(max_s,L);\n } \t\n\tif (max_s<sum_s-max_s){\n cout<<"Yes"<<endl;\n }e... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s441802458', 's531974346', 's915409909'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 21.0] | [380, 88, 89] |
p03136 | u123824541 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["N = int(input())\nL = input().split()\nsum_len = 0\n\nL_i = [int(s) for s in L]\nprint(L_i)\nL_i.sort()\n\nfor i in range(N-1):\n sum_len = sum_len + int(L_i[i])\n\nif sum_len > int(L_i[N-1]):\n print('Yes')\nelse :\n print('No')", "N = int(input())\nL = input().split()\nsum_len = 0\n\nL_i = [int(s) for s ... | ['Wrong Answer', 'Accepted'] | ['s978943480', 's230732244'] | [3064.0, 3060.0] | [19.0, 17.0] | [225, 214] |
p03136 | u131406572 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n=int(input())\np=list(map(int,input().split()))\nm=max(p)\np.remove(m)\nif m>sum(p):\n print("Yes")\nelse:\n print("No")', 'n=int(input())\np=list(map(int,input().split()))\nm=max(p)\np.remove(m)\n#print(p)\nif m<sum(p):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s754100186', 's047147026'] | [2940.0, 2940.0] | [17.0, 17.0] | [120, 130] |
p03136 | u137808818 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["n = int(input())\ns = [int(input()).split() for i range(n)]\nprint( 'Yes' if max(s) < sum(s)-max(s) else 'No')\n", "n = int(input())\ns = list(map(int,input().split()))\nprint( 'Yes' if max(s) < sum(s)-max(s) else 'No')\n"] | ['Runtime Error', 'Accepted'] | ['s901408220', 's198067088'] | [2940.0, 2940.0] | [17.0, 17.0] | [109, 102] |
p03136 | u143509139 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["N = int(input())\nL = list(map(int, input().split()))\nans = 'Yes' \nif max(L) >= sum(L.pop(L.index.max(L))):\n ans = 'No'\nprint(ans)", "n = int(input())\nl = list(map(int, input().split()))\nif max(l) * 2 < sum(l):\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s928741117', 's146748627'] | [2940.0, 3064.0] | [18.0, 17.0] | [132, 115] |
p03136 | u157184457 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['# coding: utf-8\n# Your code here!\nn = int(input())\nl = list(map(int, input().split()))\nm = sum(l)\na = 0\nfor i in range(n):\n if l[i] >= m - l[i]:\n print("NO")\n a = 1\n break\nif a == 0:\n print("YES")', '# coding: utf-8\n# Your code here!\nn = int(input())\nl = list(map(int, input()... | ['Wrong Answer', 'Accepted'] | ['s638007287', 's064318697'] | [3060.0, 3060.0] | [17.0, 17.0] | [223, 223] |
p03136 | u160414758 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['import sys,collections,math;sys.setrecursionlimit(10**7)\ndef Is(): return [int(x) for x in sys.stdin.readline().split()]\ndef Ss(): return sys.stdin.readline().split()\ndef I(): return int(sys.stdin.readline())\ndef S(): return input()\n\nn = I()\nLs = Is()\nm = max(Ls)\nif sum(Ls) - m < m:\n print("Yes")\nelse:\... | ['Wrong Answer', 'Accepted'] | ['s005524330', 's089949596'] | [3436.0, 3436.0] | [25.0, 27.0] | [322, 322] |
p03136 | u163320134 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["n=int(input())\narr=[int(input()) for _ in range(n)]\narr=sorted(arr)\ntotal=sum(arr[:-1])\nif arr[-1]<total:\n print('Yes')\nelse:\n print('No')", "n=int(input())\narr=list(map(int,input().split()))\narr=sorted(arr)\ntotal=sum(arr[:-1])\nif arr[-1]<total:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s787445437', 's497741142'] | [3060.0, 3060.0] | [17.0, 17.0] | [140, 138] |
p03136 | u163874353 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n = int(input())\nl = list(map(int, input().split()))\nl.sort()\ncnt = 0\nfor i in l[:n - 1]:\n cnt += 1\n #print(i)\nif cnt > l[n - 1]:\n print("Yes")\nelse:\n print("No")\n ', 'n = int(input())\nl = list(map(int, input().split()))\nl.sort()\ncnt = 0\nfor i in l[:n - 1]:\n cnt += i\n #print(i)\n... | ['Wrong Answer', 'Accepted'] | ['s912755083', 's507988187'] | [2940.0, 3060.0] | [17.0, 17.0] | [179, 174] |
p03136 | u165268875 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['\nN = int(input())\na = list(map(int, input().split()))\n\nprint("Yes" if max(a) > sum(a)-max(a) else "No")\n', '\nN = int(input())\na = [int(input()) for i in range(N)]\n\nprint("Yes" if max(a) > sum(a)-max(a) else "No")\n', '\nN = int(input())\na = list(map(int, input().split()))\n\nprint("Yes" if max(a) < sum(a)-m... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s194829090', 's318830063', 's436898543', 's690146439', 's019967558'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 17.0] | [104, 105, 106, 106, 103] |
p03136 | u171115409 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["# -*- coding: utf-8 -*-\nN = int(input())\nL = list(map(int, input().split()))\n\nL.sort()\nsum = 0\nfor i in range(N-1):\n sum += L[i]\n\nprint(sum, L[-1])\nif(L[-1] < sum):\n print('Yes')\nelse:\n print('No')\n", "# -*- coding: utf-8 -*-\nN = int(input())\nL = list(map(int, input().split()))\n\nL.sort()\nsum = 0... | ['Wrong Answer', 'Accepted'] | ['s208288092', 's740865829'] | [3060.0, 2940.0] | [17.0, 17.0] | [201, 183] |
p03136 | u175590965 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n = int(input())\nl = list(map(int,input().split()))\nif max(l) < sum(l)-max(l):\n print("YES")\nelse:\n print("NO")', 'n = int(input())\nl = list(map(int,input().split()))\nif max(l) < sum(l)-max(l):\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s298175696', 's530756138'] | [2940.0, 2940.0] | [17.0, 17.0] | [117, 117] |
p03136 | u176567747 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["N = int(input())\nL_list = list(map(int, input().split()))\n\nm = max(L_list)\nresult = 'yes' if sum(L_list) - m > m else 'no'\nprint(result)", "N = int(input())\nL_list = list(map(int, input().split()))\n \nm = max(L_list)\nresult = 'Yes' if sum(L_list) - m > m else 'No'\nprint(result)"] | ['Wrong Answer', 'Accepted'] | ['s811692818', 's875558163'] | [2940.0, 2940.0] | [17.0, 18.0] | [136, 137] |
p03136 | u181195295 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['li = list(map(int,input().split()))\n\nif sum(li) - 2*max(li) > 0:\n print("Yes")\nelse: print("No")', 'N = input()\nli = list(map(int,input().split()))\n\nif sum(li) - 2*max(li) > 0:\n print("Yes")\nelse: print("No")\n'] | ['Wrong Answer', 'Accepted'] | ['s058115261', 's456072475'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 110] |
p03136 | u181526702 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["N = map(int, input().split())\nL = map(int, input().split())\n\nmax_length = max(L)\n\nif max_length < sum(L) - max_length:\n print('Yes')\nelse:\n print('No')", "N = int(input())\nL = list(map(int, input().split()))\n\nmax_length = max(L)\n\nif max_length < sum(L) - max_length:\n print('Yes')\nelse:\n pr... | ['Wrong Answer', 'Accepted'] | ['s233323672', 's514002703'] | [2940.0, 2940.0] | [18.0, 19.0] | [157, 150] |
p03136 | u184817817 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["def judge(n,l):\n for i in range(n):\n for j in range(n):\n s = 0\n if(j!=i):\n s += l[j]\n if(s<l[i]):\n print('No')\n return\n print('Yes')\n return\n\nn = int(input())\nl = list(map(int,input().split()))\njudge(n,l)", "def judge(n,l)... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s061724626', 's425875145', 's542552573', 's667639643', 's960165698'] | [3060.0, 3060.0, 3060.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [286, 298, 298, 287, 283] |
p03136 | u189479417 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['N = int(input())\nL = list(map(int,input().split()))\nif max(L) * 2 < L:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nL = list(map(int,input().split()))\nif max(L) * 2 < sum(L):\n print("Yes")\nelse:\n print("No")'] | ['Runtime Error', 'Accepted'] | ['s293234002', 's657042156'] | [2940.0, 2940.0] | [24.0, 17.0] | [109, 114] |
p03136 | u190406011 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['N = int(input())\nL_ls = [int(i) for i in input().split()]\nprint(L_ls)\nif sum(L_ls) - 2*max(L_ls) > 0:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nL_ls = map(int, input().split())\nif sum(L_ls) - 2*max(L_ls) > 0:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nL_ls = [int(i) for i in input... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s365028688', 's890422191', 's772387552'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [136, 116, 124] |
p03136 | u196746947 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n=int(input())\nL=list(map(int,input().split()))\nsum=0\nmax=0\nfor i in L:\n if i>max:\n sum+=max\n max=i\nif max<sum:\n print("Yes")\nelse:\n print("No")', 'n=int(input())\nL=list(map(int,input().split()))\nsum=0\nmax=0\nfor i in L:\n if i>max:\n sum+=max\n max=i\n else:\n... | ['Wrong Answer', 'Accepted'] | ['s528472262', 's775875161'] | [2940.0, 3060.0] | [17.0, 18.0] | [167, 192] |
p03136 | u197300260 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['# _*_ coding:utf-8 _*_\n\n\n\ndef solveProblem(lengthList):\n\tsortedList = sorted(lengthList,reverse=True)\n\tallIntegerSum = sum(lengthList)\n\tmaxInteger = sortedList.pop(0)\n\tanotherIntegerSum = allIntegerSum - maxInteger\n\tif maxInteger < anotherIntegerSum:\n\t\tanswer="YES"\n\telse:\n\t\tanswer="NO"\n\treturn... | ['Wrong Answer', 'Accepted'] | ['s472563503', 's564863586'] | [3060.0, 3060.0] | [18.0, 17.0] | [545, 545] |
p03136 | u198062737 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['N = int(input())\nmax_L = 0\nsum_L = 0\nfor i in range(0, N):\n L = int(input())\n if L > max_L:\n max_L = L\n sum_L += L\n\nif sum_L - max_L > max_L:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nL = [int(s) for s in input().split(" ")]\nmax_L = 0\nsum_L = 0\nfor l in L:\n if l > max_L:\n max_... | ['Runtime Error', 'Accepted'] | ['s061660319', 's834320437'] | [2940.0, 3060.0] | [18.0, 17.0] | [182, 195] |
p03136 | u198440493 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['n = int(input())\nl = map(int, input().split())\ns = 0\nt = 0\nfor x in l:\n s += x\n t = max(x, t)\nif s>t:\n print(Yes)\nelse:\n print(No)', "n = int(input())\nl = map(int, input().split())\ns = 0\nt = 0\nfor x in l:\n s += x\n t = max(x, t)\nif s>2*t:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s988454253', 's650607097'] | [2940.0, 3060.0] | [18.0, 17.0] | [134, 140] |
p03136 | u203374394 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['# -*- coding: utf-8 -*-\n\nindex = int(input(\'input num : \'))\n\n\nmaximum = 0\nother = 0\ninputList = input().split()\nfor i in range(index):\n tmp = int(inputList[i])\n if tmp > maximum:\n maximum = tmp\n other = other + maximum\n else:\n other = other + tmp\n\nif maximum <= tmp - ma... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s072564865', 's192225745', 's192446746', 's208430147', 's405455170', 's505254692', 's535580911', 's560791918', 's578729974', 's837448933', 's454150818'] | [2940.0, 3060.0, 2940.0, 3064.0, 3060.0, 2940.0, 3060.0, 3060.0, 2940.0, 3060.0, 2940.0] | [18.0, 18.0, 17.0, 17.0, 20.0, 18.0, 17.0, 17.0, 17.0, 17.0, 18.0] | [398, 397, 271, 248, 397, 398, 291, 292, 258, 291, 384] |
p03136 | u203377003 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['N = int(input())\nL = list(map(int, input().split()))\n\nL2 = sorted(L)\nprint(N, L2)\n\nif sum(L2[0:-1]) > L2[-1]:\n print("Yes")\nelse:\n print("No")', 'N = int(input())\nL = list(map(int, input().split()))\n\nL2 = sorted(L)\n\nif sum(L2[0:-1]) > L2[-1]:\n print("Yes")\nelse:\n print("No")'] | ['Wrong Answer', 'Accepted'] | ['s302718126', 's584273288'] | [3060.0, 2940.0] | [17.0, 17.0] | [148, 135] |
p03136 | u204616996 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["N=int(input())\nL=list(map(int,input().split()))\nL=sorted(L)\nif sum(L[:-1])>L:\n print('Yes')\nelse:\n print('No')", "N=int(input())\nL=list(map(int,input().split()))\nL=sorted(L)\nif sum(L[:-1])>L[-1]:\n print('Yes')\nelse:\n print('No')"] | ['Runtime Error', 'Accepted'] | ['s314054781', 's147487973'] | [3188.0, 2940.0] | [18.0, 17.0] | [112, 116] |
p03136 | u204779264 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['import sys\nN = None\n\nfor i,line in enumerate(sys.stdin):\n if i == 0:\n N = int(line)\n if i == 1:\n lines = [int(i) for i in line.split(" ")]\n if (sum(lines) - max(lines)) > max(lines):\n print("YES")\n else:\n print("NO")', 'import sys\nN = None\n\nfor i,l... | ['Wrong Answer', 'Accepted'] | ['s783363018', 's860575946'] | [3060.0, 3060.0] | [19.0, 17.0] | [272, 272] |
p03136 | u205561862 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["input();s=map(int,input().split());print('YNeos'[sum(s)-max(s)*2<1::2])\n", "print((lambda l:['No','Yes',input()][sum(l[:-1])>l[-1]])(sorted(list(map(int,input().split())))))\n", "print((lambda l:['No','Yes',input()][sum(l[:-1])>=l[-1]])(sorted(list(map(int,input().split())))))", "print((lambda l:['No','Yes'][sum(l[:... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s659165318', 's850480546', 's926326612', 's667110962'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 20.0, 17.0, 18.0] | [72, 98, 98, 104] |
p03136 | u210545407 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ["number = int(input())\n\nsides = [int(val) for val in input().split(' ')]\n\nprint(sum(sides))\nprint(max(sides))", "number = int(input())\n\nsides = [int(val) for val in input().split(' ')]\n\nlongest = max(sides)\nall = sum(sides)\n\nif longest < all - longest:\n print('Yes')\nelse:\n print('No')"] | ['Wrong Answer', 'Accepted'] | ['s940604974', 's712769704'] | [2940.0, 3060.0] | [17.0, 17.0] | [108, 174] |
p03136 | u215329188 | 2,000 | 1,048,576 | Determine if an N-sided polygon (not necessarily convex) with sides of length L_1, L_2, ..., L_N can be drawn in a two-dimensional plane. You can use the following theorem: **Theorem** : an N-sided polygon satisfying the condition can be drawn if and only if the longest side is strictly shorter than the sum of the le... | ['10\n1 8 10 5 8 12 34 100 11 3', "N = int(input())\n*L, = map(int, input().split())\n\nL_sum = sum(L)\n\nres = True\nfor l in L:\n if ((L_sum - l) <= l):\n res = False\n\nif (res):\n print('Yes')\nelse:\n print('No')\n"] | ['Runtime Error', 'Accepted'] | ['s900627759', 's963948603'] | [2940.0, 2940.0] | [22.0, 17.0] | [28, 186] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.