Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringclasses
1 value
instruction
stringclasses
206 values
trajectory
listlengths
2
137
length
int64
2
137
public_tests
listlengths
1
6
generated_tests
listlengths
4
100
0/::0
There are X+Y+Z people, conveniently numbered 1 through X+Y+Z. Person i has A_i gold coins, B_i silver coins and C_i bronze coins. Snuke is thinking of getting gold coins from X of those people, silver coins from Y of the people and bronze coins from Z of the people. It is not possible to get two or more different col...
[ "\n", "from heapq import heappushpop\nimport sys\nX, Y, Z = map(int, sys.stdin.readline().split())\nN = X+Y+Z\nABC = [list(map(int, sys.stdin.readline().split())) for _ in range(N)]\nABC.sort(key = lambda x: x[0] - x[1], reverse = True)\n\nGB = [None]*N\nQ = [a - c for a, _, c in ABC[:X]]\nQ.sort()\n\n\nQ.sort()\...
14
[ { "input": "1 2 1\n2 4 4\n3 2 1\n7 6 7\n5 2 3", "output": "18" }, { "input": "6 2 4\n33189 87907 277349742\n71616 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 88414 103962455\n7953 69657 699253752\n44255 98144 468443709\n2332 42580 ...
[ { "input": "1 2 1\n2 4 4\n0 2 1\n7 6 7\n5 2 3", "output": "18\n" }, { "input": "6 2 4\n33189 87907 277349742\n71616 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 88414 103962455\n7953 69657 699253752\n42489 98144 468443709\n2332 4258...
0/::0
There are X+Y+Z people, conveniently numbered 1 through X+Y+Z. Person i has A_i gold coins, B_i silver coins and C_i bronze coins. Snuke is thinking of getting gold coins from X of those people, silver coins from Y of the people and bronze coins from Z of the people. It is not possible to get two or more different col...
[ "\n", "from heapq import*;X,Y,Z=map(int,input().split());N=X+Y+Z;A=[];q1=[];q2=[];L=[0];R=[0]\n", "from heapq import*;X,Y,Z=map(int,input().split());N=X+Y+Z;A=[];q1=[];q2=[];L=[0];R=[0]\nfor _ in[0]*N:A.append([int(e)for e in input().split()])\n", "from heapq import*;X,Y,Z=map(int,input().split());N=X+Y+Z;A=[...
9
[ { "input": "1 2 1\n2 4 4\n3 2 1\n7 6 7\n5 2 3", "output": "18" }, { "input": "6 2 4\n33189 87907 277349742\n71616 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 88414 103962455\n7953 69657 699253752\n44255 98144 468443709\n2332 42580 ...
[ { "input": "1 2 1\n2 4 4\n0 2 1\n7 6 7\n5 2 3", "output": "18\n" }, { "input": "6 2 4\n33189 87907 277349742\n71616 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 88414 103962455\n7953 69657 699253752\n42489 98144 468443709\n2332 4258...
0/::0
There are X+Y+Z people, conveniently numbered 1 through X+Y+Z. Person i has A_i gold coins, B_i silver coins and C_i bronze coins. Snuke is thinking of getting gold coins from X of those people, silver coins from Y of the people and bronze coins from Z of the people. It is not possible to get two or more different col...
[ "\n", "uq = []\ncy = 0\n\n\nlq = []\ncx = 0\n", "import sys\n\n\nuq = []\ncy = 0\n\n\nlq = []\ncx = 0\n", "import sys\nfrom heapq import heappush, heappushpop\n\n\nuq = []\ncy = 0\n\n\nlq = []\ncx = 0\n", "import sys\nfrom heapq import heappush, heappushpop\nX, Y, Z = map(int, input().split())\n\n\nuq = []\...
19
[ { "input": "1 2 1\n2 4 4\n3 2 1\n7 6 7\n5 2 3", "output": "18" }, { "input": "6 2 4\n33189 87907 277349742\n71616 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 88414 103962455\n7953 69657 699253752\n44255 98144 468443709\n2332 42580 ...
[ { "input": "1 2 1\n2 4 4\n0 2 1\n7 6 7\n5 2 3", "output": "18\n" }, { "input": "6 2 4\n33189 87907 277349742\n71616 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 88414 103962455\n7953 69657 699253752\n42489 98144 468443709\n2332 4258...
0/::0
There are X+Y+Z people, conveniently numbered 1 through X+Y+Z. Person i has A_i gold coins, B_i silver coins and C_i bronze coins. Snuke is thinking of getting gold coins from X of those people, silver coins from Y of the people and bronze coins from Z of the people. It is not possible to get two or more different col...
[ "\n", "from heapq import*\nX,Y,Z=map(int,input().split());N=X+Y+Z;A=[];q1=[];q2=[];L=[0];R=[0]\n", "from heapq import*\nX,Y,Z=map(int,input().split());N=X+Y+Z;A=[];q1=[];q2=[];L=[0];R=[0]\nfor _ in[0]*N:A.append([int(e)for e in input().split()])\n", "from heapq import*\nX,Y,Z=map(int,input().split());N=X+Y+Z;...
9
[ { "input": "1 2 1\n2 4 4\n3 2 1\n7 6 7\n5 2 3", "output": "18" }, { "input": "6 2 4\n33189 87907 277349742\n71616 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 88414 103962455\n7953 69657 699253752\n44255 98144 468443709\n2332 42580 ...
[ { "input": "1 2 1\n2 4 4\n0 2 1\n7 6 7\n5 2 3", "output": "18\n" }, { "input": "6 2 4\n33189 87907 277349742\n71616 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 88414 103962455\n7953 69657 699253752\n42489 98144 468443709\n2332 4258...
0/::0
There are X+Y+Z people, conveniently numbered 1 through X+Y+Z. Person i has A_i gold coins, B_i silver coins and C_i bronze coins. Snuke is thinking of getting gold coins from X of those people, silver coins from Y of the people and bronze coins from Z of the people. It is not possible to get two or more different col...
[ "\n", "cy=0\nhq=[]\n\nLy=[cy]\n\ncx=0\nhq=[]\n\nLx=[cx]\n", "import sys\n\n\ncy=0\nhq=[]\n\nLy=[cy]\n\ncx=0\nhq=[]\n\nLx=[cx]\n", "import sys\ninput=sys.stdin.readline\n\n\ncy=0\nhq=[]\n\nLy=[cy]\n\ncx=0\nhq=[]\n\nLx=[cx]\n", "import sys\ninput=sys.stdin.readline\nfrom heapq import heappush,heappushpop\n\n\...
17
[ { "input": "1 2 1\n2 4 4\n3 2 1\n7 6 7\n5 2 3", "output": "18" }, { "input": "6 2 4\n33189 87907 277349742\n71616 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 88414 103962455\n7953 69657 699253752\n44255 98144 468443709\n2332 42580 ...
[ { "input": "1 2 1\n2 4 4\n0 2 1\n7 6 7\n5 2 3", "output": "18\n" }, { "input": "6 2 4\n33189 87907 277349742\n71616 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 88414 103962455\n7953 69657 699253752\n42489 98144 468443709\n2332 4258...
0/::0
There are X+Y+Z people, conveniently numbered 1 through X+Y+Z. Person i has A_i gold coins, B_i silver coins and C_i bronze coins. Snuke is thinking of getting gold coins from X of those people, silver coins from Y of the people and bronze coins from Z of the people. It is not possible to get two or more different col...
[ "\n", "uq = []\ncy = 0\n\n\nlq = []\ncx = 0\n", "import sys\n\n\nuq = []\ncy = 0\n\n\nlq = []\ncx = 0\n", "import sys\nfrom heapq import heappush, heappushpop\n\n\nuq = []\ncy = 0\n\n\nlq = []\ncx = 0\n", "import sys\nfrom heapq import heappush, heappushpop\nX, Y, Z = map(int, input().split())\n\n\nuq = []\...
17
[ { "input": "1 2 1\n2 4 4\n3 2 1\n7 6 7\n5 2 3", "output": "18" }, { "input": "6 2 4\n33189 87907 277349742\n71616 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 88414 103962455\n7953 69657 699253752\n44255 98144 468443709\n2332 42580 ...
[ { "input": "1 2 1\n2 4 4\n0 2 1\n7 6 7\n5 2 3", "output": "18\n" }, { "input": "6 2 4\n33189 87907 277349742\n71616 46764 575306520\n8801 53151 327161251\n58589 4337 796697686\n66854 17565 289910583\n50598 35195 478112689\n13919 88414 103962455\n7953 69657 699253752\n42489 98144 468443709\n2332 4258...
0/::0
"There are X+Y+Z people, conveniently numbered 1 through X+Y+Z. Person i has A_i gold coins, B_i sil(...TRUNCATED)
["\n","ABC = []\n\n\n#金側\n\nq = []\n\nnow = 0\n\n\n#銀側\n\n\nq = []\n\nnow = 0\n\n\n#print (A(...TRUNCATED)
35
[{"input":"1 2 1\n2 4 4\n3 2 1\n7 6 7\n5 2 3","output":"18"},{"input":"6 2 4\n33189 87907 277349742\(...TRUNCATED)
[{"input":"1 2 1\n2 4 4\n0 2 1\n7 6 7\n5 2 3","output":"18\n"},{"input":"6 2 4\n33189 87907 27734974(...TRUNCATED)
0/::0
"There are X+Y+Z people, conveniently numbered 1 through X+Y+Z. Person i has A_i gold coins, B_i sil(...TRUNCATED)
["\n","gsb = []\n","import heapq\n\ngsb = []\n","import heapq\nx, y, z = [int(item) for item in inpu(...TRUNCATED)
29
[{"input":"1 2 1\n2 4 4\n3 2 1\n7 6 7\n5 2 3","output":"18"},{"input":"6 2 4\n33189 87907 277349742\(...TRUNCATED)
[{"input":"1 2 1\n2 4 4\n0 2 1\n7 6 7\n5 2 3","output":"18\n"},{"input":"6 2 4\n33189 87907 27734974(...TRUNCATED)
0/::0
"There are X+Y+Z people, conveniently numbered 1 through X+Y+Z. Person i has A_i gold coins, B_i sil(...TRUNCATED)
["\n","import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy(...TRUNCATED)
38
[{"input":"1 2 1\n2 4 4\n3 2 1\n7 6 7\n5 2 3","output":"18"},{"input":"6 2 4\n33189 87907 277349742\(...TRUNCATED)
[{"input":"1 2 1\n2 4 4\n0 2 1\n7 6 7\n5 2 3","output":"18\n"},{"input":"6 2 4\n33189 87907 27734974(...TRUNCATED)
0/::0
"There are X+Y+Z people, conveniently numbered 1 through X+Y+Z. Person i has A_i gold coins, B_i sil(...TRUNCATED)
["\n","import heapq\n","import heapq\n\n\ndef main():\n \n \n # print(lsum)\n \n \n (...TRUNCATED)
24
[{"input":"1 2 1\n2 4 4\n3 2 1\n7 6 7\n5 2 3","output":"18"},{"input":"6 2 4\n33189 87907 277349742\(...TRUNCATED)
[{"input":"1 2 1\n2 4 4\n0 2 1\n7 6 7\n5 2 3","output":"18\n"},{"input":"6 2 4\n33189 87907 27734974(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
7