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 |
|---|---|---|---|---|---|---|---|---|---|---|
p03030 | u357751375 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nl = [list(input().split()) for i in range(n)]\ns,p = [list(i) for i in zip(*l)]\np = [int(i) for i in p]\nz = list(set(s))\nz.sort()\nm = list(p)\nm.sort(reverse = True)\nl = []\n\nk = 0\nfor i in range(len(z)):\n l.append(k)\n k += 200\n\no = []\nfor i in range(n):\n w = l[z.index(s[i])]\n... | ['Wrong Answer', 'Accepted'] | ['s934882561', 's453135430'] | [9244.0, 9204.0] | [28.0, 24.0] | [409, 351] |
p03030 | u360090862 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N=int(input())\nrestaurants={}\nfor i in range(N):\n S,P=input().split()\n restaurants[S]=[int(P),i+1]\nrestaurants=sorted(restaurants.items(),key=lambda x:x[1][0])\nrestaurants=sorted(restaurants.items(),key=lambda x:x[0])\nfor i in restaurants.values():\n print(i[1])', 'N=int(input())\nrestaurants=[]\nfor i in r... | ['Runtime Error', 'Accepted'] | ['s557906185', 's964896891'] | [3060.0, 3060.0] | [17.0, 17.0] | [264, 243] |
p03030 | u363207161 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['from operator import itemgetter\n\nn = int(input())\nsp = [list(map(str, input().split())) for i in range(n)]\n\nfor i in range(n):\n sp[i].append(i + 1)\n sp[i][1] = int(sp[i][1])\n\nsp.sort()\n\nt = []\n\nt.append(sp[0])\n\nfor i in range(n - 1):\n i += 1\n if sp[i][0] == sp[i-1][0]:\n t.append(s... | ['Wrong Answer', 'Accepted'] | ['s446311605', 's709982383'] | [3064.0, 3064.0] | [20.0, 20.0] | [535, 520] |
p03030 | u364061715 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ["P = int(input())\nres= []\nfor i in range(P):\n a, b = input().split(' ')\n res.append((a,b,i+1))\nres2 = sorted(res, key = lambda x:x[1], reverse = True)\nres3 = sorted(res2, key = lambda x:x[0])\nfor j in range(P):\n print(res3[2])", 'P = int(input())\nres= []\nfor i in range(P):\n a, b = input().split()\n ... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s104923427', 's334803781', 's779900860', 's839632465', 's879111003', 's296862086'] | [3060.0, 3060.0, 3060.0, 3064.0, 3060.0, 3060.0] | [18.0, 21.0, 17.0, 18.0, 20.0, 18.0] | [228, 255, 205, 240, 206, 244] |
p03030 | u366482170 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n=int(input())\nrest=[0]*n\nfor i in range(n):\n a,b=map(str,input().split())\n b=int(b)\n rest[i]=[i,a,b]\nrest.sort(key=lambda x:x[1])\nrest.sort(key=lambda x:x[2])\n\nfor i in range(n):\n print(rest[i][0])', 'n=int(input())\nrest=[0]*n\nfor i in range(n):\n a,b=map(str,input().split())\n b=int(b)\n rest[i]=... | ['Wrong Answer', 'Accepted'] | ['s670712139', 's304070264'] | [3064.0, 3060.0] | [17.0, 18.0] | [202, 221] |
p03030 | u367117210 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['10\n9\n8\n7\n6\n5\n4\n3\n2\n1', 'n = int(input())\nspi = {}\nfor i in range(n):\n t = input().split()\n if t[0] in spi:\n spi[t[0]] += [(int(t[1]), i+1)]\n else:\n spi[t[0]] = [(int(t[1]), i+1)]\n\nfor e in spi:\n spi[e] = sorted(spi[e], key=lambda x: x[0], reverse=True)\n\nspi = sorted(zip(... | ['Wrong Answer', 'Accepted'] | ['s910312675', 's332163953'] | [2940.0, 3064.0] | [17.0, 18.0] | [20, 377] |
p03030 | u371132735 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['#abc128_b.py\n\nn = int(input())\nrs = []\nfor i in range(n):\n s, p = input().split()\n p = int(p)\n rs.append((s, -p, i+1))\nprint(rs)\nrs = sorted(rs)\nprint(rs)\nfor r in rs:\n print(r[2])', '\nn = int(input())\nrs = []\nfor i in range(n):\n s, p = input().split()\n p = int(p)\n rs.append((s,... | ['Wrong Answer', 'Accepted'] | ['s263623236', 's548259414'] | [3060.0, 3060.0] | [17.0, 17.0] | [538, 159] |
p03030 | u372187342 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n=int(input())\n\nlist2=[]\n\nfor i in range(n):\n list=[j for j in input().split()]\n list[1]=int(list[1])\n list2.append(list)\n\n#print(list2)\n\nlist3=sorted(list2, key=lambda x:(x[0],-x[1]))\n\n#print(list3)\n\nfor i in list2:\n print(list3.index(i)+1)\n', 'n=int(input())\n\nlist2=[]\n\nfor i in rang... | ['Wrong Answer', 'Accepted'] | ['s144051985', 's213022344'] | [3060.0, 3060.0] | [18.0, 18.0] | [254, 254] |
p03030 | u373703188 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\n\nlst = []\n\nfor i in range(n):\n s, p = input().split()\n lst.append([s, 100 - int(p), i + 1])\n \n# print(lst)\n\n\n\nlst.sort()\n\n\nprint(lst)\nfor i in lst:\n print(i[2])', 'n = int(input())\n\nlst = []\n\nfor i in range(n):\n s, p = input().split()\n lst.append([s, 100 - int... | ['Wrong Answer', 'Accepted'] | ['s562684368', 's323821503'] | [3060.0, 3316.0] | [17.0, 19.0] | [414, 416] |
p03030 | u374146618 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nsp = [input().split() for _ in range(n)]\n\nfor i in range(n):\n sp[i][1] = int(sp[i][1])\n sp[i] = sp[i]+[i+1]\n \nsp_s0 = sorted(sp, key=lambda x:(x[0], -x[1]), reverse=False)\nprint(sp_s0)\n\nfor i in range(n):\n print(sp_s0[i][2])', 'n = int(input())\nsp = [input().split() for _ in r... | ['Wrong Answer', 'Accepted'] | ['s610970669', 's191500703'] | [3064.0, 3064.0] | [18.0, 17.0] | [253, 240] |
p03030 | u374829922 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['\n#input\nN = int(input())\nX = [[input().split(), i + 1] for i in range(N)]\nX = sorted(X, key = lambda x:(x[0][0], int(-x[0][1])) )\n\nfor i in range(N):\n print(X[i][0])', 'N = int(input())\nX = [[input().split(), i + 1] for i in range(N)]\nX = sorted(X, key = lambda x:(x[0][0], -int(x[0][1])))\nfor i in range(... | ['Runtime Error', 'Accepted'] | ['s336225417', 's201745448'] | [3060.0, 3060.0] | [18.0, 18.0] | [168, 155] |
p03030 | u375282392 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\n\ns = []\nfor i in range(n):\n\ts.append(list(input().split()))\n\nfor i in range(n):\n\ts[i][1] = int(s[i][1])\n\nans = sorted(s,key=lambda x : (x[0],x[1]))\nprint(ans)', 'n = int(input())\n\ns = []\nfor i in range(n):\n\ts.append(list(input().split()))\n\nfor i in range(n):\n\ts[i][1] = int(s[i][1... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s027370058', 's150458001', 's164280415', 's211978511', 's242886093', 's483264160', 's625918780', 's741929712', 's948635941'] | [3060.0, 3060.0, 3060.0, 2940.0, 3060.0, 3060.0, 2940.0, 2940.0, 3060.0] | [18.0, 18.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0] | [175, 190, 163, 90, 199, 176, 164, 120, 164] |
p03030 | u377989038 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['# -*- coding: utf-8 -*-\nimport copy\n\nN = int(input())\nlist = [input().split() for i in range(N)]\nlist2 = copy.deepcopy(list)\nlist2.sort(key=lambda x:(x[0],-int(x[1])))\nprint(list2)\n\nfor i in range(N):\n a = list2[i]\n b = list.index(a)\n print(int(b + 1))', '# -*- coding: utf-8 -*-\nimport copy\n\nN... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s107692615', 's203781373', 's238795253', 's742462445'] | [3572.0, 3444.0, 3572.0, 3444.0] | [23.0, 23.0, 23.0, 23.0] | [261, 256, 256, 248] |
p03030 | u380933932 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['#d=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]\n#import numpy as np\n#n=int(input())\n#import fractions\n#S=input()\n#import math\n#lis=list(map(int,input().split()))\n\nn=int(input())\nsp={}\nfor i in range(n):\n li=input().split()\n li.append(i+1)\... | ['Runtime Error', 'Accepted'] | ['s415870401', 's024290458'] | [3060.0, 3064.0] | [18.0, 18.0] | [583, 625] |
p03030 | u382431597 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['from operator import itemgetter\nn = int(input())\ns = [input().split() for i in range(n)]\nfor i in range(len(s)):\n s[i].append(i+1)\n s[i][1] = int(s[i][1])\ns.sort(key = itemgetter(1))\ns.sort(key = itemgetter(0))\n\nfor i in range(n):\n print(s[i][2])\n', 'from operator import itemgetter\nn = int(input(... | ['Wrong Answer', 'Accepted'] | ['s323175367', 's379129199'] | [3060.0, 3060.0] | [18.0, 19.0] | [256, 239] |
p03030 | u384261199 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nbag = []\nshi = []\nfor i in range(N):\n s, p = input().split()\n p = int(p)\n shi.append(s)\n \n bag.append((s, p, i))\n\nsorted_bag = sorted(bag, key=lambda x:x[0])\nsorted_shi = sorted(list(set(shi)))\n\n\ndic = {}\nfor s, p, i in bag:\n if s not in dic.keys():\n dic[s] =... | ['Wrong Answer', 'Accepted'] | ['s032163077', 's492049473'] | [3064.0, 3064.0] | [18.0, 19.0] | [535, 539] |
p03030 | u386089355 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nls = [[_ for _ in input().split()] for _ in range(n)]\n\nlss = sorted(ls, key=lambda x: int(x[1]), reverse=True)\n\nans = sorted(lss, key=lambda x: x[0])\nprint(ans) \n\nfor i in range(n):\n\tprint(1 + ls.index(ans[i]))', 'n = int(input())\nls = [[_ for _ in input().split()] for _ in range(n)]\n\nls... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s309013592', 's911853586', 's614155626'] | [3060.0, 3064.0, 3060.0] | [17.0, 18.0, 17.0] | [227, 227, 215] |
p03030 | u386782537 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['\nN = int(input())\nR_list = []\nfor i in range(N):\n S, P=map(str, input().split())\n R_list.append([S , int(P)*-1 , i])\nR_list.sort()\nfor i in range(N):\n R_list[i].append(i+1)\nR_list.sort(key=lambda x:x[2])\nfor i in range(N):\n print(R_list[i][3])\n\n ', '\nN = int(input())\nR_list = []\nfor i i... | ['Wrong Answer', 'Accepted'] | ['s705870398', 's058834721'] | [3064.0, 3060.0] | [17.0, 17.0] | [269, 271] |
p03030 | u388547496 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\narray = []\nfor i in range(N):\n array.append(list(map(str, input().split())))\narray_new = sorted(array, key=lambda x: (x[0], -x[1]))\nfor i in range(N):\n print(int(array.index(array_new[i])+1))', 'N = int(input())\narray = []\nfor i in range(N):\n array.append(list(map(str, input().split... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s039912401', 's268474799', 's104807885'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 18.0] | [214, 216, 219] |
p03030 | u391675400 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\ns = [input().split() for i in range(n)]\ntemp = s\ndata = sorted(s,key=lambda x:(x[0],-int(x[1])))\n\n\nfor i in range(n):\n y = temp[i]\n result = data.index(y)\n print(result+1)\n', 'n = int(input())\ns = [input().split() for i in range(n)]\ntemp = s\ndata = sorted(s,key=lambda x:(x[0],... | ['Wrong Answer', 'Accepted'] | ['s851096305', 's060183616'] | [3060.0, 3060.0] | [17.0, 18.0] | [199, 199] |
p03030 | u391819434 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['from operator import itemgetter\n\n\nN=int(input())\nA=[0]*N\nfor i in range(N):\n A[i]=input().split()\n\ni=0\nwhile i<N:\n A[i][1]=int(A[i][1])\n i+=1\n\ni=0\nwhile i<N:\n A[i]=tuple(A[i])\n i+=1\n\nB1 = sorted(A, key=itemgetter(1),reverse=True)\nB2 = sorted(B1,key=itemgetter(0))\n\nprint(B2)\n\nfor ... | ['Wrong Answer', 'Accepted'] | ['s712674567', 's934427809'] | [3064.0, 3064.0] | [18.0, 19.0] | [331, 319] |
p03030 | u392998841 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nlist = []\nfor i in range(N):\n input_list = input()\n S = input_list.split(" ")[0]\n P = int(input_list.split(" ")[1])\n list.append([i, S, P])\n\n#from operator import itemgetter\n\nlist.sort(key=lambda x: x[2] ,reverse=True)\nlist.sort(key=lambda x: x[1])\nfor i in range(N):\n list... | ['Wrong Answer', 'Accepted'] | ['s004484156', 's775069232'] | [3064.0, 3060.0] | [17.0, 17.0] | [374, 321] |
p03030 | u393881437 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nsp = []\n\nfor i in range(n):\n sp.append(input().split())\n sp[i].append(i + 1)\n\nsp.sort(key=lambda x:(x[0], -int(x[1])))\nprint(sp)\nfor r in sp:\n print(r[2])\n', 'n = int(input())\nsp = []\n\nfor i in range(n):\n sp.append(input().split())\n sp[i].append(i + 1)\n\nsp.sort(key=la... | ['Wrong Answer', 'Accepted'] | ['s783119020', 's827419965'] | [3060.0, 3060.0] | [18.0, 17.0] | [181, 183] |
p03030 | u395202850 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nsList, pList = [], []\nfor i in range(n):\n s, p = map(str, input().split())\n sList.append(s)\n pList.append(p)\n\nsListSet = sorted(set(sList))\npListSet = sorted(set(pList), reverse=True)\n\nprint(sListSet, pListSet)\n\nspList = []\nfor i in range(n):\n spList.append(sListSet.index(sL... | ['Wrong Answer', 'Accepted'] | ['s364707071', 's457506162'] | [3064.0, 3060.0] | [19.0, 17.0] | [445, 219] |
p03030 | u398642144 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ["import sys\nargs = sys.stdin.readlines()\nN = int(args[0])\nd = {}\nfor i, line in enumerate(args[1:]):\n S, p = line.split(' ')\n P = int(p)\n if S in d:\n d[S].append((i+1, P))\n else:\n d[S] = []\n d[S].append((i+1, P))\n \nfor key in d.keys():\n d[key].sort(key=lambda x:x[1], reverse=True)\n ... | ['Wrong Answer', 'Accepted'] | ['s216206745', 's798167857'] | [3064.0, 3064.0] | [17.0, 17.0] | [342, 351] |
p03030 | u399973890 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nrest_list = []\nfor i in range(N):\n a,b=input().split()\n temp=[i+1,a,(-1)*int(b)]\n rest_list.append(temp)\nprint(rest_list)\nrest_list.sort(key=lambda x: (x[1], x[2]))\nfor i in rest_list:\n print(i[0])\n', 'N = int(input())\nrest_list = []\nfor i in range(N):\n a,b=input().split()... | ['Wrong Answer', 'Accepted'] | ['s927125937', 's958820877'] | [3060.0, 3060.0] | [17.0, 18.0] | [227, 210] |
p03030 | u403660920 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n=int(input())\nList=[[input().split() , i+1] for i in range(n)]\n\nList=sorted(List,key=lambda x : (x[0],-int(x[1])))\n\nfor i in range(n):\n print(List[i][2])', 'n=int(input())\nList=[[input().split() , i+1] for i in range(n)]\n\nList=sorted(List,key=lambda x : (x[0][0],-int(x[0][1])))\n\nfor i in range(n):\n ... | ['Runtime Error', 'Accepted'] | ['s090839188', 's626127615'] | [3060.0, 3060.0] | [18.0, 18.0] | [157, 163] |
p03030 | u404629709 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n=int(input())\ns=[]\n\nfor i in range(n):\n a,b=map(str,input().split())\n s.append([a,b,i+1])\n \n#s.sort(key=lambda x:(x[0],x[1]))\nprint(s)\n\nfor i in range(n):\n print(s[i][2])', 'n=int(input())\ns=[]\n\nfor i in range(n):\n a,b=map(str,input().split())\n b=int(b)\n s.append([a,100-b,i+1])\n \ns.sort(ke... | ['Wrong Answer', 'Accepted'] | ['s852305364', 's318744968'] | [3060.0, 3064.0] | [17.0, 19.0] | [175, 190] |
p03030 | u408262366 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\n\nnews = []\n\nfor i in range(N):\n hoge = input().split()\n news.append((str(hoge[0]),int(hoge[1])))\n \nhuga = sorted(range(len(news)), key=lambda k: news[k])\nfor i in range(len(huga)):\n print(huga[i])', 'N = int(input())\n\nnews = []\n\nfor i in range(N):\n hoge = input().split()\n news.a... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s276905532', 's714282580', 's873071399', 's979983161', 's471440262'] | [3060.0, 3064.0, 3060.0, 3064.0, 3064.0] | [17.0, 19.0, 18.0, 19.0, 19.0] | [217, 238, 173, 323, 313] |
p03030 | u408375121 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nlst = []\nfor i in range(n):\n s, p = input().split()\n p = int(p)\n lst.append((s, p, i+1))\nlst_sorted = sorted(lst, key:lambda x: (x[0], -x[1], x[2]))\nfor _, _, num in lst_sorted:\n print(num)\n', 'n = int(input())\nlst = []\nfor i in range(n):\n s, p = input().split()\n p = int(p)\n lst.... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s112242375', 's155443330', 's801229474'] | [8964.0, 8896.0, 9184.0] | [21.0, 20.0, 26.0] | [211, 204, 211] |
p03030 | u408760403 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N=int(input())\nl=[]\nfor i in range(N):\n s,p=input(i).split()\n l.append((s,-int(p),i+1))\n\nlist=sorted(l,key=lambda x:(x[0],x[1]))\nfor i in list:\n print(l[2])\n', 'N=int(input())\nl=[]\nfor i in range(N):\n s,p=input().split(" ")\n l.append((s,-int(p),i+1))\n \nl2=sorted(l,key=lambda x:(x[0],x[1]))\nfor l ... | ['Runtime Error', 'Accepted'] | ['s297853280', 's775363896'] | [3060.0, 3060.0] | [18.0, 17.0] | [160, 158] |
p03030 | u409403493 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N=int(input())\nrest=[]\nfor i in range(1,N+1):\n s,p=input().split()\n p=int(p)\n rest.append((s,-p,i))\n\n\n\nfor i in range(N):\n print(x[i][2])\n \n\n \n', 'N=int(input())\nrest=[]\nfor i in range(1,N+1):\n s,p=input().split()\n p=int(p)\n rest.append((s,-p,i))\n\n\nprint(x)\nfor i in r... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s595553177', 's993032936', 's211320334'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0] | [161, 169, 176] |
p03030 | u413960612 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nS = []\nP = []\nfor i in range(N):\n s,p = input().split()\n S.append(s)\n P.append(int(p))\nSset = sorted(list(set(S)))\n\ndict1 = {}\nfor i in range(N):\n dict1[P[i]] = S[i]\n\nprint(Sset)\n\nfor k in Sset:\n U = [i for i, j in dict1.items() if j == k]\n V = sorted(U,reverse=True... | ['Wrong Answer', 'Accepted'] | ['s244301663', 's629625934'] | [9192.0, 9184.0] | [24.0, 30.0] | [348, 335] |
p03030 | u414699019 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N=int(input())\nA=[]\n\nfor i in range(N):\n s,p=map(str,input().split())\n p=int(p)\n A.append([s,p,i+1])\n\nA.sort()\ni=0\nj=1\nprint(A)\n\nwhile i<N-1:\n if j>N-1:\n break\n if A[i][0]==A[i+1][0]:\n j=i+1\n if j<N:\n while A[i][0]==A[j][0]:\n j+=1\n ... | ['Wrong Answer', 'Accepted'] | ['s269612493', 's307232919'] | [3064.0, 3060.0] | [2104.0, 17.0] | [447, 161] |
p03030 | u416758623 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nls = []\nfor i in range(1,n+1):\n s,p = input().split()\n ls.append([i,s,int(p)])\nls.sort(key=lambda x:(x[1], x[2]))\nfor j in range(len(ls)):\n print(ls[j][0])\n', 'n = iint(input())\nls = []\nfor i in range(1,n+1):\n s,p = input().split()\n ls.append([i,s,int(p)])\nls.sort(key=lambda x:(x[1]... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s107922040', 's521197660', 's832502933'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [176, 176, 195] |
p03030 | u422037372 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nres_list = []\nfor i in range(n):\n a,b=input().split()\n res_list.append((a,int(b)))\npsorted_res_list = sorted(res_list, key=lambda x: x[1], reverse=True)\nsorted_res_list = sorted(psorted_res_list, key=lambda x: x[0])\nfor i in range(n):\n print(sorted_res_list.index(res_list[i]) + 1)', ... | ['Wrong Answer', 'Accepted'] | ['s127249756', 's963470440'] | [9192.0, 9188.0] | [26.0, 25.0] | [307, 307] |
p03030 | u422673384 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\n\ncities = []\nfor i in range(1, n+1):\n a,b = input().split()\n b = int(b)\n cities.append([i, a, b])\n \ncities = sorted(cities, key=lambda x : x[2])\nprint(cities)\ncities.reverse()\nprint(cities)\ncities = sorted(cities, key=lambda x: x[1])\nprint(cities)\nfor i in cities:\n print... | ['Wrong Answer', 'Accepted'] | ['s930703564', 's477770733'] | [3064.0, 3064.0] | [18.0, 17.0] | [309, 313] |
p03030 | u424241608 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['a = []\nn = int(input())\n\nfor i in range(1,n+1):\n name,score = map(int,input().split())\n a.append([name,-int(score),i])\n \na.sort()\nfor n,s,idx in a:\n print(idx)\n \n', 'a = []\nn = int(input())\n\nfor i in range(1,n+1):\n name,score =input().split()\n a.append([name,-int(score),i])\n \na.sort()\nfor n,... | ['Runtime Error', 'Accepted'] | ['s219942939', 's983475043'] | [2940.0, 3060.0] | [17.0, 17.0] | [166, 156] |
p03030 | u425317134 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nlst = []\nfor i in range(N):\n data = input().split(" ")\n lst.append([data[0], int(data[1]), i+1])\n \ns = sorted(lst, key = lambda x: (x[0], x[1]))\n \nfor i in s:\n print(i[2])', 'N = int(input())\nlst = []\nfor i in range(N):\n data = input().split(" ")\n lst.append([data[0], int(data[1]), ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s072540516', 's169990694', 's983955080', 's097245545'] | [3060.0, 3060.0, 3060.0, 3060.0] | [17.0, 17.0, 21.0, 17.0] | [191, 161, 189, 192] |
p03030 | u426108351 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nre = []\nfor i in range(N):\n re.append(list(input().split()) + [i+1])\nfor i in range(N):\n re[i][1] = int(re[i][1])\nre = sorted(re, key = lambda x: x[1], reverse = True)\nre = sorted(re, key = lambda x: x[0])\nprint(re)\nfor i in range(N):\n print(re[i][2])\n', 'N = int(input())\nre = []... | ['Wrong Answer', 'Accepted'] | ['s801248509', 's684272767'] | [3060.0, 3060.0] | [17.0, 18.0] | [278, 269] |
p03030 | u432853936 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['from operator import itemgetter\nn = int(input())\nsp = []\nfor i in range(n):\n s,p = input().split()\n tmp = [s,100-int(p),i]\n sp.append(tmp)\nprint(sp)\nsp = sorted(sp,key = itemgetter(0,1))\nprint(sp)\nfor i in range(n):\n print(sp[i][2]+1)\n', 'from operator import itemgetter\nn ... | ['Wrong Answer', 'Accepted'] | ['s297572025', 's303486197'] | [3060.0, 3060.0] | [18.0, 18.0] | [267, 247] |
p03030 | u434872492 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nnames = set()\ncitydict = dict()\nfor i in range(N):\n S, P = input().split()\n names.append(S)\n if S[i] in citydict:\n citydict[S].append((int(P),i))\n else:\n citydict[S] = [(int(P),i)]\n\nfor name in sorted(names):\n for point in sorted(citydict[name],reverse = True)... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s145390112', 's684843945', 's363532783'] | [2940.0, 3064.0, 3064.0] | [17.0, 18.0, 18.0] | [334, 331, 328] |
p03030 | u437744326 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['rest = dict()\nfor i in range(int(input())):\n name, score = input().split(" ")\n rest[i+1] = int(score)\n[print(i) for i, j in sorted(rest.items(), key=lambda x: x[1], reverse=True)]\n', 'source = []\nfor i in range(int(input())):\n name, score = input().split(" ")\n source.append([i+1, name, 100-int(sco... | ['Wrong Answer', 'Accepted'] | ['s954255494', 's884230000'] | [2940.0, 3060.0] | [17.0, 17.0] | [186, 192] |
p03030 | u441320782 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nx = [list(map(str,input().split())) for _ in range(N)]\nx_new=[]\nfor i in range(N):\n x_new.append([i+1,x[i][0],int(x[i][1])])\n \nx_new.sort(reverse=True,key=lambda x: x[2])\nx_new.sort(key=lambda x: x[1])\n\nfor j in range(N):\n x_new[j].append(j+1)\nx_new.sort(key=lambda x:x[0])\nfor u in ra... | ['Wrong Answer', 'Accepted'] | ['s623404335', 's277069227'] | [3064.0, 3064.0] | [18.0, 18.0] | [334, 252] |
p03030 | u442877951 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nSP = []\nfor i in range(N):\n S,P = input().split()\n P = int(P)\n SP.append(S,P,i+1)\nSP.sort()\nfor a,b,c in SP:\n print(c)', 'N = int(input())\nSP = [list(map(int,input().split()))for _ in range(N)]\nSP.sort()\nfor i in SP.values():\n print(i)\n ', 'N = int(input())\nSP = []\nfor i in range... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s132585302', 's298386723', 's621829798', 's921304752', 's371990844'] | [2940.0, 2940.0, 3060.0, 3060.0, 3060.0] | [17.0, 17.0, 16.0, 17.0, 17.0] | [139, 117, 148, 140, 142] |
p03030 | u446841069 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nres = []\n \nfor i in range(n):\n x, y = input().split()\n y = int(y)\n res.append((x, y, i))\n \nres.sort(key=lambda x: (x[0], -x[1]))\n \nfor x, y, i in sp:\n print(i+1)', 'n = int(input())\nres = []\n \nfor i in range(n):\n x, y = input().split()\n y = int(y)\n res.append((x,... | ['Runtime Error', 'Accepted'] | ['s355428079', 's631146004'] | [3060.0, 3060.0] | [17.0, 17.0] | [190, 191] |
p03030 | u448720391 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\ns = set() \na = [] \nb = dict() \nc = [] \n\nfor i in range(n):\n t = list(input().split())\n t[1] = int(t[1])\n t.append(i+1)\n a.append(t)\n s.add(t[0])\n\ns = list(s)\ns.sort()\n\nfor j in range(len(s)):\n b = dict()\n for k in range(n):\n ... | ['Wrong Answer', 'Accepted'] | ['s115531542', 's768251334'] | [3064.0, 3064.0] | [19.0, 19.0] | [534, 565] |
p03030 | u450904670 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nfor i in range(1, n+1):\n hoge = list(map(int, input().split()))\n hoge.append(i)\n r.append(hoge) \ntmp = sorted(r, key=lambda x:x[1], reverse=True)\nres = sorted(tmp, key=lambda x:x[0])\nfor arr in res:\n print(arr[2])', 'n = int(input())\nr = [list(map(int, input().split())).append(i+1) for i... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s151622995', 's182123019', 's808270802', 's822088530', 's157449363'] | [3060.0, 3060.0, 3060.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0, 17.0, 18.0] | [234, 206, 203, 241, 230] |
p03030 | u451017206 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nl = []\nfor i in range(N):\n a, b = input().split()\n l.append((i+1, a, int(b)))\n \nl = sorted(l, key=lambda x: (x[1],x[2]))\nfor i in l:\n print(i[0])', 'n = int(input())\nl = []\nfor i in range(n):\n a, b = input().split()\n l.append((i+1, a, int(b)))\n \nl = sorted(l, key=lambda x: (x[1],... | ['Runtime Error', 'Accepted'] | ['s382039479', 's849874474'] | [3060.0, 3060.0] | [18.0, 17.0] | [166, 168] |
p03030 | u451507303 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['import copy\n\nN = int(input())\n\nS = []\nP = []\nfor i in range(N):\n\ts, p = input().split()\n\tS.insert(i, s)\n\tP.insert(i, p)\nprint(S)\nprint(P)\n\nlist = []\nfor i in range(N):\n\ttemp = [S[i], int(P[i])]\n\tlist.append(temp)\n\nclone = copy.copy(list)\n\nclone.sort(key=lambda x:x[1], reverse=True)\nclone.sor... | ['Wrong Answer', 'Accepted'] | ['s271263706', 's931519283'] | [3444.0, 3444.0] | [25.0, 22.0] | [405, 361] |
p03030 | u454093752 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int( input() )\ncities = {}\nfor i in range(1, N+1):\n a,b = input().split() \n b = int(b)\n cities[a] = {"point":b,"number":i}\n \ncities = sorted(cities.items(),key = lambda x: x[1]["point"])\ncities.reverse()\ncities.sort()\nfor i in cities:\n print(i[1]["number"])', 'N = int( input() )\ncities ... | ['Wrong Answer', 'Accepted'] | ['s346754844', 's689161579'] | [3064.0, 3064.0] | [17.0, 20.0] | [276, 268] |
p03030 | u454735747 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\na = []\nfor i in range(n):\n s, p = input().split()\n\n p = int(p)\n\n a.append([i+1, s, p])\n\n\na.sort(key=lambda x:x[2], reverse=True)\n\na.sort(key=lambda x:x[1])\n\nfor i in range(n):\n print(book[i][0])', 'n = int(input())\na = []\nfor i in range(n):\n s, p = input().split()\n\n... | ['Runtime Error', 'Accepted'] | ['s274397979', 's927163388'] | [3060.0, 3060.0] | [17.0, 19.0] | [419, 423] |
p03030 | u456117140 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nlst = [list(input().split())+[i+1] for i in range(n)]\n\nprint(lst)\n\nlst = sorted(lst, key=lambda x: (x[0], -int(x[1])))\n\nfor i in range(0, len(lst)):\n print(i[2])', 'n = int(input())\nlst = [list(input().split())+[i+1] for i in range(n)]\n\n# print(lst)\n\nlst = sorted(lst, key=lambda x: (x... | ['Runtime Error', 'Accepted'] | ['s525277578', 's312249573'] | [3060.0, 3060.0] | [17.0, 17.0] | [181, 188] |
p03030 | u456566864 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nlst = []\nfor i in range(N):\n city, score = map(int, input().split())\n lst.append((city, score, i+1))\n\nlst.sort(key=lambda x: x[1], reverse=True)\nlst.sort(key=lambda x: x[0])\nfor tup in lst:\n c, s, i = tup\n print(i)', 'from sys import stdin\n\nN = int(input())\nlst = []\nfor i in range(N... | ['Runtime Error', 'Accepted'] | ['s837684673', 's134218454'] | [3060.0, 3060.0] | [17.0, 17.0] | [235, 273] |
p03030 | u463655976 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nS = sorted((map(lambda y: (y[0], -int(y[1]), x), input().split()) for x in range(1, N+1)))\nfor x in S:\n print(x[2])\n', 'N = int(input())\nS = sorted((list((lambda y: (y[0], -int(y[1]), x))(input().split()))) for x in range(1, N+1))\n\nfor x in S:\n print(x[2])\n'] | ['Runtime Error', 'Accepted'] | ['s495348360', 's923056073'] | [3060.0, 3060.0] | [17.0, 17.0] | [134, 138] |
p03030 | u464205401 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['from operator import itemgetter\nn=int(input())\ns=[input().split() for i in range(n)]\nt=sorted(s,key=lambda x:(x[0],-int(x[1])))\nprint(s)\nprint(t)\nfor i in s:\n print(t.index(i)+1)', 'from operator import itemgetter\nn=int(input())\ns=[input().split() for i in range(n)]\nt=sorted(s,key=lambda x:(x[0],-int(x[1])... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s059063425', 's127826306', 's254798850'] | [3060.0, 3060.0, 3060.0] | [18.0, 18.0, 18.0] | [179, 161, 160] |
p03030 | u468431843 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nSP = [input().split() for _ in range(N)]\nans = [0] * N\ntmp = sorted(SP, key=lambda x:(x[0],x[1]))\ncnt = 0\n\nfor s, p in SP:\n for i in range(N):\n if tmp[i][0]==s and tmp[i][1]==p:\n ans[cnt] = i\n cnt += 1\n\nfor i in range(N):\n print(ans[i])', 'N = int(input())\nans... | ['Wrong Answer', 'Accepted'] | ['s312116238', 's147202021'] | [3064.0, 3060.0] | [19.0, 17.0] | [280, 197] |
p03030 | u474925961 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n=int(input())\n\nlst=[]\nfor i in range(1, N+1):\n c,p=input().split()\n s=[i,c,int(p)]\n lst.append(s)\n\ns=sorted(lst,key=lambda x: (x[1], -(x[2])))\nfor i in s:\n print(i[0])\n', 'n=int(input())\n\nlst=[]\nfor i in range(1, N+1):\n c,p=input().split()\n s=[i,c,int(p)]\n lst.append(s)\n\ns=sor... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s275740039', 's351876748', 's007551008'] | [2940.0, 3060.0, 3060.0] | [17.0, 18.0, 18.0] | [181, 181, 181] |
p03030 | u483640741 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nS = []\n\nfor i in range(n):\n a, b = input().split()\n S.append([a, -int(b), i + 1])\n\n\nS.sort()\nprint(S)\n\nfor i in range(n):\n print(S[i][2])\n', 'n = int(input())\nS = []\n\nfor i in range(n):\n a, b = input().split()\n S.append([a, -int(b), i + 1])\n\n\nS.sort()\n\nfor i in r... | ['Wrong Answer', 'Accepted'] | ['s231466227', 's078149419'] | [3060.0, 3060.0] | [17.0, 17.0] | [261, 252] |
p03030 | u485566817 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nr = [input().split() for _ in range(n)]\nr_sort = r\nr_sort.sort(key=lambda x:x[1],reverse=True)\nr_sort.sort(key=lambda x:x[0])\nfor i in range(n):\n print(r_sort.index(r[i]) + 1)', 'n = int(input())\nr = [input().split() for _ in range(n)]\nr_sort = sorted(r, key=lambda x:x[1])\nr_sort = sorted... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s213971065', 's725064478', 's204154965'] | [3060.0, 3060.0, 3060.0] | [18.0, 17.0, 17.0] | [195, 166, 208] |
p03030 | u489762173 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\n\nX=[]\nfor i in range(N):\n X.append([str(j) for j in input().split()])\n\nsort1=sorted(X, key=lambda x:x[1], reverse=True)\nsort2=sorted(sort1, key=lambda x:x[0])\nprint(sort2)\n\nfor j in range(N):\n print(X.index(sort2[j])+1)', 'N = int(input())\n \nX=[]\nfor i in range(N):\n S, P = inp... | ['Wrong Answer', 'Accepted'] | ['s105577431', 's584092062'] | [3064.0, 3060.0] | [18.0, 17.0] | [242, 236] |
p03030 | u490084374 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nli = [list(map(input().split())) for _ in range(n)]\nprint(li)', 'n = int(input())\nli = [[a+1, input().split()] for a in range(n)]\nli = sorted(li, key=lambda x:(x[1][0],-1 * int(x[1][1])))\nfor l in li:\n print(l[0])'] | ['Runtime Error', 'Accepted'] | ['s608936736', 's240916166'] | [3188.0, 3060.0] | [18.0, 17.0] | [78, 149] |
p03030 | u492447501 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\n\nd = {}\nS = set()\n\nfor i in range(N):\n s,p = input().split()\n p = int(p)\n S.add(s)\n if s in d:\n d[s].append([p, i+1])\n continue\n d[s] = []\n d[s].append([p, i+1])\nprint(d)\nS = list(S)\nS.sort()\n\nfor key in S:\n L = d[key]\n\n L = sorted(L, reverse... | ['Wrong Answer', 'Accepted'] | ['s088210095', 's242016774'] | [3064.0, 3064.0] | [18.0, 18.0] | [340, 331] |
p03030 | u497046426 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['from operator import itemgetter\n\nN= int(input())\nlst = []\nfor i in range(N):\n s, p = input().split()\n lst.append([s, int(p), i])\nlst = sorted(lst, key=itemgetter(1), reverse=True)\nlst = sorted(lst, key=itemgetter(0))\nlst = [l + [i] for i, l in enumerate(lst)]\nlst = sorted(lst, key=itemgetter(2))\nfor ... | ['Wrong Answer', 'Accepted'] | ['s517551652', 's237593815'] | [3064.0, 3064.0] | [18.0, 18.0] | [334, 254] |
p03030 | u497310132 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input)\nfor i in range(n):\n std_in = input().split()\n dat.append([std_in[0], int(std_in[1])])\n\nfor i, e in enumerate(dat, start=1):\n e[1] = -e[1] \n e.append(i) \n \n sorted_list = sorted(dat) \n \nfor i, s in enumerate(sorted_list):\n \n print(sorted_list[i][2])\n', 'n = int(inpu... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s218741678', 's898275239', 's208311258'] | [8980.0, 9112.0, 8896.0] | [24.0, 27.0, 25.0] | [458, 454, 478] |
p03030 | u497952650 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nSP = []\nprint(SP)\nfor i in range(N):\n S,P = input().split()\n P = int(P)\n SP.append([S,-P,i+1])\n\nSP.sort()\n\nfor i in range(N):\n print(SP[i][2])', 'N = int(input())\nSP = []\n\nfor i in range(N):\n S,P = input().split()\n P = int(P)\n SP.append([S,-P,i+1])\n\nSP.sort()\n... | ['Wrong Answer', 'Accepted'] | ['s892043184', 's751788348'] | [3060.0, 3060.0] | [17.0, 18.0] | [171, 162] |
p03030 | u498620941 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nval = {}\nc = []\nfor i in range(n):\n a,b = input().split()\n if a in val:\n val[a].append(int(b))\n c.append(int(b))\n else : \n val[a] = [int(b)]\n c.append(int(b))\n\nval_1 = sorted(val.items(),key= lambda x:x[0])\n\nd = []\nfor i in range(len(val_1)):\n ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s207611057', 's528090201', 's743222839', 's589876235'] | [3064.0, 3064.0, 3064.0, 3064.0] | [19.0, 19.0, 20.0, 19.0] | [568, 565, 556, 559] |
p03030 | u500897254 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['from operator import itemgetter\nn = int(input())\narr_ = [[str(i) for i in input().split()] for _ in range(n)]\nfor i in range(n):\n arr_[i].append(i+1)\n arr_[i][1] = int(arr_[i][1])\n\narr_.sort(key=itemgetter(1), reverse=True)\narr_.sort(key=itemgetter(0))\nprint(arr_)\nfor i in range(n):\n print(arr_[i]... | ['Wrong Answer', 'Accepted'] | ['s611852586', 's866043208'] | [3064.0, 3064.0] | [18.0, 18.0] | [311, 299] |
p03030 | u502721867 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['\n#include <string>\n\n#include <algorithm>\n#include <sstream>\n\n#include <deque>\n#include <bitset>\n#include <iterator>\n#include <list>\n#include <stack>\n#include <map>\n#include <set>\n#include <functional>\n#include <numeric>\n#include <utility>\n#include <limits>\n#include <time.h>\n#include <math.h>\n#inclu... | ['Runtime Error', 'Accepted'] | ['s479405796', 's546964163'] | [3064.0, 3316.0] | [17.0, 22.0] | [3170, 377] |
p03030 | u503111914 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nA = []\nfor i in range(N):\n S, P = map(str, input().split())\n P = int(p)\n A.append([S, -P])\nA.sort()\nfor i in A:\n print(A.index(i)+1)\n', 'N = int(input())\nA = []\nfor i in range(N):\n S, P = map(str, input().split())\n P = int(P)\n A.append([S, -P])\nS = sorted(A)\nfor j... | ['Runtime Error', 'Accepted'] | ['s482058046', 's741422270'] | [9064.0, 9120.0] | [23.0, 27.0] | [162, 169] |
p03030 | u508355671 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\ndct=[]\nfor i in range(n):\n d = input().split()\n name = d[0]\n score = int(d[1])\n dct.append([name,-score,i+1])\n\ndct.sort()\nprint(dct)\nfor i in range(n):\n print(dct[i][2])', 'n = int(input())\ndct=[]\nfor i in range(n):\n d = input().split()\n name = d[0]\n score = int(d[1])\n dct.a... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s183389005', 's518308891', 's139642901'] | [3060.0, 3060.0, 3060.0] | [18.0, 17.0, 17.0] | [191, 179, 180] |
p03030 | u509688703 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\ndata = []\nans = []\nfor i in range(1, N+1):\n city, score = input().split()\n score = int(score)\n data.append([city, score, i])\ncity_list = [x[0] for x in data]\nscore_list = [x[1] for x in data]\nnum_list = [x[2] for x in data]\ncity_unique = sorted(set(city_list))\n\nfor city_u in city_uniqu... | ['Wrong Answer', 'Accepted'] | ['s423566291', 's613599111'] | [9172.0, 9056.0] | [26.0, 28.0] | [510, 494] |
p03030 | u509739538 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['from operator import itemgetter\nimport copy\n\ndata = []\n\n\nfor n in range(int(input())):\n\tdata.append(input().split(" "))\n\n\nfor n in range(len(data)):\n\tdata[n][1] = int(data[n][1])\n\nbase = copy.deepcopy(data)\n\nprint(data)\n\n\n\ndata.sort(key=itemgetter(1),reverse=True)\n\nprint(data)\n\ndata.sort(key=... | ['Wrong Answer', 'Accepted'] | ['s926328737', 's744101652'] | [3560.0, 3560.0] | [23.0, 30.0] | [378, 337] |
p03030 | u509830642 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ["import sys\ninput = sys.stdin.readline\nimport numpy as np\ndef print_ans(N, ar):\n \n ans = sorted(ar)\n for a in ans:\n print(a[2])\n\nif __name__ == '__main__':\n N = int(input().rstrip())\n ar = []\n for i in range(N):\n s, p = input().rstrip().split()\n n = int(n)\n ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s169464308', 's961706352', 's637625307'] | [12428.0, 20020.0, 12468.0] | [151.0, 264.0, 150.0] | [855, 855, 855] |
p03030 | u513081876 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\n\narr = []\nfor i in range(N):\n s, p = input().split()\n p = int(p)\n arr.append((s, -p, i + 1))\n\narr.sort()\nfor s, p, i in arr:\n print(i)\n\nfor s, p, i in arr:\n print(s, p)', 'N = int(input())\n\narr = []\nfor i in range(N):\n s, p = input().split()\n p = int(p)\n arr... | ['Wrong Answer', 'Accepted'] | ['s335932051', 's958524472'] | [3060.0, 3060.0] | [17.0, 18.0] | [200, 163] |
p03030 | u519832983 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nS = []\nP = []\nNum = []\nfor i in range(N):\n s, p = input().split()\n S.append(s)\n P.append(int(p))\n Num.append(i+1)\nprint(Num)\nfor i in range(N):\n for m in range(i):\n if S[m] > S[i] or (S[m] == S[i] and P[i] > P[m]):\n S[m], S[i] = S[i], S[m]\n P[m], P[i] = P[i], P[m]\n ... | ['Wrong Answer', 'Accepted'] | ['s457717899', 's906686080'] | [3064.0, 3064.0] | [21.0, 21.0] | [398, 374] |
p03030 | u519939795 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n=int(input())\nsp=[]\nfor i in range(n):\n a=list(map(str,input().split()))\n a.append(i+1)\n sp.append(a)\n\nsp=sorted(sp,key=lambda x:int(x[1]),reverse=True)\n\n\nfor i in range(len(sp)):\n print(sp[i][2])', 'n=int(input())\nsp=[]\nfor i in range(n):\n a=list(map(str,input().split()))\n a.append(... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s289118330', 's541183876', 's527573537'] | [3060.0, 3060.0, 3060.0] | [18.0, 18.0, 17.0] | [209, 191, 133] |
p03030 | u521039434 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nlst = []\nfor i in range(n):\n l = input().split()\n lst.append([l[0], int(l[1]), i+1])\nsorted_lst = sorted(lst, reverse=True)\nprint(sorted_lst)\nwhile sorted_lst != []:\n p = sorted_lst.pop()\n temp = []\n while sorted_lst != [] and p[0] == sorted_lst[-1][0]:\n temp.append(s... | ['Wrong Answer', 'Accepted'] | ['s854869499', 's178185603'] | [3064.0, 3064.0] | [18.0, 17.0] | [390, 372] |
p03030 | u522266410 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\na =[[input().split() ,i+1] for i in range(n)]\nb = sorted(a, key=lambda x:x[1], reverse=True)\nb = sorted(b, key=lambda x:x[0])\nfor i in range(n):\n print(b[i][1])', 'n = int(input())\na=[]\nfor i in range(n):\n x,y = input().split()\n a.append([x,-int(y),i+1])\na.sort()\nfor i in range(n):\n p... | ['Wrong Answer', 'Accepted'] | ['s718794758', 's376988413'] | [3060.0, 3060.0] | [18.0, 17.0] | [178, 139] |
p03030 | u522293645 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nrc = [list(map(str,input().split())) for i in range(n)]\n\nrc = (list(enumerate(rc)))\n\nrc.sort(key=lambda x:x[1][1], reverse=True)\nrc.sort(key=lambda x:x[1][0], reverse=False)\n\nprint(rc)\nfor i in rc:\n print(i[0]+1)', 'n = int(input())\nrc = [list(map(str,input().split())) for i in range(n)... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s460846837', 's545950797', 's114067787'] | [3064.0, 3060.0, 3064.0] | [18.0, 17.0, 17.0] | [232, 222, 251] |
p03030 | u522506260 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nrestaurants_list = []\nfor _ in range(n):\n s, p = input().split()\n restaurants_list.append([s, p, _])\nrestaurants_list.sort()\nfor _ in range(n):\n print(restaurants_list[2])\n \n \n', 'n = int(input())\nrestaurants_list = []\nfor _ in range(n):\n s, p = input().split()\n restaurants_list.... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s138622513', 's660650006', 's402518821'] | [3060.0, 3060.0, 3060.0] | [17.0, 18.0, 18.0] | [198, 220, 209] |
p03030 | u523087093 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nrestaurants = []\n\nfor _ in range(N):\n name, score = map(str, input().split())\n restaurants.append([name, int(score)])\n\nsorted_restaurants = restaurants.copy()\nsorted_restaurants = sorted(sorted_restaurants, key=lambda x: (x[0], -x[1]))\n\nfor i in range(N):\n name = restaurants[i][0]... | ['Wrong Answer', 'Accepted'] | ['s945333679', 's237885559'] | [9224.0, 9124.0] | [27.0, 26.0] | [554, 320] |
p03030 | u526094365 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['from operator import itemgetter\nN = int(input())\nS = []\nP = []\nNum = []\nfor _ in range(N):\n S1, P1 = [_ for _ in input().split()]\n Num.append(_)\n S.append(S1)\n P.append(P1)\nP = [int(_) for _ in P]\n\nc = zip(Num, S, P)\nc = sorted(c, key=itemgetter(2))\nc = sorted(c, key=itemgetter(1))\nNum, S2,... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s109082462', 's548161504', 's763428727'] | [3064.0, 3064.0, 3064.0] | [18.0, 18.0, 19.0] | [346, 344, 360] |
p03030 | u528388170 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nsp = []\nfor i in range(n):\n sp.append(input().split())\nfor i in range(n):\n sp[i][1] = int(sp[i][1])\nfor i in range(n):\n sp[i].append(i+1)\nsp.sort()\nstart = 0\nsp2=[]\nfor i in range(n-1):\n if sp[i][0] != sp[i+1][0]:\n sp2 = sp2+sorted(sp[start:i+1]... | ['Wrong Answer', 'Accepted'] | ['s271620336', 's340973976'] | [3064.0, 3064.0] | [18.0, 18.0] | [488, 477] |
p03030 | u529012223 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['import numpy as np\n\nN = int(input())\nR = []\nfor i in range(N):\n s, p = input().split()\n R.append([i, s, int(p)])\n \nR_sort = sorted(R, key=lambda x : (x[1], x[2]))\n\nfor city in R_sort:\n print(city[0])\n\n', 'import numpy as np\n\nN = int(input())\nR = []\nfor i in range(N):\n s, p = input().s... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s704603130', 's979827136', 's882077366'] | [12504.0, 12464.0, 12464.0] | [150.0, 154.0, 148.0] | [213, 215, 214] |
p03030 | u529106146 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nS = [input().split() for i in range(N)]\nS_P = S[:]\nfor i in range(N):\n S_P[i][1] = -1*int(S_P[i][1]) \nS_P.sort()\nfor i in range(N):\n S_P[i][1] = -1*int(S_P[i][1])\nfor i in range(N):\n print(S_P.index(S[i])+1)', 'N = int(input())\nS = [input().split() for i in range(N)]\nS_P = S[:]\n... | ['Wrong Answer', 'Accepted'] | ['s382398139', 's286165851'] | [3064.0, 3064.0] | [17.0, 18.0] | [234, 234] |
p03030 | u530253034 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['dict_SP = {}\nN = int(input())\n\nfor i in range(N):\n S, P = input().split()\n dict_SP[i] = S + "_" +str(100 - int(P))\n \nsorted_dictSP = sorted(dict_SP.items(), key = lambda x: x[1])\n\nfor k in sorted_dictSP:\n print(k[0])\n ', 'list_SP = []\nN = int(input())\n\nfor i in range(N):\n S, P = in... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s868889357', 's950309414', 's345722042'] | [3060.0, 2940.0, 3060.0] | [18.0, 17.0, 17.0] | [238, 177, 197] |
p03030 | u533885955 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nSP = []\nfor i in range(N):\n s,p = map(str,input().split())\n pint = int(p)\n pint = -pint\n p = str(pint)\n SP.append([s,p,str(i+1)])\nSP.sort()\nfor i in range(N):\n print(int(SP[i][2]))', 'N = int(input())\nSP = []\nfor i in range(N):\n s,p = map(str,input().split())\n pint = int(p)\n p... | ['Wrong Answer', 'Accepted'] | ['s445293719', 's172793007'] | [3060.0, 3060.0] | [24.0, 17.0] | [203, 183] |
p03030 | u534223360 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\n\nrestrunt=[]\n\nfor i in range(n):\n a, b = input().split()\n restrunt.append( {"s":a, "t":int(b), "nom":i+1} )\n\nrestrunt.sort(key=lambda res:res["p"], reverse=True)\nrestrunt.sort(key=lambda res: res["s"])\nfor res in restrunt:\n print(res["nom"])\n', 'n = int(input())\n\nrestrunt=[]\n\... | ['Runtime Error', 'Accepted'] | ['s674766945', 's122205897'] | [3060.0, 3060.0] | [18.0, 18.0] | [268, 269] |
p03030 | u534308356 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nrestaurant = [list(map(str, input().split())) for _ in range(n)]\n\nfor i in range(n):\n restaurant[i][1] = int(restaurant[i][1])\n restaurant[i].append(i+1)\n\n# print(*restaurant)\n\nrestaurant.sort(key=lambda q: -q[1])\n\nfor i in range(n):\n print(restaurant[i][2])\n', 'n = int(input())... | ['Wrong Answer', 'Accepted'] | ['s547825619', 's830114845'] | [3060.0, 3060.0] | [18.0, 18.0] | [285, 304] |
p03030 | u543954314 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nl = []\nfor i in range(1,n+1):\n s,p = input(),split()\n l.append(s,-int(p),i)\nl.sort()\nfor x in l:\n print(x[2])\n ', 'n = int(input())\nl = []\nfor i in range(1,n+1):\n s,p = input().split()\n l.append((s,-int(p),i))\nl.sort()\nfor x in l:\n print(x[2])'] | ['Runtime Error', 'Accepted'] | ['s536898751', 's894794713'] | [2940.0, 3060.0] | [17.0, 17.0] | [137, 131] |
p03030 | u544272759 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nsp = []\nfor i in range(n):\n s, p = map(int,input().split())\n sp.append([s, int(p), i+1])\nsp.sort(key=lambda x:x[1], reverse = True)\nsp.sort(key=lambda x:x[0])\nfor e in sp:\n print(e[2])', 'n = int(input())\nsp = []\nfor i in range(n):\n s,p = map(str,input().split())\n sp.append([s,in... | ['Runtime Error', 'Accepted'] | ['s802536617', 's367313753'] | [9196.0, 9116.0] | [21.0, 27.0] | [204, 208] |
p03030 | u546686251 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\nl = []\nfor i in range(N):\n a = input().split()\n l.append([a[0], a[1], i + 1])\nl.sort()\nfor i in range(N):\n print(l[i][2])\n', 'N = int(input())\nl = []\nfor i in range(N):\n a = input().split()\n l.append([a[0], a[1], i + 1])\nl.sort()\nfor i in range(N):\n print(a[i][2])', '... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s480216383', 's949072910', 's759556580'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 19.0] | [148, 147, 159] |
p03030 | u548163222 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N=int(input())\nSP=[]\nfor i in range(N):\n a, b=input().split()\n SP+=[[a,int(b)]]\nSP.sort()\nfor i in range(N):\n print(SP[i][0],SP[i][1])', 'N=int(input())\nSP=[]\nfor i in range(N):\n a, b=input().split()\n SP+=[[a,int(b)]]\nSP2=sorted(range(N), key=lambda x: (SP[x][0], -SP[x][1]))\nfor i in range(N):\n pr... | ['Wrong Answer', 'Accepted'] | ['s376764676', 's929365194'] | [3060.0, 3060.0] | [17.0, 17.0] | [137, 176] |
p03030 | u548545174 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nres = []\nfor i in range(n):\n s, p = input().split()\n p = int(p)\n res.append([i+1, s, p])\n\nres = sorted(res, key=lambda x: (x[2], x[1]), reverse=True)\nfor r in res:\n print(r[0])', 'n = int(input())\nres = []\nfor i in range(n):\n s, p = input().split()\n p = int(p)\n res.... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s477850532', 's556138112', 's705511044'] | [3060.0, 3064.0, 3060.0] | [17.0, 18.0, 17.0] | [205, 205, 248] |
p03030 | u549497563 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\nx = [list(map(str,input().split())) for i in range(n)]\nfor i in range(n):\n x[i][1]=int(x[i][1])\na = [i for i in range(1,n+1)]\na = sorted(a,key=lambda y:(x[y-1][0],x[y-1][1]),reverse=True)\nfor i in a:\n print(i)', 'n = int(input())\nx = [list(map(str,input().split())) for i in range(n)]\nf... | ['Wrong Answer', 'Accepted'] | ['s166960776', 's116490523'] | [3060.0, 3064.0] | [18.0, 18.0] | [232, 220] |
p03030 | u550294762 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['number = int(input())\nmy_set = set()\nfor i in range(number):\n input_line = raw_input()\n splitted_line = input_line.split(" ")\n my_set.add((splitted_line[0], - int(splitted_line[1]), i+1))\n\nmy_sorted = sorted(my_set)\n\nfor item in my_sorted:\n print(item[2])\n', 'number = int(input())\nmy_set = set... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s173703435', 's175132792', 's196940145', 's571833994', 's723567294', 's860057941', 's889774768', 's994707563', 's918345408'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 3060.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 19.0, 17.0, 17.0, 18.0] | [268, 268, 272, 273, 268, 268, 272, 978, 264] |
p03030 | u551437236 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['n = int(input())\n\ns = [list(map(str, input().split())) for _ in range(n)]\nfor row in s:\n row[1] = int(row[1])\nss = sorted(s)\nprint(ss)\nins = 0\nans = list()\ntmp = 0\nfor i in ss:\n if i[0] == tmp:\n ans.insert(ins,i)\n else:\n ins = len(ans)\n ans.append(i)\n tmp = i[0]\np... | ['Wrong Answer', 'Accepted'] | ['s573712967', 's455949388'] | [9040.0, 9140.0] | [29.0, 28.0] | [311, 328] |
p03030 | u554954744 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['from operator import itemgetter\nN=int(input())\nR=[]\nfor i in range(N):\n s,p=input().split()\n p=int(p)\n R.append([s,p])\n\nsorted_R=sorted(R,key = itemgetter(1),reverse=True)\nsorted_R=sorted(sorted_R, key = itemgetter(0))\nprint(sorted_R)\nfor i in range(len(R)):\n for j in range(len(R)):\n i... | ['Wrong Answer', 'Accepted'] | ['s401675267', 's676755938'] | [3064.0, 3064.0] | [20.0, 19.0] | [348, 333] |
p03030 | u556589653 | 2,000 | 1,048,576 | You have decided to write a book introducing good restaurants. There are N restaurants that you want to introduce: Restaurant 1, Restaurant 2, ..., Restaurant N. Restaurant i is in city S_i, and your assessment score of that restaurant on a 100-point scale is P_i. No two restaurants have the same score. You want to in... | ['N = int(input())\n\nk = []\ncity = []\npoint = []\npoint_city = 500\nfor i in range(N):\n k.append(list(map(str,input().split())))\n\nfor i in range(N):\n city.append(k[i][0])\nfor i in range(N):\n point.append(0)\ncity = set(city)\nsorted(city)\nprint(city)\ncity = list(city)\nfor i in range(N):\n point[... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s021395526', 's174283722', 's227233523', 's532328876', 's925157038'] | [3064.0, 3064.0, 2940.0, 3064.0, 9012.0] | [19.0, 19.0, 17.0, 22.0, 24.0] | [683, 683, 154, 683, 147] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.