id stringlengths 6 10 | data_source stringclasses 1
value | content stringlengths 29 12.9k | ability stringclasses 1
value | reward_model dict | extra_info dict | prompt listlengths 2 2 |
|---|---|---|---|---|---|---|
seed_37190 | rubric_synthetic_ut | Your favorite shop sells n Kinder Surprise chocolate eggs. You know that exactly s stickers and exactly t toys are placed in n eggs in total.
Each Kinder Surprise can be one of three types:
* it can contain a single sticker and no toy;
* it can contain a single toy and no sticker;
* it can contain both a sing... | coding | {
"ground_truth": [
{
"input": {
"stdin": "1\n1 2 3 4 5 6 7\n8 7 9 8 8 7 6 5 4 3 2 1\n1\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 7... | {
"func_name": "solution",
"id": "seed_37190",
"starter_code": "def solution(*args, **kwargs):\n \"\"\"TODO: Implement this function based on the problem description.\"\"\"\n pass\n"
} | [
{
"content": "# Instruction\nPlease implement a complete python script that solves the problem below. Your program must:\n\n# Requirements\n- Read ALL input from standard input (stdin)\n- Write output to standard output (stdout)\n- Follow the output format EXACTLY (including spacing, newlines)\n- Include all ne... |
seed_28864 | rubric_synthetic_ut | This problem is given in two versions that differ only by constraints. If you can solve this problem in large constraints, then you can just write a single solution to the both versions. If you find the problem too difficult in large constraints, you can write solution to the simplified version only.
Waking up in the ... | coding | {
"ground_truth": [
{
"input": {
"stdin": "2\n5\n3 4\n2 3"
},
"output": {
"stdout": "2"
}
},
{
"input": {
"stdin": "3\n3\n1 1 1\n0 0 0"
},
"output": {
"stdout": "1"
}
},
{
"input": {
"stdin": "2\n4\n1 1\n... | {
"func_name": "solution",
"id": "seed_28864",
"starter_code": "def solution(*args, **kwargs):\n \"\"\"TODO: Implement this function based on the problem description.\"\"\"\n pass\n"
} | [
{
"content": "# Instruction\nPlease implement a complete python script that solves the problem below. Your program must:\n\n# Requirements\n- Read ALL input from standard input (stdin)\n- Write output to standard output (stdout)\n- Follow the output format EXACTLY (including spacing, newlines)\n- Include all ne... |
seed_21211 | rubric_synthetic_ut | Problem 3: Liars and Truth Tellers [Brian Dean, 2013]
After spending so much time around his cows, Farmer John has started to
understand their language. Moreover, he notices that among his N cows
(2 <= N <= 1000), some always tell the truth while others always lie.
FJ carefully listens to M statements (1 <= M <= 10... | coding | {
"ground_truth": [
{
"input": {
"stdin": "2 1\n1 2 L"
},
"output": {
"stdout": "1"
}
},
{
"input": {
"stdin": "2 2\n1 2 L\n2 1 T"
},
"output": {
"stdout": "1"
}
},
{
"input": {
"stdin": "3 3\n1 2 L\n2 3 ... | {
"func_name": "solution",
"id": "seed_21211",
"starter_code": "def solution(*args, **kwargs):\n \"\"\"TODO: Implement this function based on the problem description.\"\"\"\n pass\n"
} | [
{
"content": "# Instruction\nPlease implement a complete python script that solves the problem below. Your program must:\n\n# Requirements\n- Read ALL input from standard input (stdin)\n- Write output to standard output (stdout)\n- Follow the output format EXACTLY (including spacing, newlines)\n- Include all ne... |
seed_17149 | rubric_synthetic_ut | Little X has a tree consisting of n nodes (they are numbered from 1 to n). Each edge of the tree has a positive length. Let's define the distance between two nodes v and u (we'll denote it d(v, u)) as the sum of the lengths of edges in the shortest path between v and u.
A permutation p is a sequence of n distinct inte... | coding | {
"ground_truth": [
{
"input": {
"stdin": "6\n1 2 1\n2 3 1\n3 4 1\n4 5 1\n5 6 1"
},
"output": {
"stdout": "15\n6 5 4 3 2 1"
}
},
{
"input": {
"stdin": "7\n1 2 1\n2 3 1\n3 4 1\n4 5 1\n5 6 1\n6 7 1"
},
"output": {
"stdout": "21\n7 6 5... | {
"func_name": "solution",
"id": "seed_17149",
"starter_code": "def solution(*args, **kwargs):\n \"\"\"TODO: Implement this function based on the problem description.\"\"\"\n pass\n"
} | [
{
"content": "# Instruction\nPlease implement a complete python script that solves the problem below. Your program must:\n\n# Requirements\n- Read ALL input from standard input (stdin)\n- Write output to standard output (stdout)\n- Follow the output format EXACTLY (including spacing, newlines)\n- Include all ne... |
seed_23303 | rubric_synthetic_ut | Sergey attends lessons of the N-ish language. Each lesson he receives a hometask. This time the task is to translate some sentence to the N-ish language. Sentences of the N-ish language can be represented as strings consisting of lowercase Latin letters without spaces or punctuation marks.
Sergey totally forgot about ... | coding | {
"ground_truth": [
{
"input": {
"stdin": "1\n1 2 3 4"
},
"output": {
"stdout": "0"
}
}
],
"style": "unit_tests"
} | {
"func_name": "solution",
"id": "seed_23303",
"starter_code": "def solution(*args, **kwargs):\n \"\"\"TODO: Implement this function based on the problem description.\"\"\"\n pass\n"
} | [
{
"content": "# Instruction\nPlease implement a complete python script that solves the problem below. Your program must:\n\n# Requirements\n- Read ALL input from standard input (stdin)\n- Write output to standard output (stdout)\n- Follow the output format EXACTLY (including spacing, newlines)\n- Include all ne... |
seed_5754 | rubric_synthetic_ut | Blake is the boss of Kris, however, this doesn't spoil their friendship. They often gather at the bar to talk about intriguing problems about maximising some values. This time the problem is really special.
You are given an array a of length n. The characteristic of this array is the value $$c = \sum_{i=1}^{n} a_i \cd... | coding | {
"ground_truth": [
{
"input": {
"stdin": "2\n1 2\n"
},
"output": {
"stdout": "5"
}
},
{
"input": {
"stdin": "3\n3 2 1\n"
},
"output": {
"stdout": "13"
}
},
{
"input": {
"stdin": "3\n-1 -2 -3\n"
},
... | {
"func_name": "solution",
"id": "seed_5754",
"starter_code": "def solution(*args, **kwargs):\n \"\"\"TODO: Implement this function based on the problem description.\"\"\"\n pass\n"
} | [
{
"content": "# Instruction\nPlease implement a complete python script that solves the problem below. Your program must:\n\n# Requirements\n- Read ALL input from standard input (stdin)\n- Write output to standard output (stdout)\n- Follow the output format EXACTLY (including spacing, newlines)\n- Include all ne... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.