Dataset Viewer
Auto-converted to Parquet Duplicate
problem_id
int64
0
49
trajectory_id
int64
0
31
question
stringclasses
50 values
messages
stringlengths
4.66k
91.2k
num_turns
int64
2
5
final_reward
float64
0
1
terminated
bool
1 class
truncated
bool
2 classes
interactions
stringlengths
2
24k
tests
stringclasses
50 values
is_successful
bool
2 classes
rendered
stringlengths
5.33k
89.8k
0
0
This is a harder version of the problem. In this version $n \le 500\,000$ The outskirts of the capital are being actively built up in Berland. The company "Kernel Panic" manages the construction of a residential complex of skyscrapers in New Berlskva. All skyscrapers are built along the highway. It is known that the c...
[{"role": "system", "content": "You are a helpful coding assistant.\nYou are allowed to interact with the Python interpreter.\nYou can wrap your code in <interact></interact>, and I will run it for you and give you the output.\nMake sure that you define the inputs (or hardcode inputs) yourself when you give me <interac...
3
1
true
false
[{"code": "n = 5\nm = [1, 2, 3, 2, 1]\nbest_total = 0\nbest_a = [0] * n\n\nfor peak in range(n):\n a = [0] * n\n \n # Left part: non-decreasing up to peak\n for i in range(peak + 1):\n if i == 0:\n a[i] = m[i]\n else:\n a[i] = min(m[i], a[i-1])\n \n # Right part: no...
{"inputs": ["5\n1 2 3 2 1\n", "3\n10 6 8\n", "7\n1 2 1 2 1 2 1\n", "7\n1 2 1 2 1 3 1\n", "5\n1 1 4 2 2\n", "6\n1 3 4 3 5 4\n", "1\n1\n", "7\n6 2 2 6 5 7 7\n", "7\n2 4 1 2 3 1 2\n", "7\n2 1 2 1 2 2 1\n", "7\n5 2 4 2 4 1 1\n", "6\n3 2 1 7 3 7\n", "100\n82 51 81 14 37 17 78 92 64 15 8 86 89 8 87 77 66 10 15 12 100 25 92 4...
true
================================================================================ Question: This is a harder version of the problem. In this v... Reward: 1.00 | Turns: 3 | Terminated: True | Truncated: False ================================================================================ [SYSTEM] You are a helpful codi...
0
1
This is a harder version of the problem. In this version $n \le 500\,000$ The outskirts of the capital are being actively built up in Berland. The company "Kernel Panic" manages the construction of a residential complex of skyscrapers in New Berlskva. All skyscrapers are built along the highway. It is known that the c...
[{"role": "system", "content": "You are a helpful coding assistant.\nYou are allowed to interact with the Python interpreter.\nYou can wrap your code in <interact></interact>, and I will run it for you and give you the output.\nMake sure that you define the inputs (or hardcode inputs) yourself when you give me <interac...
4
0.076923
true
false
[{"code": "n = int(input())\nm = list(map(int, input().split()))\n\n# Try non-decreasing sequence\na = []\ncur = 0\nfor i in range(n):\n cur = min(m[i], cur + 1)\n a.append(cur)\n\n# Try non-increasing sequence\nb = []\ncur = m[0]\nfor i in range(n):\n cur = min(m[i], cur)\n b.append(cur)\n\n# Choose the on...
{"inputs": ["5\n1 2 3 2 1\n", "3\n10 6 8\n", "7\n1 2 1 2 1 2 1\n", "7\n1 2 1 2 1 3 1\n", "5\n1 1 4 2 2\n", "6\n1 3 4 3 5 4\n", "1\n1\n", "7\n6 2 2 6 5 7 7\n", "7\n2 4 1 2 3 1 2\n", "7\n2 1 2 1 2 2 1\n", "7\n5 2 4 2 4 1 1\n", "6\n3 2 1 7 3 7\n", "100\n82 51 81 14 37 17 78 92 64 15 8 86 89 8 87 77 66 10 15 12 100 25 92 4...
true
================================================================================ Question: This is a harder version of the problem. In this v... Reward: 0.08 | Turns: 4 | Terminated: True | Truncated: False ================================================================================ [SYSTEM] You are a helpful codi...
0
2
"This is a harder version of the problem. In this version $n \\le 500\\,000$\n\nThe outskirts of the(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
4
0.076923
true
false
"[{\"code\": \"n = 5\\nm = [1, 2, 3, 2, 1]\\nbest_a = [0] * n\\nmax_sum = 0\\n\\nfor peak in range(n(...TRUNCATED)
"{\"inputs\": [\"5\\n1 2 3 2 1\\n\", \"3\\n10 6 8\\n\", \"7\\n1 2 1 2 1 2 1\\n\", \"7\\n1 2 1 2 1 3 (...TRUNCATED)
true
"================================================================================\nQuestion: This is(...TRUNCATED)
0
3
"This is a harder version of the problem. In this version $n \\le 500\\,000$\n\nThe outskirts of the(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
4
0.769231
true
false
"[{\"code\": \"n = 5\\nm = [1, 2, 3, 2, 1]\\n\\nbest_result = []\\nmax_total = 0\\n\\n# Try each pos(...TRUNCATED)
"{\"inputs\": [\"5\\n1 2 3 2 1\\n\", \"3\\n10 6 8\\n\", \"7\\n1 2 1 2 1 2 1\\n\", \"7\\n1 2 1 2 1 3 (...TRUNCATED)
true
"================================================================================\nQuestion: This is(...TRUNCATED)
0
4
"This is a harder version of the problem. In this version $n \\le 500\\,000$\n\nThe outskirts of the(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
5
0
true
true
"[{\"code\": \"n = 5\\nm = [1, 2, 3, 2, 1]\\na = [0] * n\\na[0] = m[0]\\nfor i in range(1, n):\\n (...TRUNCATED)
"{\"inputs\": [\"5\\n1 2 3 2 1\\n\", \"3\\n10 6 8\\n\", \"7\\n1 2 1 2 1 2 1\\n\", \"7\\n1 2 1 2 1 3 (...TRUNCATED)
false
"================================================================================\nQuestion: This is(...TRUNCATED)
0
5
"This is a harder version of the problem. In this version $n \\le 500\\,000$\n\nThe outskirts of the(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
5
0.538462
true
false
"[{\"code\": \"n = 5\\nm = [1, 2, 3, 2, 1]\\n# Test with first example\\nprint(\\\"Example 1 (n=5, m(...TRUNCATED)
"{\"inputs\": [\"5\\n1 2 3 2 1\\n\", \"3\\n10 6 8\\n\", \"7\\n1 2 1 2 1 2 1\\n\", \"7\\n1 2 1 2 1 3 (...TRUNCATED)
true
"================================================================================\nQuestion: This is(...TRUNCATED)
0
6
"This is a harder version of the problem. In this version $n \\le 500\\,000$\n\nThe outskirts of the(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
5
0
true
true
"[{\"code\": \"n = 5\\nm = [1, 2, 3, 2, 1]\\n\\nbest_result = []\\nmax_total = 0\\n\\nfor peak in ra(...TRUNCATED)
"{\"inputs\": [\"5\\n1 2 3 2 1\\n\", \"3\\n10 6 8\\n\", \"7\\n1 2 1 2 1 2 1\\n\", \"7\\n1 2 1 2 1 3 (...TRUNCATED)
false
"================================================================================\nQuestion: This is(...TRUNCATED)
0
7
"This is a harder version of the problem. In this version $n \\le 500\\,000$\n\nThe outskirts of the(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
5
0
true
true
"[{\"code\": \"n = 5\\nm = [1, 2, 3, 2, 1]\\nprint(\\\"Testing with example 1:\\\")\\nresult = []\\n(...TRUNCATED)
"{\"inputs\": [\"5\\n1 2 3 2 1\\n\", \"3\\n10 6 8\\n\", \"7\\n1 2 1 2 1 2 1\\n\", \"7\\n1 2 1 2 1 3 (...TRUNCATED)
false
"================================================================================\nQuestion: This is(...TRUNCATED)
0
8
"This is a harder version of the problem. In this version $n \\le 500\\,000$\n\nThe outskirts of the(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
5
0.153846
true
false
"[{\"code\": \"n = 5\\nm = [1,2,3,2,1]\\nleft = [1,2,3,3,3]\\nright = [1,1,1,1,1]\\na = [min(left[i](...TRUNCATED)
"{\"inputs\": [\"5\\n1 2 3 2 1\\n\", \"3\\n10 6 8\\n\", \"7\\n1 2 1 2 1 2 1\\n\", \"7\\n1 2 1 2 1 3 (...TRUNCATED)
true
"================================================================================\nQuestion: This is(...TRUNCATED)
0
9
"This is a harder version of the problem. In this version $n \\le 500\\,000$\n\nThe outskirts of the(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
5
0
true
true
"[{\"code\": \"n = 5\\nm = [1, 2, 3, 2, 1]\\nmax_sum = 0\\nbest_sequence = []\\n\\n# Try each possib(...TRUNCATED)
"{\"inputs\": [\"5\\n1 2 3 2 1\\n\", \"3\\n10 6 8\\n\", \"7\\n1 2 1 2 1 2 1\\n\", \"7\\n1 2 1 2 1 3 (...TRUNCATED)
false
"================================================================================\nQuestion: This is(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
7