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\\n1\\n2\", \"2\\n2\\n2\", \"2\\n2\\n3\", \"2\\n3\\n2\", \"2\\n2\\n5\", \"2\\n4\\n5\", \"2\\n3\\n5\", \"2\\n5\\n5\"], \"outputs\": [\"ba\\ncba\", \"cba\\ncba\\n\", \"cba\\ndcba\\n\", \"dcba\\ncba\\n\", \"cba\\nfedcba\\n\", \"edcba\\nfedcba\\n\", \"dcba\\nfedcba\... | {
"index": "code_r1_train_3800"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"ABC\\n\", \"AAA\\n\", \"ACB\\n\", \"???\\n\", \"?C?\\n\", \"?BC\\n\", \"??AC\", \"A??C\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"8\"]}"
} | {
"index": "code_r1_train_3801"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7 6\\n\", \"2\\n1 1\\n\", \"2\\n1 1\\n\", \"2\\n1 2\\n\", \"2\\n3 6\\n\", \"2\\n7 6\\n\", \"2\\n3 11\\n\", \"2\\n96 97\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\", \"1\\n\", \"2\\n\", \"0\", \"5\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_3802"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n5 3\\n3 1\\n5\\n0\\n01800.00\\n0\\n0.00100\\n3\\nx 0\\nd 3\\n# .\\n0xd21#xd098d\", \"4\\n2\\n5 3\\n3 1\\n5\\n0\\n01800.00\\n0\\n0.00100\\n3\\nx 0\\nd 3\\n# .\\n0xd21#dd098x\", \"4\\n2\\n5 3\\n3 1\\n5\\n-1\\n01800.00\\n0\\n0.00100\\n3\\nx 0\\nd 3\\n# /\\n0... | {
"index": "code_r1_train_3803"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n\", \"0 0 1\\n\", \"0 1 1\\n\", \"3 0 3\\n\", \"1 1 1\\n\", \"1 0 3\\n\", \"0 1 3\\n\", \"1 0 7\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"1 000000001\\n\", \"2\\n\", \"1 000000001\\n\", \"2\\n\", \"1 000000001\\n\"]}"
} | {
"index": "code_r1_train_3804"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 2 1\\n1 1000000\\n\", \"1\\n2 2 1\\n1 1000000\\n\", \"1\\n2 0 1\\n1 1000000\\n\", \"1\\n2 50 5\\n530153 82051\\n\", \"1\\n2 50 7\\n530153 82051\\n\", \"1\\n2 70 7\\n136401 50048\\n\", \"1\\n2 58 7\\n530153 82051\\n\", \"1\\n2 50 7\\n530153 35266\\n\"], \"ou... | {
"index": "code_r1_train_3805"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n1\\n2\\n1\\n2\\n\", \"4 3\\n1\\n2\\n1\\n3\\n\", \"4 2\\n1\\n2\\n1\\n0\\n\", \"4 2\\n1\\n3\\n1\\n0\\n\", \"4 2\\n1\\n3\\n2\\n0\\n\", \"4 2\\n0\\n3\\n2\\n0\\n\", \"3 2\\n0\\n6\\n2\\n0\\n\", \"1 3\\n1\\n0\\n1\\n1\\n\"], \"outputs\": [\"0\\n0\\n0\\n0\\n\", \"0\... | {
"index": "code_r1_train_3806"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na\\nA\\nA-a 2:1\\n\", \"2\\na\\nA\\nA-a 1:2\\n\", \"2\\na\\nA\\na-A 1:2\\n\", \"2\\na\\nA\\na-A 2:1\\n\", \"4\\nA\\nB\\nC\\nD\\nA-B 1:1\\nA-C 2:2\\nA-D 1:0\\nB-C 0:1\\nB-D 0:3\\nC-D 0:3\\n\", \"4\\nA\\nB\\nC\\nD\\nA-B 1:1\\nA-C 2:2\\nA-D 1:0\\nB-C 0:1\\nB-D 0... | {
"index": "code_r1_train_3807"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"a1.01\\n\", \"a0.11\\n\", \"a0.01\\n\", \"a0.40\\n\", \"a0.11\\n\", \"a0.40\\n\", \"a1.01\\n\", \"a0.01\\n\"], \"outputs\": [\"1.01\\n\", \"0.11\\n\", \"0.01\\n\", \"0.40\\n\", \"0.11\", \"0.40\", \"1.01\", \"0.01\"]}"
} | {
"index": "code_r1_train_3808"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n4\\n1 2 3 4\", \"1\\n4\\n1 2 2 4\", \"1\\n4\\n1 2 2 2\", \"1\\n4\\n1 2 0 4\", \"1\\n4\\n1 1 1 1\", \"1\\n4\\n1 2 1 4\", \"1\\n4\\n1 0 2 2\", \"1\\n4\\n1 1 2 2\"], \"outputs\": [\"3\", \"2\\n\", \"1\\n\", \"3\\n\", \"0\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_3809"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 0\\n\", \"1\\n1 2 1\\n\", \"1\\n2 1 0\\n\", \"1\\n6 3 8\\n\", \"1\\n4 1 0\\n\", \"1\\n1 4 2\\n\", \"1\\n7 4 2\\n\", \"1\\n8 1 0\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_3810"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\na := ? OR ?\\n\", \"1 6\\na := ? OR ?\\n\", \"1 6\\nb := ? OR ?\\n\", \"1 3\\na := 0110110011\\n\", \"1 3\\nb := 0110110011\\n\", \"1 10\\na := 0110110011\\n\", \"1 10\\na := 0110110011\\n\", \"1 10\\na := 0110110111\\n\"], \"outputs\": [\"000000\\n111111\\... | {
"index": "code_r1_train_3811"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n6\\n0\\n6\\n-6\\n0\\n9\\n2\\n2\\n0\\n2\\n-4\\n-1\\n1\\n1\\n6\\n2\\n0\\n-3\\n4\\n3\\n0000\\n-200\\n397\\n0\", \"7\\n-5\\n0\\n6\\n4\\n9\\n-6\\n0\\n13\\n1\\n2\\n1\\n2\\n-2\\n-1\\n1\\n2\\n6\\n2\\n1\\n-3\\n2\\n3\\n0000\\n-200\\n201\\n0\", \"7\\n-5\\n0\\n6... | {
"index": "code_r1_train_3812"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1\\n0\\n\", \"1\\n2\\n\", \"2\\n2 1\\n\", \"2\\n2 1\\n\", \"2\\n2 0\\n\"], \"outputs\": [\"1 \", \"0 \", \"1 \", \"0 \", \"2 \", \":(\\n\", \":(\", \"1 1 \"]}"
} | {
"index": "code_r1_train_3813"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 17\\n3 7\", \"2 20\\n6 3\", \"2 19\\n3 7\", \"2 19\\n3 11\", \"2 12\\n6 11\", \"5 193\\n5 13 7 5 4\", \"5 82\\n22 11 6 7 13\", \"5 82\\n27 11 6 7 13\"], \"outputs\": [\"2\\n\", \"4\\n\", \"3\", \"3\\n\", \"1\\n\", \"198\\n\", \"516\\n\", \"456\\n\"]}"
} | {
"index": "code_r1_train_3814"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n1 2\\n2 3\\n3 4\\n4 5\\n4 6\", \"5 5\\n1 2\\n2 3\\n3 1\\n5 3\\n5 1\", \"6 5\\n1 2\\n2 2\\n3 4\\n4 5\\n5 6\", \"5 5\\n1 2\\n2 3\\n3 2\\n5 4\\n5 1\", \"6 5\\n1 2\\n2 3\\n3 4\\n4 5\\n3 6\", \"9 5\\n1 2\\n2 3\\n3 3\\n0 5\\n4 6\", \"8 5\\n1 1\\n2 3\\n3 1\\n5 3\\... | {
"index": "code_r1_train_3815"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 9 1 3\\n5\\n1 1\\n7 9\\n4 5\\n2 5\\n8 5\\n\", \"4\\n0 9 1 3\\n5\\n1 1\\n2 9\\n4 5\\n2 5\\n8 5\\n\", \"4\\n0 9 1 3\\n5\\n1 1\\n2 9\\n3 5\\n2 5\\n8 5\\n\", \"4\\n0 4 1 3\\n5\\n1 1\\n2 9\\n3 5\\n2 5\\n8 5\\n\", \"4\\n0 9 1 3\\n5\\n1 12\\n7 9\\n4 5\\n2 5\\n8 4\... | {
"index": "code_r1_train_3816"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"1\\n53 5\\n\", \"1\\n60 2\\n\", \"1\\n60 2\\n\", \"1\\n53 5\\n\", \"1\\n2 33\\n\", \"1\\n60 1\\n\", \"1\\n1 33\\n\"], \"outputs\": [\"2\\n\", \"10\\n\", \"4\\n\", \"4\\n\", \"10\\n\", \"33\\n\", \"2\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3817"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"A\\n\", \"G\\n\", \"T\\n\", \"C\\n\", \"C\\n\", \"G\\n\", \"A\\n\", \"T\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3818"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\\n\", \"9\\n\", \"7\\n\", \"10\\n\", \"10\\n\"], \"outputs\": [\"29\", \"92\", \"246\", \"92\\n\", \"246\\n\", \"29\\n\", \"582\", \"582\\n\"]}"
} | {
"index": "code_r1_train_3819"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nbabba\\nabaac\\ncodeforces\\nzeroorez\\nabcdcba\\nbbbbbbb\\na\\n\", \"7\\nabbab\\nabaac\\ncodeforces\\nzeroorez\\nabcdcba\\nbbbbbbb\\na\\n\", \"7\\nabbab\\nabaac\\ncodeforces\\nzeroorez\\nabadcbc\\nbbbbbbb\\na\\n\", \"7\\nabbab\\nabaac\\ncodeforces\\nzeroorez... | {
"index": "code_r1_train_3820"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n1 2\\n1 2\\n\", \"2\\n1 2\\n2 1\\n\", \"3\\n1 2 3\\n2 1 3\\n\", \"3\\n2 3 1\\n1 2 3\\n\", \"3\\n1 2 3\\n1 2 3\\n\", \"4\\n1 2 3 4\\n2 1 4 3\\n\", \"4\\n2 1 4 3\\n3 4 2 1\\n\"], \"outputs\": [\"1 \", \"1 2 \", \"2 1 \", \"2 1 3 \", \"3 1 2 \"... | {
"index": "code_r1_train_3821"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 1\\n1 4 2 6\\n0 0 1 0\\n\", \"3 1\\n1 4 5 6\\n0 0 1 0\\n\", \"3 1\\n1 4 2 5\\n0 0 1 0\\n\", \"3 1\\n1 3 6 7\\n0 0 1 0\\n\", \"3 1\\n1 4 5 9\\n0 0 1 0\\n\", \"3 1\\n1 2 3 4\\n0 0 1 0\\n\", \"3 1\\n1 2 3 10\\n0 0 1 0\\n\", \"3 1\\n1 4 3 10\\n0 0 1 0\\n\"], \"outp... | {
"index": "code_r1_train_3822"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 82 - /\\n4 4 - 7 0 3 * + *\\n0 0 1 + +\", \"1 0 82 - /\\n4 4 - 7 0 3 * + *\\n0 0 1 + +\", \"1 0 82 - /\\n1 4 - 7 0 3 + + *\\n0 0 1 + +\", \"1 0 82 - /\\n1 4 - 7 0 3 * + *\\n0 0 1 + +\", \"1 0 82 - /\\n2 4 - 7 0 3 * + *\\n0 0 1 + +\", \"1 0 82 - /\\n2 4 - 7 0 ... | {
"index": "code_r1_train_3823"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 1\\n1 2\", \"7 5\\n1 2\\n3 4\\n3 5\\n4 1\\n2 6\", \"7 5\\n1 2\\n3 7\\n3 5\\n4 1\\n2 6\", \"7 5\\n1 2\\n3 7\\n3 5\\n4 1\\n2 2\", \"7 5\\n1 2\\n3 7\\n6 5\\n4 1\\n2 2\", \"7 5\\n1 2\\n3 7\\n3 7\\n4 1\\n2 3\", \"7 5\\n1 2\\n2 6\\n6 5\\n4 1\\n2 2\", \"7 5\\n2 2\\n2 ... | {
"index": "code_r1_train_3824"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 0 -3 1 0 1\\n\", \"1\\n6\\n5 -5 -3 1 1 1\\n\", \"1\\n6\\n5 -6 -3 2 1 1\\n\", \"1\\n6\\n5 -4 -4 1 1 1\\n\", \"1\\n6\\n5 -6 -4 2 2 1\\n\", \"1\\n6\\n6 -5 -3 1 0 1\\n\", \"1\\n6\\n3 -6 -4 4 2 1\\n\", \"1\\n6\\n6 -4 -3 1 0 0\\n\"], \"outputs\": [\"2\\n\", \... | {
"index": "code_r1_train_3825"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1337\\n\", \"1\\n1\\n1337\\n\", \"5\\n10011\\n8 7 55 0 4\\n\", \"5\\n10111\\n8 7 60 0 5\\n\", \"5\\n01111\\n5 1 37 3 5\\n\", \"5\\n10011\\n8 7 71 0 4\\n\", \"5\\n10011\\n8 7 55 0 5\\n\", \"5\\n10111\\n8 7 55 0 5\\n\"], \"outputs\": [\"1337\\n\", \"1337\\n... | {
"index": "code_r1_train_3826"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 5 3\\n\", \"10 2 5 4\\n\", \"100 1 5 4\\n\", \"10 6 10 9\\n\", \"27 60 3 1\\n\", \"20 0 28 5\\n\", \"101 1 5 4\\n\", \"10 2 10 9\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"20 0 7\\n\", \"0 0 20\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_3827"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\nz\\n\", \"1\\ny\\n\", \"1\\nx\\n\", \"1\\n{\\n\", \"1\\n|\\n\", \"1\\nz\\n\", \"2\\nir\\n\", \"2\\nir\\n\"], \"outputs\": [\"z\\n\", \"y\\n\", \"x\\n\", \"{\\n\", \"|\\n\", \"z\\n\", \"ri\\n\", \"ri\\n\"]}"
} | {
"index": "code_r1_train_3828"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8\\n3 2\", \"5 8\\n6 2\", \"6 8\\n6 3\", \"5 8\\n1 3\", \"1 7\\n2 6\", \"5 8\\n2 2\", \"12 8\\n6 3\", \"12 8\\n9 3\"], \"outputs\": [\"16\\n\", \"40\\n\", \"12\\n\", \"10\\n\", \"7\\n\", \"8\", \"24\\n\", \"42\\n\"]}"
} | {
"index": "code_r1_train_3829"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n\", \"2\\n1 4\\n\", \"2\\n0 4\\n\", \"3\\n4 1 2\\n\", \"3\\n3 1 2\\n\", \"3\\n3 1 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"3\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3830"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1 1\\n1\\n1\\n1\\n\", \"1 1\\n1\\n0\\n0\\n\", \"5 3\\n00011\\n3\\n1 2 3\\n1\\n4\\n3\\n3 4 5\\n\", \"5 3\\n00011\\n3\\n1 2 3\\n1\\n4\\n3\\n2 4 5\\n\", \"5 3\\n00001\\n3\\n1 2 3\\n1\\n4\\n3\\n2 4 5\\n\", \"5 3\\n00011\\n3\\n1 2 3\\n1\\n4\\n3... | {
"index": "code_r1_train_3831"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 2 6 4\\n\", \"1 1 1 1\\n\", \"3 3 2 4\\n\", \"3 3 2 6\\n\", \"4 2 4 3\\n\", \"5 5 1 1\\n\", \"3 3 2 4\\n\", \"4 2 4 3\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"5\\n\", \"1\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3832"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\\n7 6 5 4 3 2 8 1\\n\", \"1\\n8\\n8 1 7 6 5 4 3 2\\n\", \"1\\n9\\n9 1 8 7 6 5 4 3 2\\n\", \"1\\n10\\n10 3 2 1 9 8 7 6 5 4\\n\", \"1\\n10\\n10 1 9 8 7 6 5 4 3 2\\n\", \"1\\n10\\n8 7 6 5 4 3 9 2 10 1\\n\", \"1\\n10\\n6 5 4 2 9 8 7 1 10 3\\n\", \"1\\n10\\n9 8 ... | {
"index": "code_r1_train_3833"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n3\\n\", \"1\\n7\\n8\\n\", \"4\\n2\\n2\\n\", \"4\\n1\\n3\\n\", \"4\\n1\\n2\\n\", \"4\\n3\\n1\\n\", \"4\\n2\\n1\\n\", \"1\\n1\\n1\\n\"], \"outputs\": [\"YES\\n2 1\\n\", \"NO\\n\", \"YES\\n0 2\\n\", \"YES\\n1 1\\n\", \"YES\\n0 2\\n\", \"YES\\n0 4\\n\", \"YES... | {
"index": "code_r1_train_3834"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n0 1\\n\", \"1 1 2 1\\n0 1\\n\", \"1 1 2 1\\n-1 1\\n\", \"1 1 2 1\\n-1 0\\n\", \"1 0 2 1\\n-1 0\\n\", \"2 24 60 15\\n16 0\\n17 15\\n\", \"2 24 60 16\\n16 0\\n17 15\\n\", \"2 24 60 16\\n13 0\\n17 15\\n\"], \"outputs\": [\"0 0\\n\\n\", \"0 0\\n\\n\", \"0 0... | {
"index": "code_r1_train_3835"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"0101\\n1101001\", \"0101\\n1100000\", \"0101\\n1101000\", \"0101\\n0001000\", \"0101\\n0011001\", \"0101\\n0110001\", \"0101\\n1111001\", \"0101\\n1001001\"], \"outputs\": [\"0000\\n\", \"111\\n\", \"0001\\n\", \"110\\n\", \"1000\\n\", \"0010\\n\", \"000\\n\", \"... | {
"index": "code_r1_train_3836"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9 5\\n\", \"2\\n1 2\\n9 9\\n\", \"2\\n2 1\\n14 5\\n\", \"2\\n2 1\\n14 7\\n\", \"2\\n2 1\\n14 3\\n\", \"2\\n2 1\\n26 7\\n\", \"2\\n2 1\\n28 7\\n\", \"2\\n1 2\\n17 9\\n\"], \"outputs\": [\"5\\n\", \"0\\n\", \"5\\n\", \"7\\n\", \"3\\n\", \"7\\n\", \"7\\n\"... | {
"index": "code_r1_train_3837"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8044\\n530\\n436\\n63\\n4\", \"5\\n554439\\n54\\n2354\\n4\\n0\", \"5\\n163328\\n620\\n703\\n36\\n4\", \"5\\n102891\\n1947\\n0\\n134\\n6\", \"5\\n163328\\n641\\n703\\n62\\n4\", \"5\\n163328\\n425\\n694\\n3\\n40\", \"5\\n83423\\n1947\\n262\\n82\\n6\", \"5\\n163... | {
"index": "code_r1_train_3838"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"01111101111100101010001001011110111001110111110111011111011110110111111011011111\\n1111110111\\n0010000101\\n0110000100\\n0111111011\\n1011100111\\n1100101010\\n1011011111\\n1100010001\\n0111110111\\n0010010111\\n\", \"10110010010001110110110111100100011101101110... | {
"index": "code_r1_train_3839"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n..#\\n..\\n...\", \"3 3\\n..#\\n.#.\\n...\", \"1 3\\n..#\\n#..\\n...\", \"3 3\\n..#\\n#..\\n...\", \"3 3\\n..#\\n#..\\n...\\n\", \"6 37\\n.....................................\\n...#...####...####..###...###...###..\\n..#.#..#...#.##....#...#.#...#.#...#.\\... | {
"index": "code_r1_train_3840"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1\\n1\\n1\\n\", \"1\\n1\\n0\\n\", \"1\\n1\\n1\\n\", \"2\\n1 2\\n0 0\\n\", \"2\\n2 1\\n0 0\\n\", \"2\\n1 2\\n0 1\\n\", \"2\\n2 1\\n1 0\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"3\\n\", \"1\\n\", \"2\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3841"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 0 0 0\", \"4 0 1 0 0 0 0\", \"0 3 0 0 1 0 0\", \"0 3 0 0 2 0 0\", \"6 0 2 0 0 0 0\", \"2 5 1 0 1 2 2\", \"1 4 0 0 4 0 3\", \"0 0 0 0 1 0 0\"], \"outputs\": [\"1\\n\", \"4\\n\", \"3\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3842"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"13\\n23\\n15\\n0\\n0\\n76\\n1\\n0\\n10000\\n2\", \"13\\n14\\n19\\n0\\n6\\n40\\n1\\n0\\n10000\\n1\", \"13\\n0\\n15\\n16\\n17\\n27\\n0\\n3\\n11000\\n0\", \"13\\n14\\n15\\n16\\n0\\n24\\n0\\n3\\n11000\\n0\", \"13\\n14\\n15\\n0\\n24\\n27\\n0\\n0\\n11100\\n1\", \"13\\n... | {
"index": "code_r1_train_3843"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1\\n0 6\\n3 9\\n1 2 -3\\n0 -1 -4\", \"2\\n2 2\\n1 2\\n-4 6\\n3 9\\n1 2 -3\\n-2 0 0\", \"2\\n2 1\\n0 2\\n-3 3\\n3 2\\n1 2 -3\\n0 3 -5\", \"2\\n2 2\\n1 2\\n-2 3\\n3 5\\n1 2 -3\\n-2 3 -5\", \"2\\n2 2\\n1 2\\n-2 3\\n3 2\\n1 2 -3\\n-2 3 -5\", \"2\\n2 2\\n0... | {
"index": "code_r1_train_3844"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 4 1\\n1 1\\n0\\n0\\n\", \"4 4 4 1\\n1 1\\n0\\n0\\n\", \"4 3 2 1\\n1 3\\n798\\n1 2 3\\n\", \"1 1 3 4\\n2 3\\n1 1\\n1 1 1\\n\", \"1 1 3 4\\n2 3\\n1 1\\n1 1 1\\n\", \"4 3 1 1\\n1 3\\n798\\n1 2 3\\n\", \"1 2 3 4\\n2 3\\n1 1\\n1 1 1\\n\", \"4 3 1 1\\n1 3\\n798\\n2... | {
"index": "code_r1_train_3845"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\", \"6\", \"9\", \"7\", \"5\", \"8\"], \"outputs\": [\"a\\n\", \"d\\n\", \"c\\n\", \"f\\n\", \"i\\n\", \"g\\n\", \"e\\n\", \"h\\n\"]}"
} | {
"index": "code_r1_train_3846"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\\n2 2\\n1 2\\n3 4\\n\\n4 3\\n1 3 1\\n3 1 1\\n1 2 2\\n1 1 3\\n\\n2 3\\n5 3 4\\n2 5 1\\n\\n4 2\\n7 9\\n8 1\\n9 6\\n10 8\\n\\n2 4\\n6 5 2 1\\n7 9 7 2\\n\", \"5\\n\\n2 2\\n1 2\\n3 4\\n\\n4 3\\n1 3 1\\n3 1 1\\n1 2 2\\n1 1 3\\n\\n2 3\\n5 3 4\\n2 5 1\\n\\n4 2\\n7 9... | {
"index": "code_r1_train_3847"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 1\", \"1 1\", \"3 4\", \"6 1\", \"2 1\", \"6 2\", \"4 3\", \"4 1\"], \"outputs\": [\"14\\n\", \"3\\n\", \"1\\n\", \"63\\n\", \"7\\n\", \"56\\n\", \"13\\n\", \"25\\n\"]}"
} | {
"index": "code_r1_train_3848"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nbacba\", \"5 2\\nbacaa\", \"5 1\\nbabba\", \"5 1\\nbabbb\", \"5 1\\nbabbc\", \"5 2\\nbabbc\", \"5 2\\ncabab\", \"5 1\\nbacaa\"], \"outputs\": [\"aaaab\\n\", \"aaaaa\\n\", \"aabba\\n\", \"abbbb\\n\", \"abbcc\\n\", \"aabbc\\n\", \"aabab\\n\", \"aaaac\\n\"]}"
... | {
"index": "code_r1_train_3849"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"ah\\n1\\nha\\n\", \"bb\\n1\\naa\\n\", \"aa\\n1\\naa\\n\", \"bb\\n1\\nbb\\n\", \"ba\\n1\\ncc\\n\", \"ha\\n1\\nha\\n\", \"aa\\n1\\naa\\n\", \"ez\\n1\\njl\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\... | {
"index": "code_r1_train_3850"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\", \"0\", \"7\", \"6\", \"5\"], \"outputs\": [\"2\\n\", \"3\\n\", \"4\\n\", \"1\\n\", \"0\\n\", \"7\\n\", \"6\\n\", \"5\\n\"]}"
} | {
"index": "code_r1_train_3851"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3 0 001\", \"27 0 101\", \"27 0 001\", \"50 0 001\", \"1001 0 2\", \"11000 1 1\", \"11000 1 2\"], \"outputs\": [\"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_3852"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nS1 G1\", \"2\\nS1 H1\", \"5\\nH4 B9 S4 D2 C3\", \"5\\nH4 C9 S4 D2 C2\", \"5\\nH4 B9 S4 E2 C3\", \"5\\nI4 C9 S4 D2 C2\", \"5\\nH3 B9 S4 E2 C3\", \"5\\nH3 B9 S4 E2 B3\"], \"outputs\": [\"S1 G1\\nStable\\nS1 G1\\nStable\\n\", \"S1 H1\\nStable\\nS1 H1\\nStable\",... | {
"index": "code_r1_train_3853"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n10\\n\", \"1\\n11\\n\", \"1\\n-1\\n\", \"1\\n17\\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_3854"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"enw\\nbbc\\nabcdefghijklmnopqrst\\nz\\n#\", \"enw\\ncbb\\nabcdefggijklmnopqrst\\nz\\n#\", \"enw\\ncbb\\nabcsefggijklmnopqrdt\\nz\\n#\", \"enw\\nabb\\nabcdefghijklmnopqrst\\nz\\n#\", \"enw\\nbcc\\nabcdefghijklmnopqrst\\nz\\n#\", \"enw\\ncbb\\ntsrqponmlkjihgfedcba\... | {
"index": "code_r1_train_3855"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n682736 1001010010\\n\", \"1\\n580408 1001010010\\n\", \"1\\n1042324 1001010010\\n\", \"1\\n4162847 1001001010\\n\", \"1\\n1133909 1001010010\\n\", \"1\\n6379767 1001001010\\n\", \"1\\n1133909 1001010011\\n\", \"1\\n6379767 1001101010\\n\"], \"outputs\": [\"50... | {
"index": "code_r1_train_3856"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"1\\n0 2\\n\", \"1\\n1 2\\n\", \"1\\n0 4\\n\", \"1\\n1 1\\n\", \"1\\n2 1\\n\", \"1\\n2 2\\n\", \"1\\n4 2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3857"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n10\\n\", \"1\\n10\\n\", \"1\\n11\\n\", \"2\\n2 2\\n\", \"2\\n2 2\\n\", \"2\\n4 2\\n\", \"3\\n1 2 3\\n\", \"2\\n1 100\\n\"], \"outputs\": [\"0 \\n\", \"0 \", \"0\\n\", \"1 \\n\", \"1 \", \"0\\n\", \"0 2 \\n\", \"0 \\n\"]}"
} | {
"index": "code_r1_train_3858"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n1\\n\", \"1 1\\n4\\n6\\n\", \"1 1\\n1\\n1\\n\", \"1 1\\n4\\n6\\n\", \"1 1\\n8\\n6\\n\", \"1 1\\n7\\n0\\n\", \"1 1\\n5\\n0\\n\", \"1 1\\n9\\n6\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3859"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3 2\\n\", \"5 3\\n\", \"5 3\\n\", \"7 5\\n\", \"3 3\\n\", \"4 8\\n\", \"1 1\\n\"], \"outputs\": [\"1\\n\", \"24\\n\", \"800\\n\", \"800\\n\", \"181888\", \"54\", \"93320\", \"1\\n\"]}"
} | {
"index": "code_r1_train_3860"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"20\\n4\\n6\\n2\\n1\\n3\\n8\\n2\\n0\\n0\", \"20\\n4\\n6\\n2\\n1\\n0\\n8\\n2\\n0\\n0\", \"20\\n4\\n6\\n2\\n1\\n1\\n8\\n2\\n0\\n0\", \"20\\n4\\n3\\n4\\n1\\n3\\n8\\n2\\n0\\n0\", \"20\\n4\\n6\\n2\\n2\\n3\\n8\\n2\\n0\\n0\", \"20\\n4\\n6\\n2\\n1\\n0\\n8\\n2\\n1\\n0\", \... | {
"index": "code_r1_train_3861"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nRRRR\\nRSP\\nS\\n\", \"3\\nRRRR\\nRSP\\nS\\n\", \"3\\nRRRR\\nSSP\\nS\\n\", \"3\\nQRRR\\nRSP\\nS\\n\", \"3\\nRRRR\\nSSP\\nR\\n\", \"3\\nQRRR\\nRSP\\nR\\n\", \"3\\nRRSR\\nSSP\\nS\\n\", \"3\\nRRTR\\nSSP\\nS\\n\"], \"outputs\": [\"PPPP\\nPPP\\nR\\n\", \"PPPP\\nPP... | {
"index": "code_r1_train_3862"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 8\\n\", \"1 1\\n1 1\\n\", \"1 1\\n5 8\\n\", \"1 1\\n1 1\\n\", \"1 1\\n0 1\\n\", \"1 1\\n9 8\\n\", \"1 0\\n10 20\\n\", \"1 0\\n12 12\\n\"], \"outputs\": [\"8\", \"1\", \"8\", \"1\", \"0\\n\", \"8\\n\", \"10\", \"12\"]}"
} | {
"index": "code_r1_train_3863"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"AtCoder X Contert\", \"AtCoder W Contert\", \"AtCoder V Contert\", \"AtCocer Y Cpnteqt\", \"AtCoder X Contest\", \"AtCoder X Contest\\n\", \"AtCoder nSuke Contest\", \"AtCoder Sunke Contest\"], \"outputs\": [\"AXC\\n\", \"AWC\\n\", \"AVC\\n\", \"AYC\\n\", \"AXC\"... | {
"index": "code_r1_train_3864"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"191\", \"111\", \"199\", \"111\", \"199\", \"191\", \"119\", \"999\"], \"outputs\": [\"919\\n\", \"999\\n\", \"911\\n\", \"999\\n\", \"911\\n\", \"919\\n\", \"991\", \"111\"]}"
} | {
"index": "code_r1_train_3865"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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..\\n.oo.\\nx...\\noox.\\n\", \"x.ox\\nox..\\nx.o.\\noo.x\\n\", \"x..x\\n..oo\\no...\\nx.xo\\n\", \"o.x.\\no...\\n.x..\\nooxx\\n\", \".xox\\no.x.\\nx.o.\\n..o.\\n\", \"o.oo\\n.x.o\\nx.x.\\n.x..\\n\", \".xx.\\n.xoo\\n.oox\\n....\\n\", \"xxox\\no.x.\\nx.oo\\nxo.o... | {
"index": "code_r1_train_3866"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n4\\n\", \"1\\n5\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n97\\n\", \"1\\n97\\n\", \"1\\n32\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\", \"0\\n\", \"0\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3867"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n2 6 2 5\\n\", \"1\\n2\\n4 6 4 12\\n\", \"1\\n2\\n1 12 1 5\\n\", \"1\\n2\\n8 12 9 8\\n\", \"1\\n2\\n8 12 1 1\\n\", \"1\\n2\\n2 2 7 12\\n\", \"1\\n1\\n5 12 0 5\\n\", \"1\\n2\\n2 4 2 12\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n... | {
"index": "code_r1_train_3868"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 6\\n3 9\\n2 200\\n7 99\\n0 0\", \"1 3\\n1 6\\n6 9\\n2 377\\n7 99\\n0 0\", \"1 3\\n1 2\\n6 9\\n2 377\\n7 99\\n0 0\", \"2 3\\n1 6\\n6 9\\n2 200\\n7 24\\n0 0\", \"1 3\\n1 6\\n6 18\\n2 457\\n7 2\\n0 0\", \"1 5\\n1 6\\n6 18\\n2 457\\n7 2\\n0 0\", \"2 7\\n2 8\\... | {
"index": "code_r1_train_3869"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1\\n1\\n0\\n\", \"2\\n1 1\\n1 0\\n\", \"2\\n1 1\\n0 0\\n\", \"2\\n1 2\\n1 0\\n\", \"2\\n0 2\\n1 0\\n\", \"2\\n1 1\\n1 0\\n\", \"3\\n0 2 2\\n1 1 0\\n\"], \"outputs\": [\"1\\n0 \\n\", \"1\\n0 \", \"-1\\n\", \"2\\n1 0\\n\", \"1\\n0\\n\", \"1\\n0\\n... | {
"index": "code_r1_train_3870"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n40\\n0\\n222220\\n44033055505550666011011111090666077705550301110\\n000555555550000330000444000080000200004440000\", \"5\\n0\\n20\\n222220\\n44033055505550666011011111090666077705550301110\\n000555555550000330000444000080000200004440000\", \"5\\n40\\n30\\n222... | {
"index": "code_r1_train_3871"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n6\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"2\\n1 1\\n\", \"2\\n3 9\\n\", \"2\\n1 1\\n\", \"2\\n3 9\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_3872"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1 2\\n\", \"3 3 1 2 3\\n\", \"1 1 1 1 1\\n\", \"2 1 1 2 2\\n\", \"3 3 3 1 1\\n\", \"5 1 1 5 5\\n\", \"4 4 4 1 1\\n\", \"5 5 5 1 1\\n\"], \"outputs\": [\"2\\n\", \"6\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3873"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 4 1 3\\n2\\n4 3\", \"4 1\\n0 4 1 3\\n2\\n4 3\", \"4 10\\n3 2 3 3\\n2\\n4 3\", \"4 16\\n3 7 3 3\\n2\\n4 0\", \"4 10\\n3 1 3 3\\n2\\n4 3\", \"4 10\\n3 4 3 3\\n2\\n4 3\", \"4 10\\n3 4 3 3\\n2\\n4 3\\n\", \"5 9\\n4 4 2 3 4\\n5\\n1 4 2 3 5\"], \"outputs\": [\"... | {
"index": "code_r1_train_3874"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\"], \"outputs\": [\"4\\n\", \"10\\n\", \"20\\n\", \"35\\n\", \"56\\n\", \"83\\n\", \"116\\n\", \"155\\n\"]}"
} | {
"index": "code_r1_train_3875"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n0 1\\n\", \"2\\n0 1\\n\", \"2\\n0 2\\n\", \"2\\n73 37\\n\", \"2\\n73 37\\n\", \"2\\n129 37\\n\", \"2\\n129 16\\n\", \"2\\n129 20\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"36\\n\", \"36\\n\", \"92\\n\", \"113\\n\", \"109\\n\"]}"
} | {
"index": "code_r1_train_3876"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 5 6 10 1\", \"4 5 1 2 3\\n\", \"2 4 1 3 1\\n\", \"4 5 1 2 2\\n\", \"4 5 3 7 1\\n\", \"1 1 1 1 1\\n\", \"7 7 3 6 2\\n\", \"5 5 1 6 2\\n\"], \"outputs\": [\"NO\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_3877"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n4 3 7\\n7 1 9\\n\", \"3\\n2 2 3\\n4 3 9\\n7 1 9\\n\", \"3\\n2 2 3\\n6 1 9\\n7 1 1\\n\", \"3\\n2 1 3\\n6 1 9\\n7 0 2\\n\", \"3\\n4 2 3\\n4 3 7\\n7 1 9\\n\", \"3\\n2 2 3\\n6 3 9\\n7 2 9\\n\", \"3\\n3 2 3\\n6 1 9\\n7 1 9\\n\", \"3\\n2 2 3\\n6 2 9\\n7 0 1... | {
"index": "code_r1_train_3878"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 4\\n\", \"3\\n4 5 1\\n\", \"4\\n5 4 3 5\\n\", \"6\\n4 5 4 5 4 4\\n\", \"6\\n4 5 3 4 5 4\\n\", \"6\\n3 3 3 4 5 5\\n\", \"7\\n4 5 3 4 5 4 1\\n\", \"8\\n4 4 4 4 5 5 5 5\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\"... | {
"index": "code_r1_train_3879"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n3 5 8\\n3 3\\n5 8 20 0\\n5 3\\n3 3 8 17 9\", \"3\\n3 3\\n3 5 8\\n4 3\\n5 1 0 20\\n5 6\\n3 1 8 14 15\", \"3\\n3 3\\n3 5 8\\n4 3\\n5 1 0 20\\n5 6\\n3 1 5 14 15\", \"3\\n3 3\\n0 2 8\\n4 3\\n5 8 36 8\\n1 3\\n3 2 8 17 15\", \"3\\n3 3\\n3 5 8\\n4 3\\n5 2 0 20... | {
"index": "code_r1_train_3880"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n000\\n5 -2 5\\n11001\\n6 1 0\\n100111\\n\", \"3\\n3 2 0\\n000\\n5 -1 5\\n11001\\n6 1 0\\n100111\\n\", \"3\\n3 2 1\\n000\\n5 -2 5\\n11001\\n6 1 0\\n110111\\n\", \"3\\n3 2 1\\n010\\n5 -2 4\\n11000\\n6 2 0\\n100111\\n\", \"3\\n3 2 0\\n000\\n5 -2 5\\n1100... | {
"index": "code_r1_train_3881"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n42 23\\n\", \"1 1\\n42 23\\n\", \"1 50\\n42 23\\n\", \"1 99\\n42 23\\n\", \"1 100\\n42 23\\n\", \"2 49\\n42 23\\n23 14\\n\", \"2 50\\n42 23\\n23 19\\n\", \"2 51\\n42 23\\n23 19\\n\"], \"outputs\": [\"23: 0\\n42: 0\\n\", \"23: 0\\n42: 0\\n\", \"23: 0\\n42: 0... | {
"index": "code_r1_train_3882"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 1\\nerase 0\\nerase 0\\nerase -2147483648\\n\", \"3 1\\nerase -1\\nerase 0\\nerase -2147483648\\n\", \"3 1\\nerase -1\\nerase 0\\nerase -2666718247\\n\", \"6 10\\nalloc 6\\nalloc 3\\nerase 1\\nalloc 6\\ndefragment\\nalloc 6\\n\", \"6 4\\nalloc 5\\nalloc 3\\nera... | {
"index": "code_r1_train_3883"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1 0 0 0\", \"5\\n0 0 0 2 1\", \"5\\n0 0 1 2 1\", \"5\\n0 0 1 2 2\", \"5\\n0 0 1 4 2\", \"5\\n0 0 2 4 2\", \"5\\n0 0 2 4 1\", \"5\\n0 0 0 4 1\"], \"outputs\": [\"0\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_3884"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\", \"2 1\", \"0 2\", \"0 4\", \"9 2\", \"2 4\", \"0 0\", \"7 2\"], \"outputs\": [\"30\\n\", \"0\\n\", \"-1\\n\", \"-3\\n\", \"8\\n\", \"3\\n\", \"1\\n\", \"6\\n\"]}"
} | {
"index": "code_r1_train_3885"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ny\", \"1 1\\nz\", \"2 2\\nba\\nbb\", \"2 2\\nab\\nbb\", \"2 2\\naa\\nbc\", \"2 2\\nbb\\nbb\", \"2 0\\nbb\\nbb\", \"2 2\\naa\\nbb\"], \"outputs\": [\"Yes\\n\", \"Yes\", \"No\\n\", \"No\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\n\", \"No\"]}"
} | {
"index": "code_r1_train_3886"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"8\\n\", \"4\\n\", \"2\\n\", \"5\\n\", \"3\\n\", \"7\\n\", \"1\\n\"], \"outputs\": [\"2\", \"1\\n4\", \"2\", \"1\\n0\", \"1\\n0\", \"1\\n0\", \"1\\n0\\n\", \"1\\n0\"]}"
} | {
"index": "code_r1_train_3887"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1\\n0\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"2\\n10\\n01\\n\", \"2\\n10\\n01\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\", \"1\", \"1\\n\", \"1\"]}"
} | {
"index": "code_r1_train_3888"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n2 6 4\\n\", \"2\\n1 5 5\\n2 8 4\\n\", \"2\\n1 5 5\\n2 8 6\\n\", \"2\\n1 5 5\\n2 6 6\\n\", \"2\\n1 5 5\\n2 1 6\\n\", \"2\\n1 5 3\\n2 1 6\\n\", \"2\\n1 5 5\\n2 8 8\\n\", \"2\\n1 5 3\\n2 1 7\\n\"], \"outputs\": [\"LIVE\\nLIVE\\n\", \"LIVE\\nLIVE\\n\", \"... | {
"index": "code_r1_train_3889"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 3 8\\n3 2 4 7\\n4 3 8 1\", \"3\\n2 1 3 8\\n3 2 2 7\\n4 3 8 1\", \"3\\n1 1 6 8\\n3 2 4 7\\n4 3 8 1\", \"3\\n1 1 3 1\\n3 2 4 7\\n4 3 8 1\", \"3\\n2 1 3 8\\n3 1 2 7\\n4 3 8 1\", \"3\\n1 1 6 8\\n3 2 4 7\\n4 3 8 2\", \"3\\n1 1 3 1\\n3 3 4 7\\n4 3 8 1\", \"3\\n... | {
"index": "code_r1_train_3890"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"AABBAAABABAABBBAABA\\nAABBBABBABBAAABABABAAB\\nBABAABAABABABBAAAB\\nAABABAAABBAABBBABAA\\nAAAAAAAAAAA\\nABBBBBBBBBB\\n0\", \"ABAABBBAABABAAABBAA\\nAABBBABBABBAAABABABAAB\\nBABAABAABABABBAAAB\\nAABABAAABBAABBBABAA\\nAAAAAAAAAAA\\nABBBBBABBBB\\n0\", \"ABAABBBAABABA... | {
"index": "code_r1_train_3891"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n**..**\\n4\\n**..\\n\", \"2\\n6\\n**..**\\n4\\n**..\\n\", \"2\\n6\\n**..**\\n4\\n..**\\n\", \"2\\n6\\n**.**.\\n4\\n..**\\n\", \"2\\n6\\n**..**\\n4\\n.*.*\\n\", \"2\\n6\\n**.**.\\n4\\n*.*.\\n\", \"2\\n6\\n.**.**\\n4\\n*..*\\n\", \"2\\n6\\n**..**\\n4\\n*..*... | {
"index": "code_r1_train_3892"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5 8\\n\", \"5 1\\n\", \"2 2\\n\", \"3 3\\n\", \"9 1\\n\", \"4 2\\n\", \"2 1\\n\"], \"outputs\": [\"1 \", \"2 1 4 3 5 \", \"1 2 3 4 5 \", \"2 1 \", \"2 1 3 \", \"1 2 3 4 5 6 7 8 9 \", \"1 2 4 3 \", \"1 2\\n\"]}"
} | {
"index": "code_r1_train_3893"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8 6 9 1 0\", \"5\\n0 6 9 1 0\", \"5\\n1 1 1 1 0\", \"5\\n0 1 1 2 4\", \"5\\n0 6 6 1 0\", \"5\\n0 5 6 1 0\", \"5\\n0 5 6 2 0\", \"5\\n0 5 6 3 0\"], \"outputs\": [\"4\\n5\\n\", \"3\\n5\\n\", \"5\\n5\\n\", \"2\\n5\\n\", \"4\\n5\\n\", \"3\\n5\\n\", \"3\\n5\\n\", ... | {
"index": "code_r1_train_3894"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n86399\\n\", \"1 1\\n86399\\n\", \"2 2\\n86400 86398\\n\", \"2 86400\\n0 86400\\n\", \"2 86400\\n1 86399\\n\", \"2 86400\\n1 86399\\n\", \"2 86400\\n0 86399\\n\", \"2 86400\\n0 48332\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"2\... | {
"index": "code_r1_train_3895"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n3 4\\n\", \"2\\n3 4\\n\", \"2\\n4 4\\n\", \"2\\n4 7\\n\", \"2\\n0 7\\n\", \"3\\n2 1 3\\n\"], \"outputs\": [\"1\", \"1\\n\", \"7\", \"7\\n\", \"4\\n\", \"7\\n\", \"7\\n\", \"3\"]}"
} | {
"index": "code_r1_train_3896"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 2\\nto tail\\n1\\n\", \"2 2 1\\nto tail\\n1\\n\", \"2 1 2\\nto head\\n1\\n\", \"2 2 1\\nto tail\\n01\\n\", \"2 1 2\\nto head\\n01\\n\", \"10 3 8\\nto head\\n01\\n\", \"11 3 8\\nto head\\n01\\n\", \"2 1 2\\nto head\\n1101\\n\"], \"outputs\": [\"Stowaway\\n\", ... | {
"index": "code_r1_train_3897"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\", \"3\", \"6\", \"9\", \"5\", \"8\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3898"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n2 5 2 5\", \"4 2\\n2 5 3 5\", \"4 4\\n2 5 2 1\", \"4 2\\n4 5 2 5\", \"4 2\\n2 8 2 5\", \"4 2\\n2 5 2 5\", \"8 4\\n9 1 8 2 7 5 6 6\", \"8 4\\n9 1 8 2 7 8 6 6\"], \"outputs\": [\"6\\n\", \"13\\n\", \"2\\n\", \"9\\n\", \"12\\n\", \"12\", \"32\\n\", \"33\\n\"]}... | {
"index": "code_r1_train_3899"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.