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\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"0\\n\", \"20\\n\", \"10\\n\", \"12\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"0\\n\", \"20\\n\", \"01\\n\", \"12\\n\"]}"
} | {
"index": "code_r1_train_500"
} |
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 2\\n\", \"1\\n0 0\\n\", \"1\\n1 0\\n\", \"1\\n1 1\\n\", \"1\\n1 2\\n\", \"1\\n0 79\\n\", \"1\\n0 10\\n\", \"1\\n0 -1\\n\"], \"outputs\": [\"3\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"13\\n\", \"4\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_501"
} |
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\": [\"iNociNociN\", \"iNobiNociN\", \"iNoaiNociN\", \"iNoaiNochN\", \"NhcoNiaoNi\", \"NhcoNiNoai\", \"NhcoNjNoai\", \"NhboNjNoai\"], \"outputs\": [\"Love iNoc!\\n\", \"mitomerarenaiWA\\n\", \"mitomerarenaiWA\\n\", \"mitomerarenaiWA\\n\", \"mitomerarenaiWA\\n\", \"mitom... | {
"index": "code_r1_train_502"
} |
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 C\\nC\\n\", \"2 2 W\\nKW\\nKW\\n\", \"2 2 W\\nKW\\nKX\\n\", \"2 2 W\\nKW\\nLW\\n\", \"2 2 W\\nKV\\nLW\\n\", \"3 2 W\\nOO\\nWW\\nWW\\n\", \"3 3 U\\nUOO\\nUVV\\nUVV\\n\", \"1 10 H\\n....DDHHHH\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\... | {
"index": "code_r1_train_503"
} |
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\", \"5 2\\n2 4\\n2 5\", \"5 2\\n1 5\\n2 5\", \"5 1\\n1 5\\n2 5\", \"5 1\\n0 5\\n2 5\", \"5 2\\n1 4\\n2 8\", \"5 2\\n0 5\\n2 5\", \"4 1\\n1 5\\n2 5\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_504"
} |
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 100\", \"1\\n0 101\", \"1\\n0 111\", \"1\\n1 111\", \"1\\n2 111\", \"1\\n2 101\", \"1\\n4 101\", \"1\\n0 001\"], \"outputs\": [\"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\"]}"
} | {
"index": "code_r1_train_505"
} |
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 5 1\\n-\\n\", \"4 1 6 1\\n-\\n\", \"4 2 6 1\\n-\\n\", \"4 1 5 1\\n-\\n\", \"1 1 4 2\\n-+\\n\", \"1 1 4 2\\n-+\\n\", \"2 2 3 3\\n+-+\\n\", \"2 2 3 3\\n+-+\\n\"], \"outputs\": [\"999999228\\n\", \"999998454\\n\", \"999998073\\n\", \"999999228\\n\", \"3\\n\", \"... | {
"index": "code_r1_train_506"
} |
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\\n0 0\", \"1 0\\n1 0\", \"1 0\\n1 1\", \"0 0\\n1 1\", \"0 1\\n1 1\", \"0 1\\n2 1\", \"0 1\\n4 1\", \"0 1\\n4 2\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_507"
} |
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\\n\", \"2\\n2 1\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"3\\n1 2 3\\n\", \"3\\n2 3 1\\n\", \"3\\n3 2 1\\n\", \"3\\n1 3 3\\n\"], \"outputs\": [\"0 0\\n\", \"0 1\\n\", \"0 0\\n\", \"0 1\\n\", \"0 0\\n\", \"0 1\\n\", \"2 1\\n\", \"1 0\\n\"]}"
} | {
"index": "code_r1_train_508"
} |
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\\n0\\n0\", \"3\\n1\\n1\\n0\", \"3\\n2\\n1\\n0\", \"3\\n2\\n1\\n1\", \"3\\n0\\n1\\n1\", \"3\\n1\\n1\\n1\", \"3\\n1\\n1\\n2\", \"3\\n1\\n0\\n1\"], \"outputs\": [\"3.1\\n3\\n3\\n\", \"3.1\\n3.1\\n3\\n\", \"3.14\\n3.1\\n3\\n\", \"3.14\\n3.1\\n3.1\\n\", \"3\\n3.... | {
"index": "code_r1_train_509"
} |
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 3 1\\n6 13\\n\", \"2 1 3 0\\n50 50\\n\", \"2 1 3 0\\n50 64\\n\", \"2 1 3 0\\n10 64\\n\", \"2 1 3 1\\n10 64\\n\", \"2 1 3 1\\n10 13\\n\", \"2 2 5 7\\n14 50\\n\", \"2 2 9 7\\n14 50\\n\"], \"outputs\": [\"2\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"2\\n\",... | {
"index": "code_r1_train_510"
} |
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\", \"0\", \"2\", \"4\", \"9\", \"5\", \"7\", \"6\"], \"outputs\": [\"96\\n\", \"1\\n\", \"2\\n\", \"8\\n\", \"160\\n\", \"16\\n\", \"60\\n\", \"30\"]}"
} | {
"index": "code_r1_train_511"
} |
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\\ngg\\n\", \"2\\nzg\\n\", \"2\\ngg\\n\", \"2\\nzg\\n\", \"2\\nfg\\n\", \"2\\ngz\\n\", \"2\\nfh\\n\", \"2\\nhf\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_512"
} |
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 3 1\\naba\\n\", \"3 3 0\\naba\\n\", \"3 3 1\\naba\\n\", \"4 1 1\\nabcd\\n\", \"4 1 2\\nabcd\\n\", \"4 2 3\\nabdd\\n\", \"4 1 3\\nabcd\\n\", \"4 1 3\\nabdd\\n\"], \"outputs\": [\"7\\n\", \"6\\n\", \"7\\n\", \"4\\n\", \"4\\n\", \"8\\n\", \"4\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_513"
} |
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\": [\"14\\n04/21 09:00 I 000\\n04/21 09:00 I 001\\n04/21 09:15 I 002\\n04/21 09:30 O 001\\n04/21 09:45 O 000\\n04/21 10:00 O 002\\n04/28 09:00 I 003\\n04/28 09:15 I 000\\n04/28 09:30 I 004\\n04/28 09:45 O 004\\n04/28 10:00 O 000\\n04/28 10:15 O 003\\n04/29 20:00 I 002\... | {
"index": "code_r1_train_514"
} |
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\\n100\\n\", \"1\\n200\\n\", \"1\\n200\\n\", \"1\\n100\\n\", \"1\\n200\\n\", \"2\\n100 100\\n\", \"2\\n200 200\\n\", \"2\\n100 200\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_515"
} |
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\", \"2\\n1\\n\", \"1\\n1\\n\", \"0\\n1\\n\", \"2\\n0\\n\", \"0\\n0\\n\", \"0\\n00\\n\", \"1\\n00\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"3\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_516"
} |
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\\ninsert 30\\ninsert 88\\ninsert 3\\ninsert 2\\ninsert 20\\nfind 12\\ninsert 1\\ninsert 24\\nfind 2\\nprint\", \"10\\ninsert 30\\ninsert 88\\ninsert 3\\ninsert 2\\ninsert 20\\nfind 12\\ninsert 1\\ninsert 24\\nfind 16\\nprint\", \"10\\ninsert 30\\ninsert 88\\ni... | {
"index": "code_r1_train_517"
} |
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\\n\", \"5 1 4\\n\", \"2 1 1\\n\", \"2 3 2\\n\", \"10 3 8\\n\", \"1 5 10\\n\", \"5 37 10\\n\", \"100 1 1\\n\"], \"outputs\": [\"1\\n\", \"-1\", \"-1\", \"-1\\n\", \"-1\", \"10\\n\", \"1\\n1\\n1\\n1\\n6\\n\", \"-1\"]}"
} | {
"index": "code_r1_train_518"
} |
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\", \"2 2\", \"2 1\", \"3 2\", \"4 1\", \"3 3\", \"5 1\", \"1 3\"], \"outputs\": [\"1\\n\", \"111\\n101\\n111\\n\", \"1\\n1\\n1\\n\", \"111\\n101\\n111\\n101\\n111\\n101\\n111\\n\", \"1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n\", \"1111111\\n... | {
"index": "code_r1_train_519"
} |
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\\n\", \"7\\n\", \"1\\n\", \"9\\n\", \"2\\n\", \"3\\n\", \"5\\n\", \"6\\n\"], \"outputs\": [\"24\", \"64\", \"1\", \"36\", \"2\\n\", \"4\\n\", \"16\\n\", \"12\"]}"
} | {
"index": "code_r1_train_520"
} |
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 2\", \"4 1\", \"2 0\", \"9 1\", \"1 1\", \"4 2\", \"4 2\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"4\\n\", \"3\\n\", \"9\\n\", \"1\", \"3\", \"3\\n\"]}"
} | {
"index": "code_r1_train_521"
} |
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 2\\n\", \"1 1 0\\n\", \"2 1 1\\n\", \"2 2 0\\n\", \"3 1 2\\n\", \"3 2 2\\n\", \"3 3 1\\n\", \"4 2 0\\n\"], \"outputs\": [\"6\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_522"
} |
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\\n0\\n\", \"1\\n3\\n\", \"1\\n5\\n\", \"1\\n4\\n\", \"1\\n8\\n\"], \"outputs\": [\"0\\n1 \", \"0\\n1 \", \"0\\n2\\n\", \"0\\n0\\n\", \"0\\n3\\n\", \"0\\n5\\n\", \"0\\n4\\n\", \"0\\n8\\n\"]}"
} | {
"index": "code_r1_train_523"
} |
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 3 5\\n0 3 6\\n8 8 8\", \"3\\n4 5 5\\n0 8 6\\n3 8 0\", \"3\\n4 5 5\\n0 8 6\\n4 8 0\", \"3\\n4 5 5\\n1 8 6\\n4 8 0\", \"3\\n4 5 5\\n2 8 6\\n4 8 0\", \"3\\n4 5 5\\n2 8 2\\n4 8 0\", \"3\\n4 3 5\\n4 3 6\\n8 8 8\", \"3\\n4 5 5\\n-2 3 6\\n8 8 8\"], \"outputs\": [\... | {
"index": "code_r1_train_524"
} |
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\", \"5\\n\", \"9\\n\", \"8\\n\", \"8\\n\", \"2\\n\", \"6\\n\", \"4\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_525"
} |
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 3\\n1 3\\n\", \"2\\n1 3\\n1 3\\n\", \"3\\n1 2\\n2 3\\n3 4\\n\", \"10\\n1 1\\n8 10\\n1 7\\n6 8\\n5 7\\n1 9\\n8 8\\n6 10\\n1 4\\n3 4\\n\", \"10\\n2 8\\n8 10\\n1 6\\n1 2\\n7 10\\n1 9\\n6 8\\n3 4\\n1 3\\n5 8\\n\", \"10\\n1 4\\n1 12\\n5 7\\n5 5\\n2 5\\n1 7\\n1 1... | {
"index": "code_r1_train_526"
} |
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\", \"2\\n1 2\\n\", \"2\\n2 2\\n\", \"2\\n2 3\\n\", \"2\\n2 1\\n\", \"4\\n1 1 1 3\\n\", \"4\\n1 2 1 4\\n\", \"4\\n1 1 1 2\\n\"], \"outputs\": [\"YES\", \"NO\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_527"
} |
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\\n\", \"2 1 2\\n\", \"3 5 2\\n\", \"2 2 1\\n\", \"3 1 3\\n\", \"2 2 3\\n\", \"1 1 4\\n\", \"1 1 2\\n\"], \"outputs\": [\"4\\n\", \"7\\n\", \"11\\n\", \"6\\n\", \"9\\n\", \"10\\n\", \"10\\n\", \"6\\n\"]}"
} | {
"index": "code_r1_train_528"
} |
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\\n00000000000000\\n\", \"4\\n01\\n1010101010111\\n00110001000\\n1\\n\", \"1\\n00000000000000000011111111111111111111\\n\", \"1\\n1101010101111010110101010101001010111010\\n\", \"1\\n10101010101010101010101010101001010101010101010101010101010101010101010000\\n\"... | {
"index": "code_r1_train_529"
} |
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 2 1\\n\", \"3\\n2 1 3\\n\", \"3\\n1 2 3\\n\", \"3\\n3 1 2\\n\", \"5\\n4 2 1 3 5\\n\", \"5\\n3 2 1 4 5\\n\", \"5\\n4 1 2 3 5\\n\", \"10\\n1 9 8 10 2 3 4 6 5 7\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"3\\n\", \"2\\n\", \"3\\n\", \"3\\n\", \"4\\n\", \"6\\n\"... | {
"index": "code_r1_train_530"
} |
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 2\\n1\\n\", \"1 3\\n1\\n\", \"1 4\\n1\\n\", \"1 5\\n3\\n\", \"1 6\\n4\\n\", \"1 7\\n2\\n\", \"1 8\\n3\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_531"
} |
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 55\\n0 1\\n0 2\\n0 3\\n2 1\\n14 2\\n12 3\\n1 6\\n10 2\\n6 1\\n5 1\\n18 2\\n11 3\\n100001 100\\n-1 -1\", \"1 55\\n0 1\\n0 2\\n0 3\\n2 1\\n14 2\\n6 3\\n1 6\\n10 2\\n10 1\\n10 1\\n18 2\\n11 3\\n100001 100\\n-1 -1\", \"1 55\\n0 1\\n0 2\\n0 3\\n2 1\\n14 2\\n12 3\\n1... | {
"index": "code_r1_train_532"
} |
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\\n1\\n1 1\\n1 1\\n\", \"1 1\\n1000000000\\n1 1\\n\", \"1 1\\n1100000000\\n1 1\\n\", \"7 2\\n3 1 2 2 3 6 7\\n1 7\\n3 4\\n\", \"7 2\\n3 1 2 2 1 6 7\\n1 7\\n3 4\\n\", \"7 2\\n2 1 2 2 1 6 7\\n1 7\\n3 4\\n\", \"7 2\\n3 1 2 2 3 6 7\\n1 6\\n3 4\\n\", \"7 2\\n3 1 2 2... | {
"index": "code_r1_train_533"
} |
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\": [\"34 10 1\\n30 42 0\\n1 1 1\\n-1 -1 -1\", \"40 53 -1\\n0 7 -1\\n0 1 -1\\n-1 -1 -1\", \"73 6 -1\\n16 30 0\\n1 2 -1\\n-1 -1 -1\", \"92 64 0\\n16 30 -1\\n0 2 0\\n-1 -1 -1\", \"40 53 -1\\n0 7 -1\\n0 1 -2\\n-1 -1 -1\", \"92 64 0\\n16 30 -1\\n1 2 0\\n-1 -1 -1\", \"40 53 ... | {
"index": "code_r1_train_534"
} |
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\", \"M\\n\", \"o2^\\\"t\\n\", \"t\\\"^2o\\n\", \"\\\\Pk|a\\\\'\\n\", \"'\\\\a|kP\\\\\\n\", \"s3=MS8%X\\n\", \"X%8SM=3s\\n\"], \"outputs\": [\"142\\n\", \"78\\n\", \"10\\n170\\n210\\n54\\n22\\n\", \"210\\n234\\n202\\n46\\n86\\n\", \"198\\n48\\n52\\n152\\n184\... | {
"index": "code_r1_train_535"
} |
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\", \"9\\n\", \"9\\n\", \"1\\n\", \"5\\n\", \"8\\n\", \"27\\n\", \"81\\n\"], \"outputs\": [\"1\\n\", \"9\\n\", \"9\\n\", \"1\\n\", \"4\\n\", \"1\\n\", \"22\\n\", \"11\\n\"]}"
} | {
"index": "code_r1_train_536"
} |
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\\n0\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n-2\\n\", \"2\\n1 1\\n\", \"2\\n1 1\\n\", \"2\\n0 1\\n\"], \"outputs\": [\"Yes\\n\", \"No\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_537"
} |
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\\nST\\n\", \"1 2 1\\nST\\n\", \"2 1 4\\nS\\nT\\n\", \"1 3 3\\nSaT\\n\", \"2 1 1\\nS\\nT\\n\", \"1 3 3\\nTyS\\n\", \"1 4 1\\nSxyT\\n\", \"3 3 1\\naaa\\naaa\\nTSa\\n\"], \"outputs\": [\"\\n\", \"\\n\", \"\\n\", \"a\\n\", \"\\n\", \"y\\n\", \"-1\\n\", \"\\n\"]... | {
"index": "code_r1_train_538"
} |
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\\nwest\\neast\\nw`it\", \"4\\nwesu\\neast\\nw`it\", \"4\\nwetu\\neast\\nw`it\", \"4\\nwetv\\n`est\\ntiaw\", \"4\\ntewv\\n`ftt\\nsaiw\", \"4\\nwetu\\ne`st\\nw`it\", \"4\\nwetu\\n`est\\nw`it\", \"4\\nwetu\\n`est\\nwait\"], \"outputs\": [\"4\\n\", \"5\\n\", \"6\\n... | {
"index": "code_r1_train_539"
} |
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 1 4\\n2\\n1 1\\n0 3\", \"3\\n2 1 4\\n2\\n1 1\\n0 6\", \"3\\n2 1 4\\n2\\n1 0\\n2 3\", \"3\\n2 1 4\\n2\\n1 0\\n0 3\", \"3\\n1 1 4\\n2\\n1 1\\n0 6\", \"3\\n2 0 4\\n2\\n1 0\\n0 3\", \"3\\n1 1 0\\n2\\n1 1\\n0 6\", \"3\\n1 1 0\\n2\\n1 1\\n0 8\"], \"outputs\": [\"... | {
"index": "code_r1_train_540"
} |
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\", \"2\\n1 70\\n\", \"2\\n1 71\\n\", \"2\\n1 70\\n\", \"2\\n1 71\\n\", \"2\\n1 100\\n\", \"2\\n2 100\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"69\\n\", \"70\\n\", \"69\\n\", \"70\\n\", \"99\\n\", \"98\\n\"]}"
} | {
"index": "code_r1_train_541"
} |
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 0 0 1\\n0 0 0 1 0\\n\", \"2\\n0 0 0 0 1\\n0 0 0 1 0\\n\", \"2\\n0 0 0 0 1\\n0 0 0 2 0\\n\", \"2\\n0 0 -1 0 1\\n0 0 0 2 0\\n\", \"2\\n0 -1 -1 0 1\\n0 0 0 2 0\\n\", \"2\\n0 -1 -1 0 2\\n0 0 0 2 0\\n\", \"2\\n0 -1 -1 0 2\\n0 -1 0 2 0\\n\", \"2\\n5 15 40 70 11... | {
"index": "code_r1_train_542"
} |
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 1\\n0 2\\n1 0\\n1 1\\n1 2\\n2 0\\n2 1\\n2 2\\n\", \"2\\n0 0\\n0 1\\n0 2\\n0 3\\n1 0\\n1 2\\n2 0\\n2 1\\n2 2\\n\", \"2\\n0 0\\n0 1\\n0 2\\n0 3\\n1 0\\n1 2\\n2 0\\n2 1\\n2 2\\n\", \"2\\n0 0\\n0 1\\n0 2\\n1 0\\n1 1\\n1 2\\n2 0\\n2 1\\n2 2\\n\", \"2\\n1 2... | {
"index": "code_r1_train_543"
} |
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\", \"8\", \"7\", \"14\", \"26\", \"-6\", \"32\"], \"outputs\": [\"1\\n\", \"0\\n\", \"2\\n\", \"2\", \"3\\n\", \"5\\n\", \"-1\\n\", \"6\\n\"]}"
} | {
"index": "code_r1_train_544"
} |
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\\n0 ) 0\\n7 * 0\\n1 ( 0\", \"3\\n0 ( 8\\n10 ) 2\\n0 ( 3\", \"3\\n0 ( 8\\n10 ) 4\\n0 ( 3\", \"3\\n0 ( 8\\n10 ) 4\\n0 ' 3\", \"3\\n0 ( 3\\n10 ) 4\\n0 ' 3\", \"3\\n-1 ) 0\\n8 ( 19\\n4 ' 2\", \"3\\n-2 ) 0\\n7 ) 0\\n4 ( 11\", \"3\\n0 ( 8\\n10 ) 5\\n10 ( 5\"], \"outp... | {
"index": "code_r1_train_545"
} |
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 4\\n\", \"2 4\\n\", \"2 1\\n\", \"7 1\\n\", \"4 8\\n\", \"1 2\\n\", \"2 3\\n\", \"1 3\\n\"], \"outputs\": [\"1 0\\n\", \"2 0\\n\", \"0 1\\n\", \"1 1\\n\", \"4 0\\n\", \"1 0\\n\", \"2 3\\n\", \"1 1\\n\"]}"
} | {
"index": "code_r1_train_546"
} |
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\\n.\\n\", \"1 1 1\\n*\\n\", \"1 1 1\\n.\\n\", \"1 1 1\\n*\\n\", \"1 2 2\\n..\\n\", \"1 2 1\\n..\\n\", \"1 2 3\\n..\\n\", \"1 2 2\\n..\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"0\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_547"
} |
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\", \"0\\n1\\n\", \"10\\n01\\n\", \"000\\n111\\n\", \"1110\\n1010\\n\", \"01110\\n01100\\n\", \"011101\\n000001\\n\", \"011101\\n000000\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"11\\n\", \"111\\n\", \"0100\\n\", \"00010\\n\", \"011100\\n\", \"011101\\n\"... | {
"index": "code_r1_train_548"
} |
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\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"8\\n\"], \"outputs\": [\"7\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"8\\n\"]}"
} | {
"index": "code_r1_train_549"
} |
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 7\", \"2 1\", \"0 0\", \"8 3\", \"3 1\", \"7 3\", \"4 1\", \"7 1\"], \"outputs\": [\"Alice\\n\", \"Bob\\n\", \"Draw\\n\", \"Alice\\n\", \"Bob\\n\", \"Alice\\n\", \"Bob\\n\", \"Bob\\n\"]}"
} | {
"index": "code_r1_train_550"
} |
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\", \"1\\n.\\n\", \"1\\n/\\n\", \"1\\n0\\n\", \"1\\n-\\n\", \"1\\n,\\n\", \"1\\n+\\n\", \"1\\n*\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_551"
} |
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\\n1 2 3 2 0 1\", \"6\\n1 2 3 2 0 0\", \"6\\n0 2 3 2 0 0\", \"6\\n0 2 3 1 0 0\", \"6\\n1 2 3 2 2 1\", \"6\\n0 2 3 1 -1 0\", \"6\\n0 2 3 0 -1 0\", \"6\\n0 2 3 -1 -1 0\"], \"outputs\": [\"3\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\", \"3\\n\", \"3\\n\", \"2\\n\"]}"... | {
"index": "code_r1_train_552"
} |
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 2 2 5\\n1 3 5 3\\n4 1 4 4\\n5 2 7 2\\n6 1 6 3\\n4 5 6 7\", \"6\\n2 2 2 5\\n1 3 5 3\\n4 1 4 4\\n2 2 7 2\\n6 1 6 3\\n6 5 6 7\", \"6\\n2 2 2 5\\n1 3 2 3\\n4 1 4 4\\n5 2 7 2\\n6 1 6 3\\n4 5 6 7\", \"6\\n2 2 2 5\\n1 3 5 3\\n4 1 4 0\\n5 2 7 2\\n6 1 6 3\\n6 5 6 7\... | {
"index": "code_r1_train_553"
} |
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\\n\", \"1\\n\", \"0010\", \"1010\", \"0000\", \"1000\"], \"outputs\": [\"0\\n\", \"0\", \"0\\n\", \"0\\n\", \"2\\n\", \"4\\n\", \"0\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_554"
} |
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 0 0 0\\n3 3 0 0\\n6 4 1 0\\n6 3 3 0\\n3 3 3 2\\n\", \"5\\n3 0 0 0\\n3 3 0 0\\n6 4 1 0\\n6 6 3 0\\n3 3 3 2\\n\", \"5\\n3 0 0 0\\n3 5 0 0\\n6 3 1 0\\n6 6 3 0\\n1 3 3 4\\n\", \"5\\n3 0 0 0\\n3 3 0 0\\n6 4 1 0\\n6 6 0 0\\n3 3 3 2\\n\", \"5\\n5 0 0 0\\n3 3 0 0\\... | {
"index": "code_r1_train_555"
} |
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 1 4\", \"9 2 9\", \"0 0 4\", \"3 2 9\", \"0 2 0\", \"0 0 0\", \"2 2 9\", \"3 1 4\"], \"outputs\": [\"3\\n\", \"11\\n\", \"1\\n\", \"8\\n\", \"2\\n\", \"0\\n\", \"7\\n\", \"5\"]}"
} | {
"index": "code_r1_train_556"
} |
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 4 1\\n1\\n\", \"1 4 1\\n1\\n\", \"2 2 2\\n1 3\\n\", \"2 3 1\\n1 2\\n\", \"2 3 1\\n1 2\\n\", \"2 2 2\\n2 3\\n\", \"2 2 2\\n1 3\\n\", \"3 3 2\\n3 5 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"0\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_557"
} |
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\": [\"g\\n\", \"D\\n\", \"h\\n\", \"Ba\\n\", \"ab\\n\", \"aB\\n\", \"bA\\n\", \"Ab\\n\"], \"outputs\": [\".g\\n\", \".d\\n\", \".h\\n\", \".b\\n\", \".b\\n\", \".b\\n\", \".b\\n\", \".b\\n\"]}"
} | {
"index": "code_r1_train_558"
} |
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\\n2 1\\n\", \"2\\n2 2\\n\", \"2\\n2 4\\n\", \"2\\n13 13\\n\", \"2\\n13 13\\n\", \"6\\n1 2 3 1 1 2\\n\", \"6\\n3 1 2 3 3 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"4\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_559"
} |
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 3 4 2 5\", \"8 2 3 1 3\", \"7 1 3 1 3\", \"7 1 6 2 5\", \"0 3 8 2 7\", \"2 1 3 1 2\", \"8 2 5 1 3\", \"4 2 7 1 2\"], \"outputs\": [\"0\\n\", \"280\\n\", \"595\\n\", \"105\\n\", \"1\\n\", \"2\\n\", \"581\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_560"
} |
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 0\\n\", \"1 1\\n1 0\\n\", \"3 3\\n2 0\\n1 1\\n3 2\\n\", \"3 3\\n3 0\\n1 1\\n2 2\\n\", \"3 3\\n3 0\\n1 1\\n2 2\\n\", \"3 3\\n2 0\\n1 1\\n3 2\\n\", \"3 3\\n2 0\\n1 1\\n2 2\\n\", \"3 3\\n2 -1\\n1 1\\n3 2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"1... | {
"index": "code_r1_train_561"
} |
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\\n28\\n\", \"1\\n-1\\n\", \"1\\n-2\\n\", \"3\\n1 2 3\\n\", \"3\\n3 2 1\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_562"
} |
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 4 5 6\\n1 2\\n\", \"2 3 4 5 6\\n1 2\\n\", \"2 6 4 5 6\\n1 2\\n\", \"4 7 2 3 9\\n1 2 3 4\\n\", \"4 7 2 3 9\\n0 2 3 4\\n\", \"4 7 2 3 9\\n0 2 6 4\\n\", \"4 7 4 3 9\\n1 2 3 4\\n\", \"4 7 2 3 9\\n1 2 3 4\\n\"], \"outputs\": [\"11\\n\", \"11\\n\", \"14\\n\", \"34\... | {
"index": "code_r1_train_563"
} |
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\\n488408742907\\n\", \"4\\n7\\n11\\n240\\n17179869184\\n\", \"22\\n1\\n3\\n11\\n43\\n107\\n235\\n491\\n3499\\n12203\\n28587\\n98155\\n229227\\n1013995\\n2062571\\n15685995\\n32463211\\n234643051\\n1509641835\\n3657125483\\n66233778651\\n477441124711\\n546451189... | {
"index": "code_r1_train_564"
} |
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 5\\n\", \"2\\n1 1\\n\", \"2\\n1 1\\n\", \"2\\n6 5\\n\", \"2\\n7 12\\n\", \"2\\n7 12\\n\", \"2\\n4 12\\n\", \"2\\n4 17\\n\"], \"outputs\": [\"1\\n1\\n\", \"0\\n\", \"0\", \"1\\n1 \", \"0\\n\", \"0\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_565"
} |
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\", \"3\\n\", \"6\\n\", \"5\\n\", \"8\\n\", \"5\\n\", \"8\\n\"], \"outputs\": [\"1\", \"2\", \"2\", \"4\", \"2\", \"4\", \"2\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_566"
} |
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\\n86 90 69 58 2 65 58 88 117 34 45 46 89 42 1 38 97 42 76 80 24 3 50 83 7 71\\n19771 12979 184 4763 10544 17930 13403 3047 67400 9740 8100 92 4424 14730 366 15905 6534 4650 11469 3628 8433 2994 9648 16396 20655 11424\\n6674 17707 13855 28350 906 2543 17935 1705... | {
"index": "code_r1_train_567"
} |
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\", \"1\\n)\\n\", \"2\\n((\\n\", \"2\\n)(\\n\", \"2\\n()\\n\", \"2\\n))\\n\", \"3\\n(()\\n\", \"4\\n))))\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"2\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_568"
} |
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\", \"5\", \"8\", \"6\", \"2\", \"9\", \"7\", \"3\"], \"outputs\": [\"5\\n\", \"8\\n\", \"16\\n\", \"10\\n\", \"1\\n\", \"20\\n\", \"14\\n\", \"3\"]}"
} | {
"index": "code_r1_train_569"
} |
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\\n0\", \"3\\n0 0 1\", \"3\\n0 0 2\", \"3\\n0 0 3\", \"3\\n0 1 0\", \"3\\n1 3 0\", \"3\\n1 0 0\"], \"outputs\": [\"1\\n\", \"1\", \"10\\n\", \"7\\n\", \"4\\n\", \"8\\n\", \"2\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_570"
} |
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 20\\n2 1 7\\n3 1 40\", \"3\\n2 3 20\\n2 1 7\\n3 1 40\", \"3\\n3 5 20\\n1 1 7\\n3 1 40\", \"3\\n2 2 20\\n2 1 30\\n3 1 47\", \"3\\n2 2 20\\n2 1 30\\n3 2 47\", \"3\\n2 2 20\\n2 1 29\\n3 2 47\", \"3\\n2 2 20\\n2 1 29\\n3 4 47\", \"3\\n4 2 20\\n2 1 35\\n3 0 71... | {
"index": "code_r1_train_571"
} |
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 2\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"2\\n1 1\\n\", \"2\\n3 1\\n\", \"2\\n1 0\\n\", \"2\\n2 0\\n\", \"2\\n1 -1\\n\"], \"outputs\": [\"2\\n\", \"3\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \"2\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_572"
} |
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 8 9\", \"3\\n4 3 47\", \"3\\n4 5 47\", \"3\\n4 5 66\", \"3\\n4 5 99\", \"3\\n4 5 69\", \"3\\n2 5 69\", \"3\\n2 8 69\"], \"outputs\": [\"DENIED\\n\", \"DENIED\\n\", \"DENIED\\n\", \"DENIED\\n\", \"DENIED\\n\", \"DENIED\\n\", \"DENIED\\n\", \"DENIED\\n\"]}"
} | {
"index": "code_r1_train_573"
} |
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\", \"1 1\\n\", \"1 2\\n\", \"1 2\\n\", \"1 1\\n\", \"7 7\\n\", \"2 3\\n\", \"9 1\\n\"], \"outputs\": [\"5\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"38760\\n\", \"7\\n\", \"45\\n\"]}"
} | {
"index": "code_r1_train_574"
} |
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\", \"1 1\\n\", \"5 30\\n\", \"7 30\\n\", \"7 26\\n\", \"7 21\\n\", \"7 20\\n\", \"5 30\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"15\\n\", \"8\\n\", \"22\\n\", \"14\\n\", \"8\\n\", \"15\\n\"]}"
} | {
"index": "code_r1_train_575"
} |
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 9\\n0 1\\n0 2\\n3 4\\n5 7\\n5 6\\n3 7\\n6 8\\n7 8\\n8 9\\n3\\n0 1\\n5 9\\n1 3\", \"10 9\\n0 1\\n0 2\\n3 4\\n5 7\\n5 6\\n3 7\\n0 8\\n7 8\\n8 9\\n3\\n0 1\\n5 9\\n1 3\", \"10 9\\n0 1\\n0 2\\n3 4\\n5 7\\n5 6\\n3 7\\n0 8\\n7 8\\n8 5\\n3\\n0 1\\n5 9\\n1 3\", \"16 9\... | {
"index": "code_r1_train_576"
} |
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 3 2 5\\n\", \"1 1 1 1\\n\", \"1 1 2 1\\n\", \"2 4 1 1\\n\", \"4 4 4 5\\n\", \"2 6 3 2\\n\", \"7 3 6 3\\n\", \"2 4 6 6\\n\"], \"outputs\": [\"NO\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_577"
} |
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\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_578"
} |
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\\n4 2 3 4 5\\n2 1 2\\n2 3 5\\n2 2 5\\n6 1 2 3 4 5 6\\n\", \"1\\n6\\n4 2 3 4 5\\n2 1 3\\n2 3 5\\n2 2 5\\n6 1 2 3 4 5 6\\n\", \"1\\n6\\n4 2 3 4 5\\n2 1 2\\n2 3 5\\n2 2 3\\n6 1 2 3 4 5 6\\n\", \"1\\n5\\n4 2 3 4 5\\n2 1 2\\n2 3 5\\n2 2 3\\n6 1 2 3 4 5 6\\n\", \... | {
"index": "code_r1_train_579"
} |
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\", \"9\", \"7\", \"2\", \"4\", \"8\", \"6\", \"3\"], \"outputs\": [\"540\\n\", \"1260\\n\", \"900\\n\", \"0\\n\", \"360\\n\", \"1080\\n\", \"720\\n\", \"180\"]}"
} | {
"index": "code_r1_train_580"
} |
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 4\\n8 6\", \"2\\n5 2\\n5 3\", \"2\\n9 6\\n5 7\", \"2\\n9 7\\n8 3\", \"2\\n9 7\\n1 9\", \"2\\n6 7\\n8 7\", \"2\\n6 7\\n5 9\", \"2\\n3 7\\n4 6\"], \"outputs\": [\"2\\n3\\n\", \"1\\n2\\n\", \"4\\n5\\n\", \"4\\n2\\n\", \"4\\n1\\n\", \"6\\n3\\n\", \"6\\n5\\n\", ... | {
"index": "code_r1_train_581"
} |
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\\n1\\n3\\n0\", \"6\\n4\\n2\\n0\", \"6\\n0\\n2\\n0\", \"6\\n4\\n0\\n0\", \"6\\n1\\n0\\n0\", \"6\\n5\\n8\\n0\", \"6\\n2\\n2\\n0\", \"6\\n2\\n3\\n0\"], \"outputs\": [\"1\\n0\\n0\\n\", \"1\\n1\\n0\\n\", \"1\\n\", \"1\\n1\\n\", \"1\\n0\\n\", \"1\\n1\\n1\\n\", \"1\\n... | {
"index": "code_r1_train_582"
} |
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\": [\"xyz\\nacc\", \"xyz\\nadc\", \"xyy\\nadc\", \"xyy\\nacd\", \"yyx\\nacd\", \"xyy\\ncad\", \"xyz\\ncad\", \"zyx\\ncad\"], \"outputs\": [\"xayczc\\n\", \"xaydzc\\n\", \"xaydyc\\n\", \"xaycyd\\n\", \"yaycxd\\n\", \"xcyayd\\n\", \"xcyazd\\n\", \"zcyaxd\\n\"]}"
} | {
"index": "code_r1_train_583"
} |
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[]\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\", \"1\\n[]\", \"0\\n\"]}"
} | {
"index": "code_r1_train_584"
} |
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 3\", \"6 4\", \"4 0\", \"9 0\", \"2 7\", \"1 3\", \"1 4\", \"1 7\"], \"outputs\": [\"0\\n\", \"1\\n\", \"4\\n\", \"9\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_585"
} |
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 28\\n5 4\\n5 2\\n25 1\\n50 2\\n4\\n228\\n714\\n100\\n168\\n7\\n1 8\\n4 10\\n9 10\\n17 5\\n6 1\\n10 15\\n110 5\\n3\\n692\\n574\\n787\\n0\", \"5\\n2 28\\n5 4\\n5 2\\n25 1\\n50 2\\n4\\n228\\n714\\n100\\n168\\n7\\n1 8\\n4 10\\n9 10\\n17 5\\n4 1\\n10 15\\n110 5\... | {
"index": "code_r1_train_586"
} |
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\": [\"+adabacaba0\\n\", \"+adabacab`0\\n\", \"+acabadab\\n+caba0aba\\n\", \"+`cabadab\\n+caba0aba\\n\", \"+acabadab\\n+caca0aba\\n\", \"+acabadab\\n+caba0ab`\\n\", \"+cab\\n+abac\\n-abac\\n+baca\\n\", \"+dab\\n+abac\\n-abac\\n+baca\\n\"], \"outputs\": [\"0\\n\", \"0\\n... | {
"index": "code_r1_train_587"
} |
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\\n6\\n5\\n1\\n0\", \"5\\n4\\n3\\n1\\n0\", \"5\\n7\\n5\\n1\\n0\", \"5\\n4\\n0\\n1\\n0\", \"5\\n9\\n5\\n8\\n0\", \"5\\n7\\n4\\n1\\n0\", \"5\\n3\\n4\\n1\\n0\", \"5\\n3\\n8\\n1\\n0\"], \"outputs\": [\"1113122116\\n312211\\n\", \"1113122114\\n1211\\n\", \"1113122117... | {
"index": "code_r1_train_588"
} |
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 2\\n1\\n\", \"1 2\\n2\\n\", \"1 1\\n1\\n\", \"1 2\\n2\\n\", \"1 2\\n1\\n\", \"1 3\\n1\\n\", \"1 2\\n0\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"4\\n\", \"1\\n\", \"4\\n\", \"2\\n\", \"3\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_589"
} |
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 2\\n1\\n2\\n\", \"1 1 1\\n1\\n1\\n\", \"2 2 1\\n1 2\\n1 2\\n\", \"2 2 1\\n1 2\\n2 1\\n\", \"2 2 1\\n1 2\\n4 1\\n\", \"2 2 1\\n1 1\\n4 1\\n\", \"2 2 1\\n2 1\\n4 1\\n\", \"2 2 1\\n2 1\\n4 2\\n\"], \"outputs\": [\"0\\n\", \"1\\n1 \", \"1\\n1 \", \"1\\n1 \", \"0\... | {
"index": "code_r1_train_590"
} |
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\\n-4\\n\", \"2\\n1\\n-1\\n\", \"2\\n-4\\n4\\n\", \"2\\n-5\\n6\\n\", \"2\\n-5\\n6\\n\", \"2\\n-4\\n4\\n\", \"2\\n1\\n-1\\n\", \"2\\n-5\\n9\\n\"], \"outputs\": [\"second\\n\", \"second\\n\", \"first\\n\", \"first\\n\", \"first\\n\", \"first\\n\", \"second\\n\... | {
"index": "code_r1_train_591"
} |
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 0\", \"0 5\", \"1 3\", \"0 0\", \"2 2\", \"4 6\", \"2 3\"], \"outputs\": [\"1\\n\", \"6\\n\", \"10\\n\", \"3\\n\", \"0\\n\", \"2\\n\", \"21\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_592"
} |
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 5 7\\n\", \"3\\n1 5 5\\n\", \"3\\n1 5 10\\n\", \"3\\n1 5 10\\n\", \"6\\n30 432 8 193 7 1\\n\", \"6\\n30 432 8 243 7 1\\n\", \"6\\n30 216 8 243 7 1\\n\", \"6\\n41 216 8 243 8 1\\n\"], \"outputs\": [\"1\\n3\\n4\\n\", \"1\\n3\\n3\\n\", \"1\\n3\\n3\\n\", \"1\\n... | {
"index": "code_r1_train_593"
} |
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\\n5\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n6\\n\", \"1\\n4\\n\", \"1\\n8\\n\", \"2\\n2 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_594"
} |
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 9\\n\", \"4 1\\n\", \"3 2\\n\", \"5 5\\n\", \"3 3\\n\", \"4 3\\n\", \"5 3\\n\", \"6 2\\n\"], \"outputs\": [\"0\\n\", \"22\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"232\\n\"]}"
} | {
"index": "code_r1_train_595"
} |
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.\\n\", \"1 1\\n.\\n\", \"1 3\\n.R.\\n\", \"1 3\\n.R.\\n\", \"2 2\\n.R\\nR.\\n\", \"2 2\\n.R\\nR.\\n\", \"2 2\\n.R\\n.R\\n\", \"2 2\\nR.\\n.R\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_596"
} |
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\\n16\\n\", \"1 1\\n16\\n\", \"2 2\\n200 300\\n\", \"2 2\\n200 300\\n\", \"2 2\\n200 226\\n\", \"3 2\\n40 20 30\\n\", \"2 1\\n10000 17\\n\", \"3 1\\n21 25 16\\n\"], \"outputs\": [\"16\\n\", \"16\", \"200\\n\", \"200\", \"200\\n\", \"30\\n\", \"10000\\n\", \"25... | {
"index": "code_r1_train_597"
} |
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\": [\"x\\n\", \"x\\n\", \"y\\n\", \"z\\n\", \"{\\n\", \"|\\n\", \"zz\\n\", \"xy\\n\"], \"outputs\": [\"x\\n\", \"x\\n\", \"y\\n\", \"z\\n\", \"{\\n\", \"|\\n\", \"zz\\n\", \"xy\\n\"]}"
} | {
"index": "code_r1_train_598"
} |
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\\n5 6\\n1\\n\", \"2 1\\n1 1\\n100 100\\n5\\n\", \"2 2\\n11 14\\n15 18\\n2 9\\n\", \"2 2\\n11 14\\n17 18\\n2 9\\n\", \"4 4\\n1 4\\n7 8\\n9 10\\n12 14\\n4 5 3 8\\n\", \"3 2\\n1 5\\n6 12\\n14 100000000000\\n10000000000 4\\n\", \"5 9\\n1 2\\n3 3\\n5 7\\n11 ... | {
"index": "code_r1_train_599"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.