data_source stringclasses 1
value | prompt listlengths 2 2 | ability stringclasses 1
value | reward_model dict | extra_info dict |
|---|---|---|---|---|
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n2\\n295 31\\n2\\n444 637\\n\", \"2\\n2\\n179 57\\n2\\n444 1329\\n\", \"2\\n2\\n179 57\\n2\\n444 1329\\n\", \"2\\n2\\n179 32\\n2\\n444 1329\\n\", \"2\\n2\\n295 32\\n2\\n444 1329\\n\", \"2\\n2\\n179 57\\n2\\n387 1329\\n\", \"2\\n2\\n295 32\\n2\\n444 1217\\n\", ... | {
"index": "code_r1_train_900"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n-1\\n\", \"1\\n-1\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"2\\n1 2\\n\", \"2\\n-1 2\\n\"], \"outputs\": [\"0\\n\", \" 0\", \"0\\n\", \" ... | {
"index": "code_r1_train_901"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n2 4\\n4 2\", \"2\\n3 4\\n4 2\", \"2\\n3 4\\n4 3\", \"2\\n3 1\\n4 2\", \"2\\n3 1\\n4 3\", \"2\\n6 1\\n4 3\", \"2\\n6 2\\n4 3\", \"2\\n6 2\\n4 1\"], \"outputs\": [\"4\\n6\", \"12\\n6\\n\", \"12\\n21\\n\", \"0\\n6\\n\", \"0\\n21\\n\", \"1\\n21\\n\", \"22\\n21\\n... | {
"index": "code_r1_train_902"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 2\\n\", \"1 1\\n\", \"2 1\\n\", \"2 2\\n\", \"3 1\\n\", \"6 4\\n\", \"88 11\\n\", \"97 24\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"843932061\\n\", \"120274922\\n\"]}"
} | {
"index": "code_r1_train_903"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"8\\nabababacababa\\naba\\nddddddd\\ndddd\\nxyzxyz\\nxyz\\nabc\\nabcd\\nabacaba\\nabaca\\nabc\\ndef\\naaaaaaaa\\na\\naaaaaaaa\\naa\\n\", \"3\\nabacabadabacabaeabacabadabacabafabacabadabacabac\\naba\\nabacabadabacabaabacabadabaabaabacabaa\\naba\\nabacabadaababaaaba... | {
"index": "code_r1_train_904"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 4\\n\", \"0 3 6\\n\", \"3 0 4\\n\", \"1 1 5\\n\", \"0 1 2\\n\", \"0 1 4\\n\", \"3 0 6\\n\", \"1 1 9\\n\"], \"outputs\": [\"-1\\n\", \"No solution\\n\", \"0\\n\", \"1\\n\", \"No solution\\n\", \"No solution\\n\", \"0\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_905"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n6\\n2\\n1\", \"3\\n0\\n2\\n1\", \"3\\n0\\n2\\n0\", \"3\\n0\\n1\\n0\", \"3\\n1\\n1\\n0\", \"3\\n1\\n8\\n0\", \"3\\n1\\n8\\n1\", \"3\\n1\\n1\\n1\"], \"outputs\": [\"1\\n1\\n3\\n1\\n2\\n6\\n\", \"1\\n1\\n1\\n0\\n1\\n2\\n\", \"1\\n1\\n1\\n0\\n0\\n2\\n\", \"1\\n1\... | {
"index": "code_r1_train_906"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n1 2 3 4 5 6\\n6 5 4 3 2 1\\n5 4 0 2 1 6\", \"3\\n1 2 3 4 5 6\\n6 2 5 3 5 1\\n6 5 4 3 2 1\", \"3\\n1 2 3 4 5 6\\n5 5 4 3 2 1\\n5 4 0 2 1 6\", \"3\\n1 2 3 4 5 6\\n6 2 5 3 0 1\\n6 5 4 3 2 1\", \"3\\n1 2 3 3 5 6\\n5 5 4 3 2 1\\n5 4 0 2 1 6\", \"3\\n1 4 3 4 5 6\\n... | {
"index": "code_r1_train_907"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5 6\\n0 1\\n1 0\\n0 2\\n2 4\\n4 3\\n3 2\\n4\\n0 1\\n0 3\\n2 3\\n3 4\", \"5 6\\n0 1\\n1 0\\n1 2\\n2 4\\n4 3\\n3 2\\n4\\n0 1\\n0 3\\n2 0\\n3 4\", \"5 6\\n0 1\\n1 0\\n1 2\\n2 4\\n4 0\\n3 2\\n4\\n0 1\\n0 3\\n2 0\\n3 4\", \"5 6\\n0 1\\n1 0\\n1 2\\n2 4\\n1 1\\n3 2\\n4\... | {
"index": "code_r1_train_908"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 3\", \"1 1\", \"2 6\", \"0 0\", \"0 6\", \"2 5\", \"5 0\", \"1 3\"], \"outputs\": [\"4\\n\", \"2\\n\", \"6\\n\", \"0\\n\", \"3\\n\", \"5\\n\", \"7\\n\", \"3\"]}"
} | {
"index": "code_r1_train_909"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 2\\n3 4 5\\n\", \"3 2\\n3 4 5\\n\", \"4 3\\n2 3 5 6\\n\", \"4 3\\n9 1 1 1\\n\", \"4 3\\n2 3 5 5\\n\", \"4 3\\n2 1 5 5\\n\", \"4 3\\n2 3 5 6\\n\", \"4 3\\n9 1 1 1\\n\"], \"outputs\": [\"1\\n3\\n\", \"1\\n3 \\n\", \"2\\n3 4\\n\", \"0\\n\\n\", \"1\\n3 \", \"1\\n3 ... | {
"index": "code_r1_train_910"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n2 1\\n1\\n1 2 3\\n\", \"2\\n2 1\\n1\\n1 2 4\\n\", \"3\\n2 1\\n3 1\\n1\\n3 2 3\\n\", \"3\\n2 1\\n3 1\\n1\\n2 3 1\\n\", \"2\\n2 1\\n2\\n1 2 3\\n1 2 3\\n\", \"2\\n2 1\\n2\\n1 2 1\\n2 1 1\\n\", \"4\\n4 1\\n2 3\\n2 1\\n1\\n1 3 1\\n\", \"3\\n1 2\\n1 3\\n2\\n3 2 2\\... | {
"index": "code_r1_train_911"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"3\\n1 3 2\\n\", \"3\\n1 3 2\\n\", \"4\\n4 1 3 2\\n\", \"5\\n1 4 3 1 2\\n\", \"5\\n1 4 3 1 2\\n\", \"9\\n5 4 3 2 1 2 3 4 5\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"6\\n\", \"6\\n\", \"7\\n\"]}"
} | {
"index": "code_r1_train_912"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n4\\n3\", \"3\\n3\\n3\", \"3\\n3\\n1\", \"3\\n2\\n1\", \"3\\n0\\n1\", \"3\\n0\\n2\", \"3\\n1\\n1\", \"3\\n2\\n2\"], \"outputs\": [\"0\\n\", \"1\\n\", \"3\\n\", \"6\\n\", \"12\\n\", \"8\\n\", \"9\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_913"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n\", \"1 1\\n1\\n\", \"1 1\\n0\\n\", \"1 2\\n0 1\\n\", \"1 2\\n1 0\\n\", \"1 2\\n1 1\\n\", \"2 1\\n1\\n0\\n\", \"2 1\\n0\\n1\\n\"], \"outputs\": [\"0\\n\", \"0\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_914"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1110 3\", \"0 1100 3\", \"1 1100 2\", \"350 7 354\", \"0 1110 13\", \"0 1110 20\", \"0 1110 10\", \"1 1110 10\"], \"outputs\": [\"2\\n\", \"3\\n\", \"1\\n\", \"4\\n\", \"13\\n\", \"20\\n\", \"10\\n\", \"9\\n\"]}"
} | {
"index": "code_r1_train_915"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5\\n3 3\\n110\\n011\\n111\\n4 3\\n000\\n111\\n110\\n010\\n1 1\\n1\\n1 1\\n1\\n1 2\\n00\\n1\\n12\\n\", \"5\\n3 3\\n010\\n011\\n111\\n4 3\\n000\\n111\\n110\\n010\\n1 1\\n1\\n1 1\\n1\\n1 2\\n00\\n1\\n12\\n\", \"5\\n3 3\\n010\\n011\\n111\\n4 3\\n000\\n111\\n110\\n010... | {
"index": "code_r1_train_916"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n5\\n2 0 3 0 5\\n4\\n1 1 0 0\", \"2\\n5\\n2 0 3 0 5\\n4\\n0 1 0 0\", \"2\\n5\\n1 2 3 4 5\\n4\\n1 1 0 -1\", \"2\\n5\\n1 2 3 6 5\\n4\\n1 1 0 -1\", \"2\\n5\\n1 2 3 6 5\\n4\\n1 1 0 -2\", \"2\\n5\\n1 2 3 6 6\\n4\\n1 1 0 -1\", \"2\\n5\\n1 2 3 6 5\\n4\\n1 1 0 -3\", \... | {
"index": "code_r1_train_917"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\nz\\n\", \"1\\ny\\n\", \"1\\nx\\n\", \"1\\nlol\\n\", \"1\\noll\\n\", \"2\\naa\\nb\\n\", \"2\\naz\\nzb\\n\", \"2\\nab\\nbb\\n\"], \"outputs\": [\"z\\n\", \"y\\n\", \"x\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"azb\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_918"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 2 1\\n\", \"3 3 3\\n\", \"5 3 6\\n\", \"7 8 7\\n\", \"2 3 3\\n\", \"2 2 2\\n\", \"3 4 6\\n\", \"1 1 1\\n\"], \"outputs\": [\"1100\\n\", \"101100\\n\", \"01010100\\n\", \"101010111110000\\n\", \"10110\\n\", \"1001\\n\", \"1010101\\n\", \"10\\n\"]}"
} | {
"index": "code_r1_train_919"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"6\\n5 2 4 6 1 0\", \"6\\n5 6 4 4 1 3\", \"6\\n6 2 4 6 1 0\", \"6\\n5 6 4 4 1 2\", \"6\\n6 2 4 6 0 0\", \"6\\n5 6 4 3 1 2\", \"6\\n6 2 8 6 0 0\", \"6\\n5 6 4 2 1 2\"], \"outputs\": [\"0 1 2 4 5 6\\n5\\n\", \"1 3 4 4 5 6\\n2\\n\", \"0 1 2 4 6 6\\n4\\n\", \"1 2 4 4 ... | {
"index": "code_r1_train_920"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n524\\n797 1961\\n\", \"1 1\\n1\\n524\\n797 1961\\n\", \"1 1\\n1\\n107\\n797 1961\\n\", \"1 1\\n1\\n499\\n-4955 898\\n\", \"1 1\\n1\\n499\\n-4955 898\\n\", \"2 2\\n1 2\\n0 0\\n2 1 -100 -100\\n\", \"2 2\\n1 2\\n0 0\\n2 1 -100 -100\\n\", \"2 2\\n1 2\\n934 ... | {
"index": "code_r1_train_921"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"2\\n2 1\\n\"], \"outputs\": [\"2\", \"2\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"2\", \"2\", \"2\\n\"]}"
} | {
"index": "code_r1_train_922"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n4\\n1\\n2\", \"3\\n4\\n1\\n3\", \"3\\n5\\n0\\n6\", \"3\\n3\\n0\\n9\", \"3\\n2\\n0\\n0\", \"3\\n4\\n2\\n3\", \"3\\n5\\n2\\n3\", \"3\\n5\\n0\\n3\"], \"outputs\": [\"1\\n\", \"2\\n\", \"6\\n\", \"9\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_923"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n2\\n1 1\\n1\\n1\\n\", \"2\\n2\\n1 1\\n1\\n1\\n\", \"2\\n2\\n1 2\\n1\\n1\\n\", \"2\\n6\\n1 1 1 3 3 3\\n4\\n1 1 1 3\\n\", \"2\\n6\\n1 1 1 3 3 3\\n4\\n1 1 1 3\\n\", \"2\\n6\\n1 1 1 3 6 3\\n4\\n1 1 1 3\\n\", \"2\\n6\\n1 1 1 3 6 3\\n4\\n1 1 1 1\\n\", \"2\\n6\\n1 1... | {
"index": "code_r1_train_924"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"gaiku,atcoder,tasks\", \"abgde,fchihgf,edcba\", \"ha,pypnewyear,enjoy\", \"gaiku,atcoeer,tasks\", \"abcde,fghihcf,edgba\", \"ha,pypnewzear,enjoy\", \"gaiku,atcoeer-tasks\", \"abgde,fchihgf+edcba\"], \"outputs\": [\"gaiku atcoder tasks\\n\", \"abgde fchihgf edcba\... | {
"index": "code_r1_train_925"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 5 7\\n1\\n2\\n\", \"1 0 6\\n0\\n0\\n\", \"1 1 2\\n0\\n8\\n\", \"1 5 7\\n1\\n2\\n\", \"1 1 2\\n0\\n8\\n\", \"1 0 6\\n0\\n0\\n\", \"1 5 7\\n0\\n2\\n\", \"1 5 7\\n0\\n1\\n\"], \"outputs\": [\"1\", \"0\", \"25\", \"1\\n\", \"25\\n\", \"0\\n\", \"0\\n\", \"1\\n\"]}"... | {
"index": "code_r1_train_926"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n4\\n0 0 0 4\\n\", \"1\\n4\\n1 2 3 4\\n\", \"1\\n4\\n1 1 1 1\\n\", \"1\\n4\\n-10 -10 -5 -5\\n\", \"1\\n4\\n1000000 0 0 0\\n\", \"1\\n6\\n8 128 -38 -39 19 119\\n\", \"1\\n4\\n572894 617066 -274175 841676\\n\", \"1\\n4\\n210452 -553585 -303337 -97565\\n\"], \"ou... | {
"index": "code_r1_train_927"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"a\\na\\n\", \"a\\nb\\n\", \"a\\na\\n\", \"a\\nb\\n\", \"a\\nc\\n\", \"a\\nd\\n\", \"`\\nc\\n\", \"`\\nd\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_928"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n3\\n1 2 3\\n1\\n9\", \"2\\n3\\n2 2 3\\n1\\n9\", \"2\\n3\\n2 1 3\\n1\\n9\", \"2\\n3\\n3 1 3\\n1\\n9\", \"2\\n3\\n3 4 3\\n1\\n9\", \"2\\n3\\n1 2 6\\n1\\n9\", \"2\\n3\\n3 1 3\\n1\\n6\", \"2\\n3\\n3 4 3\\n1\\n4\"], \"outputs\": [\"-4\\n9\", \"-3\\n9\\n\", \"-2\\n... | {
"index": "code_r1_train_929"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n4\\n5\\n\", \"1\\n5\\n4\\n\", \"1\\n5\\n5\\n\", \"1\\n6\\n5\\n\", \"1\\n5\\n0\\n\", \"1\\n6\\n6\\n\", \"1\\n2\\n6\\n\", \"1\\n2\\n1\\n\"], \"outputs\": [\"4 \", \"4 \", \"5 \", \"5\\n\", \"0\\n\", \"6\\n\", \"2\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_930"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1 0\\n10\\n\", \"2 1 0\\n10\\n\", \"3 1 0\\n100\\n\", \"3 1 0\\n100\\n\", \"3 2 0\\n100\\n\", \"4 2 1\\n1011\\n\", \"4 2 0\\n1000\\n\", \"4 1 0\\n1000\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_931"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"1\\n5\\n\", \"1\\n2\\n\", \"1\\n5\\n\"], \"outputs\": [\"cslnb\\n\", \"sjfnb\\n\", \"cslnb\\n\", \"sjfnb\\n\", \"cslnb\\n\", \"sjfnb\\n\", \"cslnb\\n\", \"sjfnb\\n\"]}"
} | {
"index": "code_r1_train_932"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n00\\n00\\n\", \"2\\n00\\n11\\n\", \"2\\n00\\n11\\n\", \"2\\n00\\n00\\n\", \"5\\n01011\\n11001\\n\", \"5\\n01011\\n11011\\n\", \"5\\n01011\\n10011\\n\", \"5\\n11001\\n10111\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"4\\n\", \"3\\n\", \"4\\n... | {
"index": "code_r1_train_933"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"10\\n4 9 1 9 5 9 2 3 4 1\\n8 7 7 5 3 5 4 4 7 9\\n0\\n4 3 2 5 1\\n4 5 4 4 4\\n4\\n3 1 3 3\\n4 3 2 1\\n0\", \"10\\n4 9 1 9 5 9 2 3 4 1\\n8 7 7 5 3 5 4 4 7 9\\n0\\n4 3 2 5 1\\n4 5 4 4 3\\n4\\n3 1 3 3\\n4 3 2 1\\n0\", \"10\\n4 9 1 9 5 9 2 3 4 1\\n8 7 7 3 3 5 4 4 7 9\... | {
"index": "code_r1_train_934"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"6 1\\n2\\n1\\n3\", \"5 1\\n2\\n1\\n0\", \"6 1\\n2\\n1\\n4\", \"5 1\\n1\\n1\\n0\", \"6 1\\n2\\n1\\n8\", \"5 1\\n1\\n1\\n1\", \"7 1\\n1\\n1\\n0\", \"8 1\\n1\\n1\\n0\"], \"outputs\": [\"3\\n\", \"-1\\n\", \"2\\n\", \"5\\n\", \"1\\n\", \"4\\n\", \"7\\n\", \"8\\n\"]}"... | {
"index": "code_r1_train_935"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 0\\n\", \"7 2\\n\", \"5 5\\n\", \"3 5\\n\", \"8 2\\n\", \"4 1\\n\", \"8 1\\n\", \"0 0\\n\"], \"outputs\": [\"Hanako\", \"Ciel\", \"Hanako\", \"Ciel\", \"Ciel\", \"Hanako\", \"Hanako\", \"Hanako\"]}"
} | {
"index": "code_r1_train_936"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"the cost of one peach is higher than th`t of one apple.\", \"the cost of ooe peach is higher than th`t of one apple.\", \"the cost of ooe peach is higher than th`t of eno apple.\", \"the cpst of ooe peach is higher than th`t of eno apple.\", \"the cpst of ooe pea... | {
"index": "code_r1_train_937"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 50\\n50\\n\", \"1 204\\n50\\n\", \"1 2994\\n100\\n\", \"2 93\\n50 50\\n\", \"2 24\\n50 50\\n\", \"2 24\\n96 50\\n\", \"2 50\\n50 50\\n\", \"2 153\\n100 50\\n\"], \"outputs\": [\"1\\n1\", \"1\\n1\", \"1\\n1\", \"-1\\n0\\n\", \"-1\\n0\\n\", \"-1\\n0\\n\", \"-1\\n... | {
"index": "code_r1_train_938"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 6\", \"6 7\", \"5 7\", \"4 5\", \"7 9\", \"3 4\", \"2 7\", \"2 3\"], \"outputs\": [\"-1\\n\", \"12\\n\", \"10\\n\", \"8\\n\", \"14\\n\", \"6\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_939"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 2 3\\n0 2 2\\n1 2 10\\n0 -1\\n1 8\\n2 0\\n3 2 4\\n1 1 0\\n1 2 10\\n0 0\\n1 10\\n2 20\\n0 25\\n18 10 10\\n0 2 39\\n2 3 81\\n3 5 20\\n4 8 24\\n1 9 10\\n7 9 40\\n4 2 5\\n5 7 20\\n1 2 93\\n1 4 13\\n0 0\\n1 100000000\\n2 100\\n3 941\\n4 333\\n5 235\\n5 300\\n7 166\\... | {
"index": "code_r1_train_940"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n0\\n0\\n\", \"2\\n2\\n2\\n\", \"2\\n4\\n2\\n\", \"2\\n2\\n0\\n\", \"2\\n1\\n2\\n\", \"2\\n1\\n0\\n\", \"2\\n0\\n1\\n\", \"2\\n2\\n1\\n\"], \"outputs\": [\"-1\", \"2\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_941"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"KAY\", \"JAY\", \"JAZ\", \"ZAJ\", \"[AJ\", \"[AK\", \"KA[\", \"LA[\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_942"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n4 2\\n4 2\\n2 4\\n4 2\\n2 4\\n3 4\\n1 2 3 4\\n5 6 7 8\\n9 10 11 18\\n\", \"2\\n4 2\\n4 2\\n2 4\\n4 2\\n2 4\\n3 4\\n1 2 3 4\\n5 6 5 8\\n9 10 11 18\\n\", \"2\\n4 2\\n6 2\\n0 4\\n4 2\\n2 4\\n2 4\\n1 2 3 7\\n12 6 7 14\\n0 9 11 6\\n\", \"2\\n4 2\\n6 2\\n0 4\\n8 2\... | {
"index": "code_r1_train_943"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 2 2\\n2 1\\n1 2\\n\", \"3 4 2\\n2 2\\n2 4\\n\", \"3 4 2\\n3 2\\n2 4\\n\", \"3 7 2\\n3 2\\n2 4\\n\", \"2 4 2\\n2 2\\n2 3\\n\", \"3 4 2\\n2 2\\n2 3\\n\", \"100000 100000 2\\n1 2\\n2 1\\n\", \"100 100 3\\n15 7\\n16 15\\n15 88\\n\"], \"outputs\": [\"0\\n\", \"2\", ... | {
"index": "code_r1_train_944"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4\\n10 5 30 46\", \"4\\n10 3 30 46\", \"4\\n19 3 30 46\", \"4\\n19 3 35 46\", \"4\\n19 3 35 65\", \"4\\n19 3 21 65\", \"4\\n15 3 21 65\", \"4\\n15 3 20 65\"], \"outputs\": [\"151\\n\", \"145\\n\", \"172\\n\", \"182\\n\", \"201\\n\", \"173\\n\", \"161\\n\", \"159\... | {
"index": "code_r1_train_945"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 0 2\", \"0 1 3\", \"3 0 19\", \"2 0 19\", \"4 0 19\", \"8 0 22\", \"6 0 43\", \"2 0 31\"], \"outputs\": [\"1\\n\", \"21\\n\", \"7\\n\", \"10\\n\", \"5\\n\", \"3\\n\", \"8\\n\", \"16\\n\"]}"
} | {
"index": "code_r1_train_946"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"8 2 4\", \"3 3 1\", \"3 8 7\", \"1 2 4\", \"4 3 1\", \"6 8 7\", \"1 0 4\", \"4 2 1\"], \"outputs\": [\"Yes\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_947"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n1 3\\n4 3\", \"2\\n1 3\\n3 3\", \"2\\n1 3\\n1 6\", \"2\\n1 3\\n2 6\", \"2\\n1 3\\n3 6\", \"2\\n1 4\\n4 3\", \"2\\n2 3\\n3 3\", \"2\\n1 4\\n2 3\"], \"outputs\": [\"1\\n4\", \"1\\n1\\n\", \"1\\n4\\n\", \"1\\n3\\n\", \"1\\n2\\n\", \"2\\n4\\n\", \"2\\n1\\n\", \"2... | {
"index": "code_r1_train_948"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"0\\n0\\n\", \"1\\n0\\n\", \"0\\n1\\n\", \"1\\n1\\n\", \"1\\n0\\n\", \"0\\n1\\n\", \"0\\n0\\n\", \"1\\n1\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_949"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"`cac\\nacm\", \"`cad\\nacm\", \"`cac\\nbcm\", \"`cac\\nmcb\", \"`cab\\nmcb\", \"`cab\\nbcm\", \"_cac\\nmcb\", \"_cca\\nmcb\"], \"outputs\": [\"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"2\\n\", \"3\\n\", \"3\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_950"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n8 0\\n7 0\\n\", \"2\\n1 0\\n2 0\\n\", \"2\\n8 0\\n7 0\\n\", \"2\\n1 0\\n2 0\\n\", \"2\\n1 0\\n4 0\\n\", \"2\\n1 0\\n-1 0\\n\", \"2\\n-1 0\\n1 0\\n\", \"2\\n1 2\\n-1 2\\n\"], \"outputs\": [\"Yes\", \"Yes\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\", \"Yes\",... | {
"index": "code_r1_train_951"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n1\\n\", \"1\\n0\\n0\\n\", \"1\\n1\\n0\\n\", \"1\\n1\\n1\\n\", \"1\\n2\\n0\\n\", \"1\\n2\\n1\\n\", \"1\\n2\\n2\\n\", \"1\\n1\\n2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_952"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"123,10\\n56,12\\n35,14\\n\\n123,3\\n56,4\\n123,5\", \"123,10\\n56,12\\n45,13\\n\\n113,4\\n56,4\\n123,5\", \"132,10\\n56,12\\n45,13\\n\\n113,4\\n56,4\\n123,5\", \"123,10\\n51,62\\n34,14\\n\\n124,3\\n56,4\\n123,5\", \"123,10\\n65,12\\n34,14\\n\\n123,3\\n56,4\\n123,... | {
"index": "code_r1_train_953"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1 7\\n4\\n\", \"1\\n1 2\\n1\\n\", \"1\\n1 7\\n7\\n\", \"1\\n1 1\\n1\\n\", \"1\\n1 7\\n1\\n\", \"1\\n1 5\\n1\\n\", \"1\\n1 5\\n1\\n\", \"1\\n1 2\\n1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_954"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n2 1\\n\", \"2\\n1 2\\n\", \"5\\n2 3 4 5 1\\n\", \"5\\n2 3 5 4 1\\n\", \"5\\n3 5 1 4 2\\n\", \"5\\n3 5 2 4 1\\n\", \"9\\n4 1 8 6 7 5 2 9 3\\n\", \"9\\n1 7 8 5 3 4 6 9 2\\n\"], \"outputs\": [\"1\", \"0\", \"8\", \"9\\n\", \"12\\n\", \"13\", \"33\", \"33\"]}"
} | {
"index": "code_r1_train_955"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1\\n1 2\\n\", \"3 1\\n2 3\\n\", \"4 1\\n2 4\\n\", \"3 2\\n1 3\\n3 1\\n\", \"4 2\\n2 4\\n3 4\\n\", \"4 3\\n2 1\\n4 1\\n1 2\\n\", \"7 6\\n1 2\\n3 4\\n2 4\\n7 6\\n6 5\\n1 7\\n\", \"10 8\\n1 2\\n2 3\\n3 4\\n1 4\\n6 7\\n8 9\\n8 10\\n1 4\\n\"], \"outputs\": [\"1\\n\"... | {
"index": "code_r1_train_956"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 4 5\\n\", \"2 5 3\\n\", \"1 1 1\\n\", \"3 1 1\\n\", \"2 3 6\\n\", \"4 5 6\\n\", \"4 2 7\\n\", \"2 5 2\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"2\\n\", \"2\\n\", \"0\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_957"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n0 1\\n\", \"2\\n0 2\\n\", \"2\\n0 0\\n\", \"2\\n0 4\\n\", \"2\\n1 4\\n\", \"2\\n-1 1\\n\", \"2\\n-1 0\\n\", \"2\\n-1 2\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"2\\n\", \"4\\n\", \"3\\n\", \"2\", \"1\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_958"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 2 5 4\\n\", \"1 4 1 5\\n\", \"1 1 1 1\\n\", \"1 1 2 2\\n\", \"2 3 4 5\\n\", \"3 1 3 1\\n\", \"5 4 1 4\\n\", \"5 5 2 1\\n\"], \"outputs\": [\"4\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"1\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_959"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"6 6 5 8 9\\n\", \"1 1 1 1 1\\n\", \"1 2 3 4 5\\n\", \"1 3 3 5 3\\n\", \"1 2 2 3 5\\n\", \"2 4 3 7 3\\n\", \"2 4 1 2 5\\n\", \"4 6 6 8 9\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_960"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 5 8\\n1\\n\", \"1 9 10\\n1\\n\", \"1 9 13\\n1\\n\", \"1 2 13\\n1\\n\", \"1 5 13\\n1\\n\", \"1 3 13\\n1\\n\", \"1 8 10\\n1\\n\", \"1 9 10\\n2\\n\"], \"outputs\": [\"3\\n\", \"1\\n\", \"4\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \"2\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_961"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n\", \"1 1 1\\n1\\n\", \"2 1 2\\n1 2\\n\", \"2 1 2\\n2 1\\n\", \"2 2 2\\n1 2\\n\", \"2 2 2\\n2 1\\n\", \"2 1 1\\n2 1\\n\", \"2 1 2\\n2 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"-1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_962"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n3 3\\n\", \"2\\n3 3\\n\", \"3\\n5 6 5\\n\", \"3\\n2 1 1\\n\", \"3\\n1 1 2\\n\", \"3\\n1 1 1\\n\", \"3\\n2 1 1\\n\", \"3\\n1 1 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_963"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\nab\\nb\\ndef\\n\", \"3\\nab\\na\\ndef\\n\", \"3\\nab\\na\\ndeg\\n\", \"3\\nba\\na\\ndeg\\n\", \"3\\nba\\na\\ndef\\n\", \"3\\nab\\nc\\ndef\\n\", \"3\\nac\\nabc\\nca\\n\", \"3\\nab\\nacb\\nba\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"... | {
"index": "code_r1_train_964"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n3 2 2\", \"1\\n3 2 3\", \"1\\n3 3 3\", \"1\\n6 3 3\", \"1\\n6 4 3\", \"1\\n6 4 6\", \"1\\n3 1 3\", \"1\\n9 3 3\"], \"outputs\": [\"101\", \"110\\n\", \"-1\\n\", \"001101\\n\", \"011011\\n\", \"100111\\n\", \"100\\n\", \"000001101\\n\"]}"
} | {
"index": "code_r1_train_965"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n-41790379\\n\", \"1\\n1\\n-404786817\\n\", \"1\\n1\\n-170211275\\n\", \"1\\n1\\n-303186913\\n\", \"1\\n1\\n-335830449\\n\", \"1\\n1\\n-137484530\\n\", \"1\\n1\\n-1000000000\\n\", \"1\\n1\\n-1000000000\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0... | {
"index": "code_r1_train_966"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1 2\\n1 2\\n\", \"2 1 2\\n2 1\\n\", \"2 1 2\\n2 1\\n\", \"2 1 2\\n1 2\\n\", \"3 1 3\\n1 2\\n2 3\\n\", \"3 1 3\\n1 2\\n1 3\\n\", \"3 1 2\\n1 2\\n1 3\\n\", \"2 1 2\\n1 2\\n1 3\\n\"], \"outputs\": [\"1\", \"1\", \"1\\n\", \"1\\n\", \"5\", \"4\", \"4\\n\", \"1\\n\"... | {
"index": "code_r1_train_967"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 7\\n1 0 1\\n0 0 1\\n0 2 3\\n1 0 1\\n1 1 2\\n0 0 2\\n1 0 3\", \"4 7\\n1 0 1\\n0 0 1\\n0 2 3\\n1 0 2\\n1 1 2\\n0 0 2\\n1 1 3\", \"4 7\\n1 0 1\\n0 0 1\\n0 2 3\\n1 0 1\\n1 1 2\\n0 0 2\\n0 0 3\", \"4 7\\n1 0 1\\n0 0 1\\n0 2 3\\n1 0 2\\n1 1 2\\n0 0 2\\n0 1 3\", \"4 7... | {
"index": "code_r1_train_968"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 -1 1 1 1 1 1 1 1 1 1 1 1 1 7 1 1 1 8 1 1 1 1 1 1\\na\\n\", \"1 1 -1 1 1 1 1 1 1 1 1 1 1 1 1 7 1 1 1 8 1 1 1 1 1 1\\na\\n\", \"1 1 -1 1 1 1 1 1 1 1 1 1 1 1 1 7 1 1 1 8 1 1 1 0 1 1\\na\\n\", \"1 1 -1 1 1 1 1 1 1 1 2 1 1 1 1 7 1 1 1 8 1 1 1 0 1 1\\na\\n\", \"1 1... | {
"index": "code_r1_train_969"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\nbaaa\\n\", \"1\\nbaaa\\n\", \"3\\ncbabc\\n\", \"2\\nabcab\\n\", \"3\\nbbabc\\n\", \"2\\nabbab\\n\", \"3\\ncbabc\\n\", \"2\\nabcab\\n\"], \"outputs\": [\"aaab\\n\", \"aaab\", \"a\\n\", \"aab\\n\", \"a\\n\", \"aab\\n\", \"a\", \"aab\"]}"
} | {
"index": "code_r1_train_970"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 \\n67 0.6 5602\\n45 0 4500\\n0 0 0\", \"3 \\n67 0.6 5602\\n78 0 4500\\n0 0 0\", \"3 \\n53 0.6 5602\\n45 0 4500\\n0 0 0\", \"3 \\n103 0.6 5602\\n78 0 4500\\n0 0 0\", \"3 \\n103 0.6 5602\\n78 0 4466\\n0 0 0\", \"3 \\n103 0.6 7770\\n78 0 4466\\n0 0 0\", \"3 \\n53 ... | {
"index": "code_r1_train_971"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"a\\n\", \"A\\n\", \"z\\n\", \"P\\n\", \"z\\n\", \"a\\n\", \"P\\n\", \"A\\n\"], \"outputs\": [\"A\\n\", \"A\\n\", \"Z\\n\", \"P\\n\", \"Z\\n\", \"A\\n\", \"P\\n\", \"A\\n\"]}"
} | {
"index": "code_r1_train_972"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"6\\n\", \"4\\n\", \"5\\n\", \"8\\n\", \"3\\n\", \"9\\n\", \"0\\n\", \"2\\n\"], \"outputs\": [\"1 B\\n\", \"1 A\\n\", \"0 A\\n\", \"1 A\\n\", \"2 A\\n\", \"0 A\\n\", \"1 A\\n\", \"1 B\\n\"]}"
} | {
"index": "code_r1_train_973"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"11\\n\", \"11\\n\", \"101\\n\", \"111\\n\", \"111\\n\", \"110\\n\", \"100\\n\", \"101\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"11\\n\", \"11\\n\", \"11\\n\", \"11\\n\", \"10\\n\", \"11\\n\"]}"
} | {
"index": "code_r1_train_974"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 1\\nX\\n\", \"1 1 1\\nX\\n\", \"1 1 2\\nX\\n\", \"1 1 1\\nX\\n\", \"1 1 2\\nX\\n\", \"1 2 2\\nX.\\n\", \"1 2 2\\n.X\\n\", \"1 2 2\\nX*\\n\"], \"outputs\": [\"IMPOSSIBLE\\n\", \"IMPOSSIBLE\\n\", \"IMPOSSIBLE\\n\", \"IMPOSSIBLE\\n\", \"IMPOSSIBLE\\n\", \"RL\\n\... | {
"index": "code_r1_train_975"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n8\\n52\\n\", \"2\\n10\\n79\\n\", \"2\\n10\\n71\\n\", \"2\\n18\\n79\\n\", \"2\\n15\\n71\\n\", \"2\\n27\\n79\\n\", \"2\\n15\\n52\\n\", \"2\\n10\\n79\\n\"], \"outputs\": [\"0??<>1\\n1??<>2\\n2??<>3\\n3??<>4\\n4??<>5\\n5??<>6\\n6??<>7\\n7??<>8\\n8??<>9\\n9??>>??0... | {
"index": "code_r1_train_976"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1000000\\n22\\n\", \"1\\n1000000\\n221\\n\", \"1\\n1000000\\n223\\n\", \"1\\n0010000\\n223\\n\", \"1\\n0000001\\n223\\n\", \"1\\n1000000\\n2211\\n\", \"1\\n1000000\\n1212\\n\", \"1\\n1000000\\n1221\\n\"], \"outputs\": [\"1000002\\n\", \"1001822\\n\", \"899114... | {
"index": "code_r1_train_977"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n0\\n\", \"2\\n1\\n\", \"2\\n0\\n\", \"2\\n1\\n\", \"2\\n2\\n\", \"2\\n4\\n\", \"2\\n3\\n\", \"2\\n7\\n\"], \"outputs\": [\"-1\\n\", \"1 2 \", \"-1\\n\", \"1 2 \", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_978"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1\\n1 2\\n\", \"2 1\\n2 2\\n\", \"2 1\\n2 2\\n\", \"2 1\\n2 2\\n\", \"2 1\\n1 2\\n\", \"12 1\\n7 4\\n\", \"12 1\\n7 4\\n\", \"12 1\\n12 4\\n\"], \"outputs\": [\"2\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"2\\n\", \"22\\n\", \"22\\n\", \"22\\n\"]}"
} | {
"index": "code_r1_train_979"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4\\n\", \"6\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"5\\n\", \"8\\n\"], \"outputs\": [\"3\\n2 4 3 \\n\", \"4\\n2 4 3 5 \\n\", \"0\\n\\n\", \"0\\n\", \"1\\n2 \", \"2\\n2 3 \", \"4\\n2 4 3 5 \", \"6\\n2 4 8 3 5 7 \"]}"
} | {
"index": "code_r1_train_980"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 1\\n0 1 5\", \"3 0\\n0 1 5\", \"3 1\\n4 1 6\", \"3 1\\n4 1 5\", \"3 1\\n4 1 5\\n\", \"8 8\\n7 9 3 2 3 8 4 6\", \"8 0\\n4 9 5 2 3 6 5 6\", \"8 1\\n4 9 5 2 3 6 5 6\"], \"outputs\": [\"1\\n\", \"6\\n\", \"5\\n\", \"5\", \"5\\n\", \"0\\n\", \"40\\n\", \"31\\n\"]}"
... | {
"index": "code_r1_train_981"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 2\\nab\\n\", \"1 3\\nab\\n\", \"1 3\\nab\\n\", \"1 0\\nab\\n\", \"0 2\\nab\\n\", \"1 1\\nab\\n\", \"1 1\\naa\\n\", \"1 2\\nab\\n\"], \"outputs\": [\"Second\\n\", \"Second\\n\", \"Second\\n\", \"Second\\n\", \"Second\\n\", \"Second\\n\", \"Second\\n\", \"Second\... | {
"index": "code_r1_train_982"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 0 1\\n0\\n\", \"1 0 1\\n0\\n\", \"1 0 1\\n0\\n\", \"1 100 2\\n42\\n\", \"1 100 2\\n42\\n\", \"1 100 2\\n14\\n\", \"1 100 2\\n40\\n\", \"1 0 1\\n-98876039\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\", \"-1\\n\", \"-1\", \"-1\\n\", \"-1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_983"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n9\\n4\\n+\\n.1\\n.2\\n.3\\n9\\n+\\n.0\\n.+\\n..*\\n...1\\n...+\\n....1\\n....2\\n..0\\n0\\n+\\n.+\\n..6\\n..2\\n.+\\n..1\\n..*\\n...8\\n...6\\n.3\\n0\", \"1\\n9\\n4\\n+\\n.1\\n.2\\n.3\\n9\\n+\\n.0\\n.+\\n..*\\n...1\\n...+\\n....1\\n....2\\n..0\\n10\\n+\\n.+\\... | {
"index": "code_r1_train_984"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\nR\\n0 0\\n\", \"1\\nU\\n0 1\\n\", \"1\\nR\\n1 0\\n\", \"1\\nR\\n0 1\\n\", \"1\\nU\\n0 0\\n\", \"1\\nU\\n1 0\\n\", \"1\\nR\\n1 0\\n\", \"1\\nU\\n0 1\\n\"], \"outputs\": [\"-1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"-1\\n\", \"1\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_985"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n6\\nbaaaaaaaaabaaaa`aaaaababaabaa\\n\", \"1\\n8\\naaaaaabaaaab`aaaaa`aaabaaaaaa\\n\", \"1\\n3\\naabaababaaaaaaaaaabaaaaaaaaab\\n\", \"1\\n8\\naabaaaaaaaaaaaaaaaaaaaaaaaaaa\\n\", \"1\\n5\\naabaababaaaaaaaaaabaaaaaaaaaa\\n\", \"1\\n3\\naabaababaaaaa`aaaabaaaaaa... | {
"index": "code_r1_train_986"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1\\n30 1\", \"2 0\\n30 20\", \"2 1\\n30 20\", \"2 1\\n30 26\", \"2 0\\n30 26\", \"2 10\\n20 2\", \"2 0\\n30 17\", \"2 0\\n20 26\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_987"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"0011 2 329\", \"0011 1 329\", \"0011 0 329\", \"0010 0 329\", \"0010 0 256\", \"0010 0 413\", \"0011 0 413\", \"0001 0 413\"], \"outputs\": [\"C\\n\", \"C\\n\", \"C\\n\", \"C\\n\", \"C\\n\", \"C\\n\", \"C\\n\", \"C\\n\"]}"
} | {
"index": "code_r1_train_988"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 2\", \"4 2\", \"4 4\", \"5 4\", \"6 2\", \"9 2\", \"3 4\", \"3 2\"], \"outputs\": [\"1\\n\", \"31\\n\", \"35\\n\", \"126\\n\", \"181\\n\", \"1081\\n\", \"10\\n\", \"10\"]}"
} | {
"index": "code_r1_train_989"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"17\", \"15\", \"14\", \"25\", \"16\", \"59\", \"13\", \"30\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_990"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"Z:1\\n\", \"N:7\\n\", \"Z:2\\n\", \"0:Z\\n\", \"0:0\\n\", \"Z:0\\n\", \"V:V\\n\", \"0:1\\n\"], \"outputs\": [\"0\", \"-1\", \"0\", \"-1\", \"-1\", \"0\", \"0\", \"-1\"]}"
} | {
"index": "code_r1_train_991"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"6\\n4\\n1 0 2 6\\n6\\n10 7 14 8 0 6\\n2\\n0 2\\n3\\n1 2 3\\n6\\n1 0 3 10 5 12\\n2\\n0 1023\\n\", \"6\\n4\\n1 0 2 3\\n6\\n10 7 14 8 0 12\\n2\\n0 2\\n3\\n1 2 3\\n6\\n1 4 6 10 11 12\\n2\\n0 302\\n\", \"6\\n4\\n1 0 2 3\\n6\\n10 7 14 8 0 12\\n2\\n0 2\\n3\\n1 2 3\\n6\\... | {
"index": "code_r1_train_992"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"a\\n\", \"a\\n\", \"a\\n\", \"a\\n\", \"b\\n\", \"b\\n\", \"a\\n\", \"c\\n\"], \"outputs\": [\"a\\n\", \"a\\n\", \"a\\n\", \"a\\n\", \"b\\n\", \"b\\n\", \"a\\n\", \"c\\n\"]}"
} | {
"index": "code_r1_train_993"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n1\\n\", \"1 1\\n1\\n1\\n\", \"2 1\\n1 1\\n1\\n\", \"2 1\\n1 1\\n2\\n\", \"2 1\\n1 1\\n2\\n\", \"2 1\\n1 1\\n1\\n\", \"2 2\\n1 2\\n1 1\\n\", \"2 2\\n2 2\\n1 1\\n\"], \"outputs\": [\"0\\n\", \"0\", \"0\\n\", \"0\\n\", \"0\", \"0\", \"0\\n\", \"-1\\n\"]}"
... | {
"index": "code_r1_train_994"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 2\\n2 8\\n0 0\", \"4 1\\n2 7\\n0 0\", \"6 2\\n7 8\\n0 0\", \"3 3\\n2 1\\n0 0\", \"5 1\\n2 7\\n0 0\", \"4 4\\n6 4\\n0 0\", \"4 1\\n3 8\\n0 0\", \"5 1\\n1 7\\n0 0\"], \"outputs\": [\"Monday\\nSunday\\n\", \"Thursday\\nSaturday\\n\", \"Wednesday\\nThursday\\n\", \... | {
"index": "code_r1_train_995"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"2\\n00\\n\", \"2\\n01\\n\", \"2\\n10\\n\", \"2\\n11\\n\"], \"outputs\": [\"No\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_996"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n6\\n11000\\n0\", \"2\\n6\\n11100\\n0\", \"2\\n6\\n10000\\n0\", \"2\\n3\\n11100\\n0\", \"2\\n6\\n10101\\n0\", \"2\\n1\\n11110\\n0\", \"2\\n3\\n10100\\n0\", \"2\\n0\\n11110\\n0\"], \"outputs\": [\"0\\n1\\n2748\\n\", \"0\\n1\\n2772\\n\", \"0\\n1\\n2499\\n\", \"0... | {
"index": "code_r1_train_997"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n2\\n9 12\\n2\\n3 9\\n3\\n6 7 8\", \"3\\n2\\n9 12\\n2\\n5 9\\n3\\n6 10 8\", \"3\\n2\\n4 4\\n2\\n5 9\\n3\\n8 10 24\", \"3\\n2\\n9 12\\n2\\n3 9\\n3\\n6 10 8\", \"3\\n2\\n15 8\\n2\\n5 9\\n3\\n3 9 24\", \"3\\n2\\n3 12\\n2\\n4 8\\n3\\n35 2 1\", \"3\\n2\\n10 12\\n2\... | {
"index": "code_r1_train_998"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n5\\n\", \"1\\n9\\n\", \"1\\n1\\n\", \"1\\n-1\\n\", \"1\\n-2\\n\", \"1\\n-4\\n\", \"1\\n-7\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_999"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.