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\": [\"oh\\n\", \"oh\\n\", \"nh\\n\", \"rhh\\n\", \"rhh\\n\", \"hhr\\n\", \"pezu\\n\", \"kmsk\\n\"], \"outputs\": [\"CHAT WITH HER!\\n\", \"CHAT WITH HER!\\n\", \"CHAT WITH HER!\\n\", \"CHAT WITH HER!\\n\", \"CHAT WITH HER!\\n\", \"CHAT WITH HER!\\n\", \"CHAT WITH HER!\... | {
"index": "code_r1_train_100"
} |
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\\n3\\n100\\n25\\n\", \"3\\n5\\n100\\n25\\n\", \"3\\n5\\n100\\n26\\n\", \"3\\n3\\n100\\n25\\n\", \"100\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3\\n7\\n3... | {
"index": "code_r1_train_101"
} |
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\": [\"XW\", \"XV\", \"VX\", \"YW\", \"WY\", \"VY\", \"YV\", \"YU\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_102"
} |
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 100\\n79\\n\", \"2 2\\n50 100\\n\", \"2 2\\n49 100\\n\", \"4 1\\n32 100 33 1\\n\", \"4 2\\n32 100 33 1\\n\", \"5 2\\n6 3 33 45 27\\n\", \"5 2\\n3 13 33 45 53\\n\", \"5 2\\n3 13 33 45 27\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"0\... | {
"index": "code_r1_train_103"
} |
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\\nz\\n\", \"1 1\\ng\\n\", \"1 0\\na\\n\", \"1 1\\nz\\n\", \"1 0\\ng\\n\", \"1 0\\ny\\n\", \"1 1\\nf\\n\", \"1 2\\nf\\n\"], \"outputs\": [\"z\\n\", \"a\\n\", \"a\\n\", \"a\\n\", \"g\\n\", \"y\", \"a\", \"a\"]}"
} | {
"index": "code_r1_train_104"
} |
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 2\\n12\\n4 2\\n4 6 8 2\\n\", \"2\\n1 2\\n12\\n4 2\\n4 6 4 2\\n\", \"2\\n1 2\\n12\\n4 2\\n7 6 4 2\\n\", \"2\\n1 2\\n12\\n4 2\\n7 6 5 2\\n\", \"2\\n1 2\\n12\\n4 2\\n7 6 3 2\\n\", \"2\\n1 2\\n12\\n4 2\\n7 6 6 2\\n\", \"2\\n1 2\\n1\\n4 2\\n2 11 8 2\\n\", \"2\\n... | {
"index": "code_r1_train_105"
} |
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 2\\n1 2\\n2 3\\n3 3\\n1 2\\n2 3\\n1 3\", \"2\\n3 2\\n1 2\\n2 3\\n3 3\\n1 2\\n2 3\\n2 3\", \"2\\n4 2\\n1 2\\n4 3\\n3 3\\n1 2\\n3 3\\n2 2\", \"2\\n3 2\\n1 2\\n2 5\\n3 2\\n1 2\\n2 3\\n1 1\", \"2\\n7 4\\n1 2\\n2 3\\n4 3\\n1 2\\n2 0\\n2 4\", \"2\\n4 2\\n1 2\\n2 ... | {
"index": "code_r1_train_106"
} |
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\\no\\n\", \"1\\no\\n\", \"2\\nox\\n.o\\n\", \"2\\nox\\n.o\\n\", \"2\\nox\\no.\\n\", \"3\\no.x\\noxx\\no.x\\n\", \"3\\no.x\\noxx\\no.x\\n\", \"5\\noxxxx\\nx...x\\nx...x\\nx...x\\nxxxxo\\n\"], \"outputs\": [\"YES\\no\\n\", \"YES\\no\\n\", \"YES\\nxxx\\n.ox\\nx.x\... | {
"index": "code_r1_train_107"
} |
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\\n\\n4 2\\n2 2\\n0 0\\n0 0\\n1 1\\n\", \"1\\n\\n4 2\\n2 2\\n0 0\\n0 0\\n1 1\\n\", \"1\\n\\n4 2\\n2 2\\n0 0\\n0 0\\n0 1\\n\", \"1\\n\\n4 2\\n2 2\\n1 0\\n0 0\\n0 1\\n\", \"1\\n\\n4 2\\n3 1\\n0 0\\n0 0\\n2 0\\n\", \"1\\n\\n4 2\\n2 1\\n1 0\\n0 0\\n0 1\\n\", \"1\\n\... | {
"index": "code_r1_train_108"
} |
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\": [\"CODEFESTIVAM\", \"CPDEFESTIVAM\", \"BPDEFDSTIVBM\", \"MBVITSDFEDPB\", \"MBWITSDFEDPB\", \"BPCEFDSTIWBM\", \"CPCEFDSTJWBM\", \"WPCEFDSTJCAM\"], \"outputs\": [\"CODE\\n\", \"CPDE\\n\", \"BPDE\\n\", \"MBVI\\n\", \"MBWI\\n\", \"BPCE\\n\", \"CPCE\\n\", \"WPCE\\n\"]}"
... | {
"index": "code_r1_train_109"
} |
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 1\\n\", \"2\\n1 1\\n\", \"3\\n4 3 6\\n\", \"3\\n2 5 3\\n\", \"3\\n2 5 3\\n\", \"3\\n3 5 3\\n\", \"3\\n3 9 5\\n\", \"3\\n4 1 2\\n\"], \"outputs\": [\"-1 -1\\n\", \"-1 -1 \", \"-1 -1 -1\\n\", \"3 2 4\\n\", \"3 2 4 \\n\", \"-1 -1 -1\\n\", \"3 2 4\\n\", \"1 3 2... | {
"index": "code_r1_train_110"
} |
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\": [\"b\\n\", \"w\\n\", \"b\\n\", \"w\\n\", \"bw\\n\", \"bw\\n\", \"wb\\n\", \"bwb\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_111"
} |
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\\n2 0 1 8 7\", \"5\\n2 2 3 5 5\", \"5\\n2 2 3 5 10\", \"5\\n2 0 1 8 10\", \"5\\n2 2 2 5 10\", \"5\\n2 2 2 8 10\", \"5\\n2 0 2 8 10\", \"6\\n6 0 4 3 2 1\"], \"outputs\": [\"10\\n\", \"2\", \"6\\n\", \"13\\n\", \"7\\n\", \"10\\n\", \"12\\n\", \"15\\n\"]}"
} | {
"index": "code_r1_train_112"
} |
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\": [\"[\\n\", \"|\\n\", \"]\\n\", \":\\n\", \"b\\n\", \"c\\n\", \"s\\n\", \"z\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_113"
} |
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\\n5\\n4\\n\", \"3\\n6\\n6\\n4\\n\", \"3\\n6\\n6\\n6\\n\", \"3\\n6\\n3\\n6\\n\", \"3\\n6\\n3\\n8\\n\", \"3\\n6\\n4\\n8\\n\", \"3\\n4\\n4\\n75\\n\", \"3\\n4\\n6\\n75\\n\"], \"outputs\": [\"6\\n5\\n4\\n\", \"6\\n6\\n4\\n\", \"6\\n6\\n6\\n\", \"6\\n3\\n6\\n\", ... | {
"index": "code_r1_train_114"
} |
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 1\\n0 0\\nc 1 2\\n\", \"1 2 3\\n1 2\\nc 1 2\\ng 1 1\\ng 1 2\\n\", \"2 1 3\\n1\\n2\\nr 1 2\\ng 1 1\\ng 2 1\\n\", \"1 2 3\\n1 2\\nc 1 2\\ng 1 1\\ng 1 1\\n\", \"1 2 3\\n0 2\\nc 1 2\\ng 1 1\\ng 1 2\\n\", \"1 2 3\\n1 2\\nc 1 2\\ng 1 2\\ng 1 2\\n\", \"2 3 3\\n1 0 4... | {
"index": "code_r1_train_115"
} |
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\": [\"aaa\\na\\nb\\n\", \"cumurcumur\\num\\ncur\\n\", \"cumurcumur\\nul\\ncur\\n\", \"abbbaaccca\\nba\\naca\\n\", \"cunurcumur\\nul\\ncur\\n\", \"abbbaaccca\\nab\\naca\\n\", \"xxxbbbcccoca\\nca\\ncb\\n\", \"xxxbbbcccoca\\nca\\nca\\n\"], \"outputs\": [\"aaa\\n\", \"umum... | {
"index": "code_r1_train_116"
} |
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 5\\n5 4 3 2 1\\n1 5 3\\n1 3 1\\n2 4 3\\n4 4 4\\n2 5 3\\n\", \"5 5\\n5 4 3 2 1\\n1 5 3\\n1 5 1\\n2 4 3\\n4 4 4\\n2 5 3\\n\", \"5 5\\n5 4 3 2 1\\n1 5 4\\n1 3 1\\n2 4 3\\n4 4 4\\n2 5 3\\n\", \"5 5\\n5 4 3 2 1\\n1 5 3\\n1 3 1\\n2 4 3\\n3 4 4\\n2 5 3\\n\", \"5 5\\n5... | {
"index": "code_r1_train_117"
} |
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\": [\"12\\n13 19 9 5 12 8 7 4 13 0 6 3\", \"12\\n13 19 9 5 12 8 7 4 21 0 2 18\", \"12\\n13 19 9 5 12 8 7 4 13 0 6 18\", \"12\\n8 19 9 5 12 8 7 4 21 4 10 18\", \"12\\n13 19 9 5 12 8 7 4 40 0 10 1\", \"12\\n40 19 9 1 12 8 8 6 21 0 10 1\", \"12\\n40 19 6 1 12 8 0 2 21 2 4... | {
"index": "code_r1_train_118"
} |
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 1\\n3 0 0 1\\n\", \"4 1\\n3 -1 6 0\\n\", \"4 1\\n3 -2 6 0\\n\", \"4 1\\n3 -2 1 0\\n\", \"4 1\\n2 -2 1 0\\n\", \"4 1\\n3 -2 2 0\\n\", \"4 1\\n0 -2 1 0\\n\", \"4 1\\n6 -2 1 0\\n\"], \"outputs\": [\"4\\n\", \"8\\n\", \"7\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"-1\\n... | {
"index": "code_r1_train_119"
} |
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\\n\", \",\\n\", \"0\\n\", \",,\\n\", \"1,\\n\", \",1\\n\", \"2,\\n\", \",2\\n\"], \"outputs\": [\"1\\n\", \",\\n\", \"0\\n\", \", ,\\n\", \"1,\\n\", \", 1\\n\", \"2,\\n\", \", 2\\n\"]}"
} | {
"index": "code_r1_train_120"
} |
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\\n4\\n9\\n\", \"1 1\\n2\\n4\\n\", \"1 1\\n4\\n9\\n\", \"1 1\\n2\\n4\\n\", \"1 1\\n8\\n9\\n\", \"1 1\\n1\\n9\\n\", \"1 1\\n1\\n0\\n\", \"1 1\\n0\\n0\\n\"], \"outputs\": [\"8\", \"-1\\n\", \"8\\n\", \"-1\\n\", \"-1\\n\", \"2\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_121"
} |
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\\n3\\n1 1 0\\n1 2 10\\n2 1 22\", \"2 2\\n3\\n2 1 20\\n1 2 10\\n2 1 0\", \"2 2\\n3\\n1 1 0\\n1 2 10\\n2 1 14\", \"2 4\\n3\\n1 1 0\\n1 2 10\\n2 1 22\", \"2 2\\n3\\n1 1 0\\n1 2 10\\n1 1 14\", \"2 4\\n3\\n1 1 1\\n1 2 10\\n2 1 22\", \"2 2\\n3\\n1 1 0\\n2 2 10\\n2 ... | {
"index": "code_r1_train_122"
} |
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\\n3 4 3\", \"3\\n3 7 3\", \"3\\n4 6 5\", \"3\\n4 6 7\", \"3\\n4 4 7\", \"3\\n5 4 7\", \"3\\n9 4 3\", \"3\\n9 2 6\"], \"outputs\": [\"12\\n\", \"21\\n\", \"60\\n\", \"84\\n\", \"28\\n\", \"140\\n\", \"36\\n\", \"18\\n\"]}"
} | {
"index": "code_r1_train_123"
} |
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 6\", \"1 0\", \"1 2\", \"6 6\", \"0 2\", \"5 6\", \"7 6\", \"0 1\"], \"outputs\": [\"-1\\n\", \"0 1 2\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_124"
} |
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\": [\"7\\n\", \"8\\n\", \"9\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"1\\n\", \"3\\n\"], \"outputs\": [\"4\\n\", \"5\\n\", \"5\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_125"
} |
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\\n3 8\\n5 100\\n0 0\", \"3 5\\n3 7\\n7 101\\n0 0\", \"3 8\\n3 8\\n5 100\\n0 0\", \"6 8\\n3 8\\n5 100\\n0 0\", \"3 2\\n3 7\\n7 101\\n0 0\", \"3 3\\n3 7\\n7 100\\n0 0\", \"2 6\\n3 5\\n5 100\\n0 0\", \"3 2\\n3 8\\n5 100\\n0 0\"], \"outputs\": [\"2/1 3/2\\n7/4 5/... | {
"index": "code_r1_train_126"
} |
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\\n\", \"5 6 7\\n\", \"1 5 1\\n\", \"1 5 1\\n\", \"2 1 2\\n\", \"2 2 2\\n\", \"5 6 7\\n\", \"71 2 1\\n\"], \"outputs\": [\"20\\n\", \"1520\\n\", \"10\\n\", \"10\\n\", \"8\\n\", \"20\\n\", \"1520\\n\", \"811\\n\"]}"
} | {
"index": "code_r1_train_127"
} |
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 3\\n2 3\\n\", \"3\\n1 3\\n2 3\\n\", \"3\\n1 2\\n2 3\\n\", \"4\\n1 2\\n2 3\\n3 4\\n\", \"4\\n1 2\\n2 4\\n3 4\\n\", \"4\\n1 3\\n2 4\\n3 4\\n\", \"4\\n1 2\\n1 4\\n3 4\\n\", \"4\\n1 4\\n2 4\\n3 4\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\... | {
"index": "code_r1_train_128"
} |
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\": [\"#\\n\", \"(#(\\n\", \")#)\\n\", \"*#)\\n\", \")#*\\n\", \")*#\\n\", \"#*)\\n\", \"(#)\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_129"
} |
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\\n3 3 2 2\", \"4\\n4 3 2 2\", \"4\\n3 5 3 2\", \"4\\n1 1 2 2\", \"4\\n3 4 2 2\", \"4\\n3 6 2 2\", \"4\\n3 6 4 2\", \"4\\n3 4 3 2\"], \"outputs\": [\"3 5\\n\", \"4 7\\n\", \"6 11\\n\", \"2 3\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"6 8\"]}"
} | {
"index": "code_r1_train_130"
} |
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\": [\"88\", \"73\", \"19\", \"31\", \"799\", \"836\", \"138\", \"774\"], \"outputs\": [\"0\\n\", \"4\\n\", \"8\\n\", \"2\\n\", \"2\\n\", \"5\\n\", \"5\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_131"
} |
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 2\", \"1 4 4\", \"0 0 3\", \"1 1 4\", \"6 8 3\", \"3 6 2\", \"0 8 3\", \"1 4 1\"], \"outputs\": [\"3\\n4\\n\", \"1\\n2\\n3\\n4\\n\", \"0\\n\", \"1\\n\", \"6\\n7\\n8\\n\", \"3\\n4\\n5\\n6\\n\", \"0\\n1\\n2\\n6\\n7\\n8\\n\", \"1\\n4\\n\"]}"
} | {
"index": "code_r1_train_132"
} |
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 4\\n\", \"2\\n3 4\\n\", \"2\\n3 3\\n\", \"2\\n2 3\\n\", \"3\\n1 2 7\\n\", \"3\\n1 2 7\\n\", \"3\\n1 2 11\\n\", \"3\\n2 2 11\\n\"], \"outputs\": [\"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_133"
} |
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:00\\n11:00\\n\", \"11:10\\n11:12\\n\", \"01:02\\n03:02\\n\", \"00:00\\n23:58\\n\", \"00:01\\n23:59\\n\", \"00:00\\n00:02\\n\", \"23:57\\n23:59\\n\", \"11:40\\n12:22\\n\"], \"outputs\": [\"10:30\\n\", \"11:11\\n\", \"02:02\\n\", \"11:59\\n\", \"12:00\\n\", \"00... | {
"index": "code_r1_train_134"
} |
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\\nwdi\\n\", \"1\\nwdi\\n\", \"1\\nwci\\n\", \"1\\nwcj\\n\", \"1\\nwjc\\n\", \"1\\ncjw\\n\", \"2\\naa\\na\\n\", \"2\\naa\\na\\n\"], \"outputs\": [\"wdi\\n\", \"wdi\\n\", \"wci\\n\", \"wcj\\n\", \"wjc\\n\", \"cjw\\n\", \"a\\naa\\n\", \"a\\naa\\n\"]}"
} | {
"index": "code_r1_train_135"
} |
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\\n3173\\n\", \"3\\n2 8 2\\n\", \"3\\n6 4 6\\n\", \"3\\n5 8 7\\n\", \"3\\n2 8 2\\n\", \"3\\n5 8 7\\n\", \"3\\n6 4 6\\n\", \"1\\n69075\\n\"], \"outputs\": [\"3173\\n\", \"2 8 8\\n\", \"4 6 6\\n\", \"7 8 8\\n\", \"2 8 8 \\n\", \"7 8 8 \\n\", \"4 6 6 \\n\", \"69075... | {
"index": "code_r1_train_136"
} |
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\": [\"XX.XX.....\\n.....OOOO.\\n..........\\n..........\\n..........\\n..........\\n..........\\n..........\\n..........\\n..........\\n\", \"XXOXX.....\\nOO.O......\\n..........\\n..........\\n..........\\n..........\\n..........\\n..........\\n..........\\n............. | {
"index": "code_r1_train_137"
} |
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\\nL\\n\", \"3\\nR=\\n\", \"3\\n=R\\n\", \"4\\nRRL\\n\", \"4\\nLRR\\n\", \"4\\nRLR\\n\", \"5\\nRLRL\\n\", \"5\\nRRR=\\n\"], \"outputs\": [\"2 1 \\n\", \"1 2 2 \\n\", \"1 1 2\\n\", \"1 2 3 1 \\n\", \"2 1 2 3\\n\", \"1 2 1 2\\n\", \"1 2 1 2 1\\n\", \"1 2 3 4 4\\n\... | {
"index": "code_r1_train_138"
} |
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 1\\n\", \"3\\n3 6 5\\n\", \"3\\n1 1 2\\n\", \"1\\n400000\\n\", \"6\\n1 1 1 2 3 4\\n\", \"6\\n1 1 1 1 1 2\\n\", \"2\\n399999 400000\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"8\\n\", \"3\\n\", \"400000\\n\", \"10\\n\", \"3\\n\", \"799999\\n\"... | {
"index": "code_r1_train_139"
} |
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\\n0\\n\", \"1\\n2\\n\", \"1\\n-1\\n\", \"1\\n-2\\n\", \"1\\n-4\\n\", \"1\\n-5\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_140"
} |
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\\n#h\\n\", \"1\\n#h\\n\", \"2\\n#y\\n#q\\n\", \"2\\n#y\\n#q\\n\", \"2\\n#y\\n#p\\n\", \"2\\n#y\\n#o\\n\", \"2\\n#x\\n#o\\n\", \"2\\n#x\\n#p\\n\"], \"outputs\": [\"#h\\n\", \"#h\\n\", \"#\\n#q\\n\", \"#\\n#q\\n\", \"#\\n#p\\n\", \"#\\n#o\\n\", \"#\\n#o\\n\", \"#... | {
"index": "code_r1_train_141"
} |
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\": [\"-\\n\", \"+\\n\", \"-\\n\", \"+\\n\", \"--\\n\", \"+-\\n\", \"++\\n\", \"--\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_142"
} |
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\\n333\\n\", \"1\\n3\\n333\\n\", \"1\\n3\\n343\\n\", \"1\\n3\\n218\\n\", \"1\\n3\\n242\\n\", \"1\\n4\\n3333\\n\", \"1\\n4\\n5234\\n\", \"1\\n4\\n9999\\n\"], \"outputs\": [\"YES\\n2\\n3 33\\n\", \"YES\\n2\\n3 33\\n\", \"YES\\n2\\n3 43\\n\", \"YES\\n2\\n2 18\\... | {
"index": "code_r1_train_143"
} |
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\\n1 2\\n\", \"2 2\\n1 2\\n\", \"7 3\\n3 1 3 2 3 1 2\\n\", \"7 3\\n3 1 2 2 3 1 2\\n\", \"7 3\\n3 1 2 3 3 1 2\\n\", \"7 3\\n3 1 3 2 3 1 2\\n\", \"10 3\\n1 1 2 3 2 3 3 1 1 3\\n\", \"10 2\\n1 2 2 1 1 2 1 1 2 2\\n\"], \"outputs\": [\"1\", \"1\\n\", \"1\", \"1\\n\"... | {
"index": "code_r1_train_144"
} |
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 14\\n\", \"1 14\\n\", \"0 14\\n\", \"0 52\\n\", \"0 87\\n\", \"5 14\\n\", \"-1 14\\n\", \"72 49\\n\"], \"outputs\": [\"19\\n\", \"15\\n\", \"14\\n\", \"52\\n\", \"87\\n\", \"19\\n\", \"13\\n\", \"121\\n\"]}"
} | {
"index": "code_r1_train_145"
} |
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 2\", \"5 1\", \"7 2\", \"5 0\", \"8 5\", \"3 3\", \"1 2\", \"6 5\"], \"outputs\": [\"33\\n\", \"1\\n\", \"129\\n\", \"0\\n\", \"390889\\n\", \"30\\n\", \"3\\n\", \"15697\\n\"]}"
} | {
"index": "code_r1_train_146"
} |
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\\ntest 0\\n\", \"1\\nvasya 1000\\n\", \"3\\nvsaya 200\\nkolya 1000\\nvasya 1000\\n\", \"3\\nvsaya 303\\nkolya 1000\\nvasya 1000\\n\", \"3\\nvasya 200\\nkolya 1000\\nvasya 1000\\n\", \"10\\nj 10\\ni 9\\nh 8\\ng 7\\nf 6\\ne 5\\nd 4\\nc 3\\nb 2\\na 1\\n\", \"10\\n... | {
"index": "code_r1_train_147"
} |
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\\n2 4\\n0 4 34 58 62 64 69 78\\n2 2\\n27 61 81 91\\n4 3\\n0 4 16 18 22 27 36 53 82 89 92 95\\n3 4\\n0 4 6 22 33 35 38 67 69 71 94 99\\n2 1\\n11 41\\n3 3\\n1 1 1 1 1 1 1 1 1\\n\", \"6\\n2 4\\n0 4 34 58 62 64 69 78\\n2 2\\n27 61 81 91\\n4 3\\n0 4 16 18 22 27 36 5... | {
"index": "code_r1_train_148"
} |
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 0\\n\", \"13 3\\n\", \"91 0\\n\", \"0 15\\n\", \"10 1\\n\", \"-13 3\\n\", \"1 -33\\n\", \"36 80\\n\"], \"outputs\": [\"0\\n\", \"39\\n\", \"91\\n\", \"15\\n\", \"11\\n\", \"-10\\n\", \"34\\n\", \"2880\\n\"]}"
} | {
"index": "code_r1_train_149"
} |
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 0\\n1\\n\", \"1 0 0\\n0\\n\", \"1 1 0\\n0\\n\", \"1 1 10\\n23\\n\", \"2 0 1\\n1 1\\n\", \"1 1 10\\n20\\n\", \"2 0 1\\n1 0\\n\", \"2 0 100\\n98 2\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\", \"33\\n\", \"1\\n\", \"30\", \"1\", \"100\\n\"]}"
} | {
"index": "code_r1_train_150"
} |
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\\n\", \"1 3\\n\", \"4 3\\n\", \"2 4\\n\", \"2 4\\n\", \"1 3\\n\", \"4 3\\n\", \"3 2\\n\"], \"outputs\": [\"1 8\", \"1 1\", \"23 128\", \"29 32\", \"29 32\", \"1 1\", \"23 128\", \"1 8\\n\"]}"
} | {
"index": "code_r1_train_151"
} |
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\", \"4 0\\n\", \"3 0\\n\", \"999 0\\n\", \"999 0\\n\", \"540 0\\n\", \"428 0\\n\", \"1000 0\\n\"], \"outputs\": [\"1\\n\", \"4\\n\", \"1\\n\", \"1993\\n\", \"1993\\n\", \"1076\\n\", \"852\\n\", \"1996\\n\"]}"
} | {
"index": "code_r1_train_152"
} |
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\": [\"9\", \"8\", \"0\", \"4\", \"1\", \"2\", \"3\", \"5\"], \"outputs\": [\"39\\n\", \"40\\n\", \"48\\n\", \"44\\n\", \"47\\n\", \"46\\n\", \"45\\n\", \"43\\n\"]}"
} | {
"index": "code_r1_train_153"
} |
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 2\\n2 3\\n1 3\", \"3\\n0 2\\n2 3\\n1 3\", \"3\\n0 2\\n2 3\\n1 5\", \"3\\n0 2\\n2 5\\n1 5\", \"3\\n2 2\\n2 3\\n2 3\", \"3\\n0 2\\n2 4\\n1 5\", \"3\\n0 1\\n2 5\\n1 5\", \"3\\n0 2\\n3 4\\n1 5\"], \"outputs\": [\"2\\n18\\n6\", \"2\\n18\\n6\\n\", \"2\\n18\\n20\\... | {
"index": "code_r1_train_154"
} |
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 49\\n22 23 7 17 49\\n50\\n102 55 77 3 977\\n\", \"5 49\\n22 23 11 17 49\\n50\\n102 55 77 3 977\\n\", \"5 1\\n1 1 1 2 9\\n1000000000\\n10 20 30 40 50\\n\", \"5 49\\n22 23 11 17 49\\n50\\n102 55 77 34 977\\n\", \"5 1\\n1 1 1 2 9\\n1000000000\\n10 20 30 76 50\\n\"... | {
"index": "code_r1_train_155"
} |
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\\n2\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n6\\n\", \"1\\n8\\n\", \"1\\n10\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_156"
} |
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 2\\n88\\n\", \"1\\n1 2\\n88\\n\", \"1\\n1 3\\n88\\n\", \"1\\n1 2\\n70\\n\", \"1\\n1 5\\n88\\n\", \"1\\n1 3\\n103\\n\", \"1\\n1 3\\n198\\n\", \"1\\n1 1\\n103\\n\"], \"outputs\": [\"140130951\\n\", \"140130951\\n\", \"772681989\\n\", \"270016253\\n\", \"46713... | {
"index": "code_r1_train_157"
} |
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\\n0 1 3\\n7\\n0 1 2 3 4 3 2\\n4\\n3 0 0 0\\n7\\n4 6 2 3 5 0 5\\n5\\n4 0 1 0 4\\n\", \"5\\n3\\n0 1 3\\n7\\n0 1 2 3 4 3 2\\n4\\n3 0 0 0\\n7\\n4 6 2 3 6 0 5\\n5\\n4 0 1 0 4\\n\", \"5\\n3\\n0 1 3\\n7\\n0 1 2 3 4 3 2\\n4\\n3 0 0 0\\n7\\n4 0 2 3 5 0 5\\n5\\n4 0 1... | {
"index": "code_r1_train_158"
} |
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\\n\", \"2\\n\", \"0\\n\", \"4\\n\", \"8\\n\", \"6\\n\", \"3\\n\", \"5\\n\"], \"outputs\": [\"INTERCAL\\n\", \"INTERCAL\\n\", \"INTERCAL\\n\", \"INTERCAL\\n\", \"INTERCAL\\n\", \"INTERCAL\\n\", \"INTERCAL\\n\", \"INTERCAL\\n\"]}"
} | {
"index": "code_r1_train_159"
} |
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 3\\n0324152397\\n1\\n4\\n7\", \"10 3\\n0324152397\\n1\\n6\\n7\", \"10 1\\n0324152397\\n1\\n6\\n7\", \"10 2\\n0324152397\\n1\\n6\\n7\", \"10 3\\n0324152397\\n2\\n4\\n7\", \"10 2\\n0324152397\\n1\\n7\\n7\", \"10 3\\n0324152397\\n1\\n3\\n7\", \"10 3\\n0324152397\... | {
"index": "code_r1_train_160"
} |
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\\n\", \"2\\n4\\n5\", \"2\\n4\\n9\", \"2\\n2\\n9\", \"2\\n4\\n4\", \"2\\n8\\n4\", \"2\\n6\\n4\"], \"outputs\": [\"Hello World\", \"Hello World\\n\", \"9\\n\", \"13\\n\", \"11\\n\", \"8\\n\", \"12\\n\", \"10\\n\"]}"
} | {
"index": "code_r1_train_161"
} |
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\\n20\\n42\\n\", \"2\\n35\\n44\\n\", \"2\\n99\\n11\\n\", \"2\\n85\\n96\\n\", \"2\\n37\\n97\\n\", \"2\\n28\\n94\\n\", \"2\\n85\\n96\\n\", \"2\\n37\\n97\\n\"], \"outputs\": [\"2\\n1 1\\n1 1\\n\", \"-1\\n\", \"8\\n1 -1\\n1 -1\\n1 -1\\n1 -1\\n1 -1\\n1 -1\\n1 -1\\n1 ... | {
"index": "code_r1_train_162"
} |
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\\n1\\n\", \"1\\n1\\n1\\n\", \"1\\n2\\n1\\n\", \"1\\n2\\n2\\n\", \"1\\n3\\n2\\n\", \"1\\n1\\n2\\n\", \"2\\n1 1\\n1\\n\", \"2\\n1 1\\n2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_163"
} |
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\\n73\\n8\\n9\", \"3\\n7\\n24\\n1\", \"3\\n7\\n45\\n2\", \"3\\n7\\n59\\n2\", \"3\\n7\\n33\\n1\", \"3\\n7\\n80\\n2\", \"3\\n7\\n52\\n2\", \"3\\n7\\n94\\n1\"], \"outputs\": [\"25\\n0\\n0\\n\", \"0\\n5\\n0\\n\", \"0\\n13\\n0\\n\", \"0\\n18\\n0\\n\", \"0\\n8\\n0\\n\... | {
"index": "code_r1_train_164"
} |
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\": [\"7\", \"2\", \"0\", \"70\", \"12\", \"16\", \"26\", \"38\"], \"outputs\": [\"4\\n\", \"1\\n\", \"0\\n\", \"64\\n\", \"9\\n\", \"16\\n\", \"25\\n\", \"36\\n\"]}"
} | {
"index": "code_r1_train_165"
} |
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\": [\"ant\\nobe\\nrfc\", \"ddu\\ncat\\nion\", \"ant\\nobe\\nrcf\", \"ddu\\ncat\\nioo\", \"ddu\\ncat\\nooi\", \"una\\nobe\\nrcf\", \"edu\\nbau\\nooi\", \"una\\npbe\\nfdr\"], \"outputs\": [\"abc\\n\", \"dan\\n\", \"abf\\n\", \"dao\\n\", \"dai\\n\", \"ubf\\n\", \"eai\\n\"... | {
"index": "code_r1_train_166"
} |
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\\n3 1\\n3\\n6 1 5\\n5\\n3 1 5 9 2\\n\", \"3\\n2\\n3 1\\n3\\n4 1 5\\n5\\n3 1 5 9 2\\n\", \"3\\n2\\n3 1\\n3\\n6 1 5\\n5\\n3 1 5 9 4\\n\", \"3\\n2\\n2 1\\n3\\n4 1 5\\n5\\n3 1 4 9 2\\n\", \"3\\n2\\n3 1\\n3\\n4 2 5\\n5\\n3 1 4 5 2\\n\", \"3\\n2\\n3 2\\n3\\n2 1 5... | {
"index": "code_r1_train_167"
} |
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 1\\n7 13\\n\", \"2 2\\n2 2\\n7 13\\n\", \"2 1\\n1 1\\n7 13\\n\", \"2 2\\n2 2\\n7 13\\n\", \"2 1\\n1 1\\n6 13\\n\", \"2 2\\n2 2\\n7 12\\n\", \"2 2\\n1 2\\n7 12\\n\", \"2 1\\n1 1\\n6 11\\n\"], \"outputs\": [\"0\\n\", \"7\\n\", \"0\", \"7\", \"0\\n\", \"7\\n... | {
"index": "code_r1_train_168"
} |
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\\n2 1 3\\n2 1 3\\n2 1 3\", \"1 3\\n2 1 3\\n2 1 3\\n2 1 3\", \"1 3\\n2 1 3\\n2 1 4\\n2 1 3\", \"3 3\\n2 1 3\\n2 1 3\\n2 1 3\", \"2 5\\n5 1 3 4 2\\n2 5 3 1 4\\n2 3 1 4 5\\n2 5 4 3 1\", \"2 5\\n5 1 3 4 2\\n2 5 3 1 4\\n2 3 1 6 5\\n2 5 4 3 1\", \"2 5\\n5 1 3 4 2\\... | {
"index": "code_r1_train_169"
} |
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\\n2 2\\n\", \"2 2\\n5 4\\n\", \"2 1\\n1 5\\n\", \"2 1\\n3 1\\n\", \"2 1\\n1 3\\n\", \"2 1\\n3 1\\n\", \"2 2\\n5 4\\n\", \"2 1\\n1 5\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_170"
} |
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 0\\n02\\n64\\n\", \"2 2 3\\n15\\n52\\n\", \"2 2 9\\n82\\n68\\n\", \"2 2 2\\n82\\n68\\n\", \"2 2 2\\n44\\n68\\n\", \"2 2 3\\n15\\n67\\n\", \"2 2 10\\n98\\n12\\n\", \"2 2 10\\n98\\n75\\n\"], \"outputs\": [\"8\\n1\\nR\\n\", \"-1\\n\", \"-1\\n\", \"-1\", \"12\\n2... | {
"index": "code_r1_train_171"
} |
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\\nb\\n\", \"a\\nb\\n\", \"a\\nc\\n\", \"ddddd\\nd\\n\", \"ww?ww\\nw\\n\", \"?????\\nn\\n\", \"ww?ww\\nw\\n\", \"?????\\nn\\n\"], \"outputs\": [\"0\\n\", \"0\", \"0\\n\", \"5\\n\", \"5\\n\", \"5\\n\", \"5\", \"5\"]}"
} | {
"index": "code_r1_train_172"
} |
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 12 10\\n4 3 10\\n\", \"2\\n8 12 10\\n4 3 10\\n\", \"2\\n8 12 10\\n4 6 10\\n\", \"2\\n6 12 10\\n4 3 10\\n\", \"2\\n14 12 10\\n4 6 10\\n\", \"2\\n19 12 10\\n4 6 10\\n\", \"1\\n1 5244319080000 30030\\n\", \"1\\n1 5942671135120 30030\\n\"], \"outputs\": [\"Fini... | {
"index": "code_r1_train_173"
} |
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 0\\n0 0\\n\", \"2\\n0 0\\n0 0\\n\", \"2\\n0 0\\n0 1\\n\", \"2\\n1 0\\n0 1\\n\", \"2\\n1 0\\n0 0\\n\", \"2\\n0 1\\n0 1\\n\", \"2\\n1 0\\n1 0\\n\", \"2\\n0 1\\n1 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"1\... | {
"index": "code_r1_train_174"
} |
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 10 0 9\\n5\\n\", \"1 10 0 9\\n5\\n\", \"2 24 21 22\\n23 1\\n\", \"2 24 14 16\\n17 2\\n\", \"4 3 0 0\\n1 1 1 1\\n\", \"2 24 22 23\\n22 2\\n\", \"4 3 0 0\\n1 1 1 1\\n\", \"2 24 22 23\\n22 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"4\\n\", \"... | {
"index": "code_r1_train_175"
} |
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\\n0\\n\", \"1\\n1\\n\", \"2\\n1 2\\n\", \"2\\n4 2\\n\", \"2\\n2 3\\n\", \"2\\n4 2\\n\", \"2\\n2 3\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_176"
} |
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 1\\n\", \"1 1\\n1\\n1 1\\n\", \"1 1\\n-1\\n1 1\\n\", \"1 1\\n-1\\n1 1\\n\", \"1 1\\n-1\\n0 1\\n\", \"1 1\\n-1\\n1 2\\n\", \"1 1\\n-1\\n1 3\\n\", \"1 1\\n-1\\n-1 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\... | {
"index": "code_r1_train_177"
} |
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\", \"8\", \"3\", \"5\", \"7\", \"0\", \"1\", \"9\"], \"outputs\": [\"76\\n\", \"624\\n\", \"30\\n\", \"141\\n\", \"400\\n\", \"0\\n\", \"1\\n\", \"885\\n\"]}"
} | {
"index": "code_r1_train_178"
} |
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\\n3\\n1 1 0\\n1 0 1\\n1 1 0\\n5\\n3\\n1 1 1 0 1\\n1 1 0 1 0\\n1 0 0 0 1\\n0\\n0\", \"3\\n3\\n1 1 0\\n1 0 1\\n0 1 0\\n5\\n3\\n1 1 0 0 1\\n1 1 0 1 0\\n1 0 0 0 1\\n0\\n0\", \"3\\n3\\n1 1 0\\n1 0 1\\n0 1 0\\n5\\n3\\n1 1 0 0 1\\n1 1 0 1 0\\n1 1 1 0 1\\n0\\n0\", \"3\... | {
"index": "code_r1_train_179"
} |
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 7 100\\n\", \"2 1 100000000000\\n\", \"1234 56789 314159265\\n\", \"5 826766933 11100722310\\n\", \"18 395432867 10840610026\\n\", \"1000000000 1000000000 100\\n\", \"384836991 191890310 91047313\\n\", \"782177068 404011431 1793399970\\n\"], \"outputs\": [\"9\... | {
"index": "code_r1_train_180"
} |
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\", \"3\", \"9\", \"6\", \"8\", \"4\", \"0\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"Yes\"]}"
} | {
"index": "code_r1_train_181"
} |
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\\n4\\n\", \"1\\n7\\n1\\n7\\n\", \"1\\n0\\n0\\n0\\n\", \"1\\n0\\n1\\n4\\n\", \"1\\n0\\n0\\n0\\n\", \"1\\n7\\n1\\n7\\n\", \"1\\n0\\n2\\n4\\n\", \"1\\n7\\n1\\n3\\n\"], \"outputs\": [\"0\\n\", \"7\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"7\\n\", \"0\\n\", \"7\... | {
"index": "code_r1_train_182"
} |
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\": [\"7055 945\", \"7055 699\", \"5344 1543\", \"7055 1543\", \"10323 699\", \"10323 293\", \"10426 293\", \"15714 1543\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_183"
} |
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\\n3 4 1\\n5 2 1\\n3 4 3\", \"3\\n3 4 1\\n5 2 2\\n3 4 3\", \"3\\n3 4 1\\n5 0 2\\n3 4 3\", \"3\\n3 0 1\\n5 0 2\\n1 4 3\", \"3\\n3 0 1\\n7 0 2\\n1 4 3\", \"3\\n3 1 1\\n7 0 2\\n1 4 3\", \"3\\n0 1 1\\n7 0 2\\n1 4 3\", \"3\\n0 1 1\\n0 0 2\\n1 4 3\"], \"outputs\": [\"... | {
"index": "code_r1_train_184"
} |
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 1\\n3 1 1\\n1\\n\", \"1\\n3 1\\n3 1 1\\n1\\n\", \"1\\n3 1\\n3 2 1\\n1\\n\", \"1\\n4 2\\n4 4 1 2\\n2 1\\n\", \"1\\n4 2\\n4 4 1 2\\n2 1\\n\", \"1\\n4 2\\n4 3 1 2\\n2 1\\n\", \"1\\n4 2\\n6 3 1 2\\n2 1\\n\", \"1\\n4 1\\n4 4 1 2\\n2 1\\n\"], \"outputs\": [\"NO\\... | {
"index": "code_r1_train_185"
} |
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\\n0\\n\", \"1\\n1\\n\", \"1\\n42\\n\", \"1\\n17\\n\", \"1\\n123\\n\", \"1\\n167\\n\", \"1\\n123\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"1764\\n\", \"289\\n\", \"15129\\n\", \"27889\\n\", \"15129\\n\"]}"
} | {
"index": "code_r1_train_186"
} |
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\": [\"atcoddrregularcontest\", \"ssetabcrdpuflrrdaemtn\", \"nstcebmrmrteqbfcaress\", \"rdscrblracsfldraqdqso\", \"jrpddbrrqrrm_qnfsecec\", \"cenesebp_mrrprraddprj\", \"qsadmbdbqok^r`qtmore_\", \"atooddrregularccntest\"], \"outputs\": [\"b\\n\", \"g\\n\", \"d\\n\", \"e\... | {
"index": "code_r1_train_187"
} |
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\\n180.3\\n168.2\\n165.5\\n175.3\", \"4\\n180.3\\n168.42932428490565\\n165.5\\n175.3\", \"4\\n180.68754203533285\\n168.42932428490565\\n165.5\\n175.3\", \"4\\n180.95536695412983\\n168.42932428490565\\n165.5\\n175.3\", \"4\\n180.95536695412983\\n168.4293242849056... | {
"index": "code_r1_train_188"
} |
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 1\\n1\\n\", \"2\\n3 5 2\\n7 5\", \"2\\n3 5 1\\n7 5\", \"2\\n3 5 1\\n0 5\", \"2\\n2 5 1\\n0 5\", \"2\\n2 9 1\\n0 5\", \"2\\n2 9 1\\n0 2\", \"2\\n2 1 1\\n0 2\"], \"outputs\": [\"1\\n\", \"10\\n\", \"9\\n\", \"5\\n\", \"5\\n\", \"5\\n\", \"2\\n\", \"2\\n\"]}"
... | {
"index": "code_r1_train_189"
} |
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\\nb\\n1\\n\", \"1\\nb\\n1\\n\", \"1\\nb\\n2\\n\", \"3\\nb?a\\n1\\n\", \"3\\nb?a\\n1\\n\", \"3\\nba?\\n1\\n\", \"3\\n?ab\\n1\\n\", \"5\\nbb?a?\\n1\\n\"], \"outputs\": [\"0\\n\", \"0\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_190"
} |
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 0\", \"2\\n1 1\", \"2\\n0 2\", \"2\\n2 2\", \"2\\n0 1\", \"2\\n2 0\", \"2\\n0 0\", \"2\\n0 3\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_191"
} |
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 5\\n2 4\\n2 6\", \"2\\n2 5\\n2 4\\n2 6\", \"2\\n0 5\\n2 4\\n2 6\", \"2\\n0 5\\n2 4\\n2 5\", \"2\\n0 5\\n2 4\\n2 3\", \"2\\n1 5\\n2 4\\n3 6\", \"2\\n0 10\\n2 4\\n2 3\", \"2\\n0 12\\n2 4\\n2 3\"], \"outputs\": [\"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\"... | {
"index": "code_r1_train_192"
} |
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 10 9 5\\n1 2 3 4 5 6 7 8 9 1\\n1 1 9 2 3\\n\", \"10 1 9 5\\n1\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n1\\n1 1 9 2 3\\n\", \"10 1 9 5\\n1\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n1\\n1 1 9 2 3\\n\", \"1 10 9 5\\n1 2 3 4 5 6 7 8 9 1\\n1 1 9 2 3\\n\", \"1 10 9 5\\n1 2 3 3 5 6 ... | {
"index": "code_r1_train_193"
} |
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\\n4\\n\", \"1\\n1\\n\", \"1\\n4\\n\", \"1\\n2\\n\", \"1\\n5\\n\", \"1\\n3\\n\", \"2\\n3 6\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_194"
} |
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 2\\n1 2\\n\", \"2\\n1 2\\n1 2\\n\", \"2\\n3 1 2 3\\n1 3\\n\", \"2\\n3 1 2 3\\n1 1\\n\", \"2\\n3 1 2 3\\n1 1\\n\", \"2\\n3 1 2 3\\n1 3\\n\", \"2\\n1 100\\n2 2 100\\n\", \"2\\n1 100\\n2 2 100\\n\"], \"outputs\": [\"2 \\n\", \"2 \\n\", \"3 \\n\", \"1 \\n\", \"... | {
"index": "code_r1_train_195"
} |
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 2\\n0 0\\n3\\n3 3\\n0 0\\n0 3\", \"2\\n2\\n1 2\\n1 0\\n3\\n3 3\\n0 0\\n0 3\", \"2\\n2\\n1 2\\n1 0\\n3\\n3 3\\n1 0\\n0 3\", \"2\\n2\\n1 2\\n1 0\\n3\\n3 3\\n2 0\\n0 3\", \"2\\n2\\n1 2\\n1 0\\n3\\n3 3\\n2 0\\n0 0\", \"2\\n2\\n1 2\\n0 0\\n3\\n3 6\\n0 0\\n0 ... | {
"index": "code_r1_train_196"
} |
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 3\\n2\\n\", \"1 6\\n4\\n\", \"1 2\\n1\\n\", \"1 7\\n6\\n\", \"1 5\\n2\\n\", \"1 9\\n6\\n\", \"1 8\\n5\\n\", \"1 7\\n4\\n\"], \"outputs\": [\"3\\n0 1 2 \", \"3\\n0 2 4 \", \"2\\n0 1 \", \"7\\n0 1 2 3 4 5 6 \", \"5\\n0 1 2 3 4 \", \"3\\n0 3 6 \", \"8\\n0 1 2 3 4 ... | {
"index": "code_r1_train_197"
} |
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\\n\", \"6 2\\n\", \"6 3\\n\", \"6 4\\n\", \"6 5\\n\", \"6 6\\n\", \"2 2\\n\", \"6 1\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_198"
} |
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\\n\", \"3 2\\n\", \"1 1\\n\", \"3 1\\n\", \"3 3\\n\", \"3 4\\n\", \"4 1\\n\", \"4 3\\n\"], \"outputs\": [\"2 1 \\n\", \"1 3 2 \\n\", \"1 \\n\", \"1 2 3 \\n\", \"2 3 1 \\n\", \"3 2 1 \\n\", \"1 2 3 4 \\n\", \"1 3 4 2 \\n\"]}"
} | {
"index": "code_r1_train_199"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.