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 2\\n1 1\\n\", \"2\\n1 2\\n1 2\\n\", \"2\\n1 2\\n1 0\\n\", \"2\\n1 2\\n2 2\\n\", \"3\\n2 1\\n2 3\\n4 4 4\\n\", \"3\\n1 2\\n1 3\\n1 2 2\\n\", \"3\\n2 1\\n2 3\\n1 2 3\\n\", \"3\\n2 1\\n2 3\\n4 4 5\\n\"], \"outputs\": [\"YES\\n1\", \"YES\\n1\\n\", \"YES\\n1\\n\... | {
"index": "code_r1_train_1100"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n15 6\\n5 7 6 7 9 7 7 10 5 7 9 15 11 12 7\\n8 1\\n1 3 6 3 8 2 4 8\\n\", \"2\\n15 6\\n5 7 6 7 9 7 7 10 10 7 9 12 11 12 7\\n8 1\\n1 3 6 3 8 2 4 8\\n\", \"2\\n15 6\\n5 7 6 7 9 7 7 10 10 7 9 12 11 12 7\\n8 1\\n1 1 6 3 8 2 4 8\\n\", \"2\\n15 5\\n10 21 3 7 9 7 5 10 ... | {
"index": "code_r1_train_1101"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 15\\n1 3 4 7\\n1 2 7\\n4 111\\n1 3 5 39\\n3 14 4\\n2 1000000000\\n2 1\\n1\\n\", \"3\\n4 15\\n1 3 4 7\\n1 2 7\\n4 111\\n1 1 5 39\\n3 14 4\\n2 1000000000\\n2 1\\n1\\n\", \"3\\n4 29\\n1 3 4 7\\n1 2 7\\n4 111\\n1 1 5 39\\n3 14 4\\n2 1000000000\\n2 1\\n1\\n\", \... | {
"index": "code_r1_train_1102"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n3 9\", \"1\\n5 9\", \"1\\n9 9\", \"1\\n3 7\", \"1\\n3 7\\n\", \"1\\n3 13\", \"4\\n11 13\\n7 0\\n1 11\\n39 2017\", \"4\\n2 13\\n7 1\\n7 17\\n879 2017\"], \"outputs\": [\"2\\n\", \"1\\n\", \"0\\n\", \"2\", \"2\\n\", \"3\\n\", \"1\\n-2\\n2\\n32\\n\", \"3\\n-2\\n... | {
"index": "code_r1_train_1103"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n\", \"3 1 2 1\\n\", \"1 5 1 3\\n\", \"3 5 1 1\\n\", \"1 5 5 5\\n\", \"8 4 3 1\\n\", \"3 3 3 1\\n\", \"1 1 2 1\\n\"], \"outputs\": [\"TRIANGLE\\n\", \"SEGMENT\\n\", \"IMPOSSIBLE\\n\", \"IMPOSSIBLE\\n\", \"TRIANGLE\\n\", \"SEGMENT\\n\", \"TRIANGLE\\n\", \... | {
"index": "code_r1_train_1104"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nHS\\n\", \"2 3\\nHS\\n\", \"2 0\\nHS\\n\", \"2 1\\nHS\\n\", \"2 0\\nHR\\n\", \"2 0\\nRH\\n\", \"4 7\\nHHSS\\n\", \"4 0\\nHHSS\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"-1\\n\", \"1\\n\", \"-1\\n\", \"-1\\n\", \"0\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_1105"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n2\\n3\\n\", \"2 3 4\\n110\\n677\\n400\\n900\\n1000\\n1\\n2000\\n324\\n756\", \"2 3 4\\n110\\n677\\n769\\n900\\n1000\\n1\\n2000\\n324\\n756\", \"2 3 4\\n110\\n677\\n769\\n900\\n1000\\n2\\n2000\\n324\\n756\", \"2 3 4\\n000\\n600\\n400\\n900\\n1000\\n150... | {
"index": "code_r1_train_1106"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 0 1\\n\", \"1 2 1\\n3 0 1\\n\", \"1 2 1\\n2 0 1\\n\", \"1 2 1\\n2 0 0\\n\", \"1 2 1\\n4 0 0\\n\", \"2 1\\n7 1 1\\n2 1 1\\n\", \"2 1\\n7 1 1\\n2 1 1\\n\", \"2 1\\n7 1 1\\n2 0 1\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \... | {
"index": "code_r1_train_1107"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\", \"2\\n0 4\", \"2\\n0 1\", \"2\\n1 0\", \"2\\n0 7\", \"2\\n2 0\", \"2\\n4 0\", \"2\\n5 0\"], \"outputs\": [\"Second\\n\", \"Second\\n\", \"First\\n\", \"First\\n\", \"First\\n\", \"Second\\n\", \"Second\\n\", \"First\\n\"]}"
} | {
"index": "code_r1_train_1108"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1234 5678\\n1234 1354\\n1234 1200\\n1230 1023\\n0123 1234\\n0 0\", \"1234 5678\\n1234 1354\\n1234 1234\\n1957 1023\\n0123 1234\\n0 0\", \"2530 9673\\n2102 1354\\n1234 1234\\n1230 1849\\n0123 1863\\n0 0\", \"1234 5678\\n1234 2600\\n1234 1234\\n1230 1023\\n0123 123... | {
"index": "code_r1_train_1109"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4\\n3\\n1 2 3\\n4\\n3 1 2 4\\n3\\n2 3 1\\n6\\n2 4 6 1 3 5\\n\", \"4\\n3\\n1 0 4\\n4\\n3 1 2 4\\n3\\n2 3 1\\n6\\n2 4 6 1 5 1\\n\", \"4\\n3\\n1 2 3\\n4\\n3 1 2 4\\n3\\n2 3 1\\n6\\n2 4 6 1 5 5\\n\", \"4\\n3\\n1 2 4\\n4\\n3 1 2 4\\n3\\n2 3 1\\n6\\n2 4 6 1 5 5\\n\", \... | {
"index": "code_r1_train_1110"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n\", \"4 6 4 9\\n\", \"8 3 8 4\\n\", \"1 1 1 1\\n\", \"2 2 9 6\\n\", \"5 1 3 3\\n\", \"6 2 4 1\\n\", \"4 3 4 4\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"5\\n\", \"6\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_1111"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nAA\\n2\\n1 a 1 y\\n2 h 1 y\\n\", \"A\\nAA\\n2\\n1 a 1 y\\n2 h 1 y\\n\", \"TANB\\nXNCPR\\n1\\n15 h 6 r\\n9 h 27 r\\n\", \"AB\\nBC\\n3\\n1 h 1 y\\n2 h 1 y\\n3 h 1 r\\n\", \"AB\\nBC\\n3\\n1 h 1 y\\n2 h 1 y\\n3 h 1 r\\n\", \"TANC\\nXNCOR\\n2\\n15 h 27 r\\n6 h 27 ... | {
"index": "code_r1_train_1112"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8 37\\n\", \"2\\n6 37\\n\", \"2\\n6 43\\n\", \"2\\n1 43\\n\", \"2\\n0 32\\n\", \"2\\n1 32\\n\", \"2\\n73 37\\n\"], \"outputs\": [\"1\", \"29\\n\", \"31\\n\", \"37\\n\", \"42\\n\", \"32\\n\", \"31\\n\", \"36\"]}"
} | {
"index": "code_r1_train_1113"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1 0 1\\n0\\n\", \"2 3 1\\n2 2\\n\", \"2 2 1\\n2 2\\n\", \"2 3 1\\n2 3\\n\", \"3 2 2\\n1 1 3\\n\", \"3 2 2\\n0 1 3\\n\", \"3 2 2\\n4 1 3\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \" ... | {
"index": "code_r1_train_1114"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n\", \"0 1 8\\n\", \"0 0 0\\n\", \"0 0 1\\n\", \"0 0 0\\n\", \"0 0 1\\n\", \"0 1 8\\n\", \"0 0 0\\n\"], \"outputs\": [\"2\\n\", \"5\\n\", \"0\\n\", \"-1\\n\", \"0\\n\", \"-1\\n\", \"5\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_1115"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n1\\n1\\n\", \"2 1 1\\n1 2\\n1 1\\n1\\n\", \"2 1 1\\n1 2\\n1 1\\n2\\n\", \"5 1 1\\n4 3 2 1 5\\n1 1 1 1 1\\n1\\n\", \"5 1 1\\n4 3 2 1 5\\n1 1 1 1 1\\n5\\n\", \"7 3 1\\n1 5 3 4 6 7 2\\n1 3 1 2 1 2 3\\n3\\n\", \"8 4 4\\n1 2 3 4 5 6 7 8\\n4 3 2 1 4 3 2 1\\... | {
"index": "code_r1_train_1116"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9\\n8\\n\", \"1 0\\n9\\n8\\n\", \"2 0\\n4 10\\n1 2\\n\", \"2 0\\n4 10\\n1 2\\n\", \"2 1\\n4 10\\n1 2\\n\", \"2 1\\n4 10\\n1 4\\n\", \"2 0\\n4 14\\n1 2\\n\", \"2 1\\n3 10\\n1 4\\n\"], \"outputs\": [\"8\\n\", \"8\\n\", \"3\\n\", \"3\\n\", \"6\\n\", \"8\\n\", ... | {
"index": "code_r1_train_1117"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n5\\n\", \"1\\n4\\n\", \"1\\n6\\n\", \"1\\n9\\n\", \"1\\n0\\n\"], \"outputs\": [\"sjfnb\\n\", \"cslnb\\n\", \"sjfnb\\n\", \"sjfnb\\n\", \"cslnb\\n\", \"cslnb\\n\", \"sjfnb\\n\", \"cslnb\\n\"]}"
} | {
"index": "code_r1_train_1118"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"z\\n\", \"_\\n\", \"6\\n\", \"6\\n\", \"_\\n\", \"8\\n\", \"y\\n\", \"7\\n\"], \"outputs\": [\"3\\n\", \"1\\n\", \"81\\n\", \"81\", \"1\", \"243\\n\", \"9\\n\", \"27\\n\"]}"
} | {
"index": "code_r1_train_1119"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1 3\", \"6\\n1 2 3 1 0 3\", \"6\\n2 2 3 1 0 3\", \"6\\n2 2 3 2 0 3\", \"6\\n4 2 3 2 0 3\", \"6\\n4 2 3 2 0 4\", \"6\\n4 4 3 2 0 4\", \"6\\n7 4 3 2 0 4\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
... | {
"index": "code_r1_train_1120"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n\", \"1 1\\n8\\n\", \"1 1\\n5\\n\", \"1 0\\n0\\n\", \"1 1\\n9\\n\", \"1 0\\n5\\n\", \"1 0\\n1\\n\", \"1 1\\n0\\n\"], \"outputs\": [\"7\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"5\\n\", \"1\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_1121"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 4\\n1 3 2\\n2 4 4\\n1 4 3\", \"3 4\\n1 3 2\\n2 4 4\\n1 5 3\", \"3 4\\n1 3 2\\n3 4 4\\n1 4 3\", \"3 4\\n1 3 2\\n3 4 4\\n1 4 3\\n\", \"3 2\\n1 7 2\\n7 8 1\\n8 12 1\", \"3 2\\n1 7 2\\n7 8 1\\n8 12 1\\n\", \"3 2\\n1 7 2\\n7 12 1\\n8 12 1\", \"3 2\\n2 7 2\\n7 12 1\\... | {
"index": "code_r1_train_1122"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n2 1 5 1 1\\n\", \"1\\n5 2\\n2 1 5 1 1\\n\", \"1\\n5 2\\n4 1 5 1 1\\n\", \"1\\n5 2\\n4 1 5 2 1\\n\", \"1\\n6 3\\n3 1 1 6 1 6\\n\", \"1\\n6 3\\n4 1 4 1 1 3\\n\", \"1\\n6 2\\n3 1 3 1 1 2\\n\", \"1\\n6 3\\n5 1 5 2 2 3\\n\"], \"outputs\": [\"yes\\n\", \"yes\... | {
"index": "code_r1_train_1123"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1\\n\", \"2\\n2 2\\n\", \"2\\n2 1\\n\", \"3\\n2 3 3\\n\", \"3\\n2 3 1\\n\", \"3\\n2 1 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"3\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_1124"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n0\\n\", \"1\\n3\\n\", \"1\\n1\\n\", \"2\\n0 2\\n\", \"2\\n1 2\\n\", \"2\\n2 3\\n\", \"2\\n0 0\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_1125"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n99\\n\", \"1\\n21328\\n\", \"1\\n87454\\n\", \"1\\n77778\\n\", \"1\\n77774\\n\", \"1\\n841419\\n\", \"1\\n77771449\\n\", \"4\\n3876\\n387\\n4489\\n3\\n\"], \"outputs\": [\"-1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"0\\n2\\n1\\n-1\\... | {
"index": "code_r1_train_1126"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n3\\n4 4 4\", \"1\\n3\\n2 5 1\", \"1\\n3\\n4 6 4\", \"1\\n3\\n4 6 0\", \"1\\n3\\n4 6 3\", \"1\\n3\\n2 2 3\", \"1\\n3\\n4 4 0\", \"1\\n3\\n7 6 3\"], \"outputs\": [\"3\\n1 2 3 \\n\", \"2\\n2 3 \\n\", \"1\\n2 \\n\", \"1\\n2 \\n\", \"1\\n2 \\n\", \"1\\n3 \\n... | {
"index": "code_r1_train_1127"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n0 1\", \"3\\n1 2\\n0 1\", \"3\\n1 0\\n0 2\", \"3\\n1 1\\n0 2\", \"3\\n1 1\\n1 2\", \"3\\n0 1\\n2 2\", \"3\\n1 0\\n2 2\"], \"outputs\": [\"1\", \"3\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_1128"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2\\n2 3\\n\", \"3\\n2 3 5\\n\", \"3\\n2 3 5\\n\", \"3\\n2 3 4\\n\", \"4\\n2 4 4 2\\n\", \"4\\n2 2 3 5\\n\", \"1\\n1000000\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"8\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_1129"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 2\\n**\\n**\\n\", \"1 10\\n**********\\n\", \"10 1\\n*\\n*\\n*\\n*\\n*\\n*\\n*\\n*\\n*\\n*\\n\", \"5 5\\n....*\\n...**\\n..***\\n.****\\n*****\\n\", \"5 5\\n.....\\n.....\\n*****\\n*****\\n*****\\n\", \"5 11\\n***********\\n***********\\n*******... | {
"index": "code_r1_train_1130"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 300\\n100 46 150\\n110 50 150\\n001 97 261\\n3 300\\n100 50 150\\n100 50 267\\n168 50 88\\n9 18\\n2 1 1\\n3 2 1\\n3 0 2\\n4 010 1\\n5 100 1\\n5 100 1\\n10 5 3\\n10 5 3\\n1 7 1000\\n10 18\\n1 3 3\\n2 3 4\\n3 3 5\\n3 5 6\\n5 6 7\\n6 7 8\\n7 8 9\\n8 9 10\\n9 10 6\... | {
"index": "code_r1_train_1131"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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-3 -1 1 1\\n\", \"1\\n4\\n-1 -4 2 3\\n\", \"1\\n4\\n7 7 7 -21\\n\", \"1\\n4\\n3 -3 -3 9\\n\", \"1\\n3\\n0 65536 65536\\n\", \"4\\n3\\n-1 0 1\\n5\\n1 -2 -2 1 -3\\n6\\n0 0 0 0 0 0\\n4\\n-1 2 -3 4\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\... | {
"index": "code_r1_train_1132"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"100 1\\n+ 6\\n\", \"100 1\\n+ 51\\n\", \"100 1\\n+ 10\\n\", \"101 1\\n+ 51\\n\", \"100 1\\n+ 16\\n\", \"101 1\\n+ 74\\n\", \"100 1\\n+ 63\\n\", \"100 1\\n+ 25\\n\"], \"outputs\": [\"Success\\n\", \"Success\\n\", \"Success\\n\", \"Success\\n\", \"Success\\n\", \"S... | {
"index": "code_r1_train_1133"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nsell 17\\n\", \"1\\nsell 31\\n\", \"1\\nwin 2000\\n\", \"1\\nsell 104\\n\", \"1\\nsell 2000\\n\", \"2\\nwin 2000\\nsell 238\\n\", \"2\\nwin 2000\\nsell 315\\n\", \"2\\nwin 2000\\nsell 350\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\", \"0\\n\", \"0\", \"0\\n... | {
"index": "code_r1_train_1134"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n\", \"1 2\\n\", \"1 4\\n\", \"2 2\\n\", \"6 7\\n\", \"5 7\\n\", \"3 7\\n\", \"1 1\\n\"], \"outputs\": [\"20\\n\", \"14\\n\", \"20\\n\", \"14\\n\", \"18\\n\", \"20\\n\", \"20\\n\", \"8\\n\"]}"
} | {
"index": "code_r1_train_1135"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n1\\n2\\n2 2\\n2\\n2 1\\n3\\n1 3 3\\n3\\n2 1 3\\n3\\n3 1 2\\n4\\n2 1 4 3\\n\", \"7\\n1\\n1\\n2\\n2 2\\n2\\n2 1\\n3\\n1 3 3\\n3\\n2 1 2\\n3\\n3 1 1\\n4\\n2 1 4 3\\n\", \"7\\n1\\n1\\n2\\n2 2\\n2\\n2 1\\n3\\n1 2 3\\n3\\n2 1 3\\n3\\n3 2 1\\n4\\n2 1 4 3\\n\", \... | {
"index": "code_r1_train_1136"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 2\\n\", \"4 2\\n\", \"1 2\\n\", \"1 1\\n\", \"2 1\\n\", \"2 2\\n\", \"3 1\\n\", \"3 2\\n\"], \"outputs\": [\"6\\n\", \"0\\n\", \"3\\n\", \"1\\n\", \"0\\n\", \"6\\n\", \"0\\n\", \"6\\n\"]}"
} | {
"index": "code_r1_train_1137"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n3 6 1 1\\n1 1 2 3\\n6 1 5 5\\n1 2 1\\n2 3 1\\n1 3 1\\n1 4 1\", \"4 4 3\\n3 6 1 1\\n1 1 2 3\\n6 0 5 5\\n1 2 1\\n2 2 1\\n1 3 1\\n1 4 1\", \"4 4 3\\n3 6 1 1\\n1 1 2 3\\n6 1 5 5\\n1 2 1\\n2 4 1\\n1 3 1\\n1 4 1\", \"4 4 3\\n3 6 1 1\\n1 1 2 3\\n5 0 5 5\\n1 2 1\... | {
"index": "code_r1_train_1138"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n3 R\\n\", \"1\\n3 R\\n\", \"1\\n2 R\\n\", \"1\\n4 R\\n\", \"1\\n5 R\\n\", \"1\\n1 R\\n\", \"1\\n6 R\\n\", \"1\\n0 R\\n\"], \"outputs\": [\"0\\n\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_1139"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nC\\n\", \"1 1\\nZ\\n\", \"2 2\\nCC\\nBB\\n\", \"2 2\\nAB\\nCD\\n\", \"2 2\\nML\\nWQ\\n\", \"2 2\\nAB\\nDD\\n\", \"2 4\\nABAA\\nABBB\\n\", \"2 4\\nAAAA\\nABBB\\n\"], \"outputs\": [\"1\\n1 1\\n\", \"1\\n1 1\\n\", \"2\\n1 2\\n\", \"4\\n1 1\\n\", \"4\\n1 1\\n\"... | {
"index": "code_r1_train_1140"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1 1\\n2 1 3\\n5 5 5\\n1 1 2\\n\", \"4\\n1 1 1\\n2 1 3\\n5 2 5\\n1 1 2\\n\", \"4\\n1 2 2\\n2 1 1\\n3 2 5\\n1 1 2\\n\", \"4\\n1 2 2\\n2 2 1\\n3 2 2\\n1 1 2\\n\", \"4\\n1 1 2\\n2 2 1\\n3 2 2\\n2 1 2\\n\", \"4\\n2 2 0\\n4 2 1\\n6 4 5\\n1 1 2\\n\", \"4\\n1 1 2\\... | {
"index": "code_r1_train_1141"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n2 2\\n\", \"1\\n2 1\\n2 0\\n\", \"1\\n2 1\\n0 0\\n\", \"1\\n2 1\\n2 1\\n\", \"1\\n2 2\\n2 2\\n\", \"1\\n2 1\\n1 0\\n\", \"1\\n2 2\\n2 1\\n\", \"1\\n2 2\\n0 0\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"2\\n\", \"-1\\n\", \"-2\\n\", \"1\\n\", \"-4\\n\", \... | {
"index": "code_r1_train_1142"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"z\\n2\\n\", \"a\\n3\\n\", \"a\\n1\\n\", \"z\\n2\\n\", \"a\\n3\\n\", \"y\\n2\\n\", \"b\\n3\\n\"], \"outputs\": [\"0\\n\", \"impossible\\n\", \"impossible\\n\", \"0\\n\", \"impossible\\n\", \"impossible\\n\", \"impossible\\n\", \"impossible\\n\"]}"
} | {
"index": "code_r1_train_1143"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n1\\n1 1\\n\", \"2 4 3\\n2 1\\n1 1 2 2\\n1 2\\n2 2\\n3 4\\n\", \"2 4 3\\n2 1\\n1 1 2 2\\n1 2\\n2 4\\n3 4\\n\", \"2 4 3\\n2 1\\n1 2 2 2\\n1 2\\n2 4\\n3 4\\n\", \"2 4 3\\n2 1\\n2 1 2 2\\n1 2\\n2 4\\n3 4\\n\", \"2 4 3\\n2 1\\n1 2 2 2\\n1 2\\n2 2\\n3 4\\n\... | {
"index": "code_r1_train_1144"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1 0\\n1 2 1\\n\", \"2 2 0\\n1 2 1\\n1 1 1\\n\", \"2 2 1\\n1 2 1\\n2 2 1\\n\", \"2 2 0\\n1 2 1\\n1 2 2\\n\", \"2 2 1\\n2 1 2\\n1 2 1\\n\", \"2 1 10\\n1 2 100\\n2 2 100\", \"2 1 13\\n1 2 100\\n4 2 100\", \"2 1 13\\n1 2 101\\n4 2 100\"], \"outputs\": [\"1\\n\", \"... | {
"index": "code_r1_train_1145"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9\\n\", \"5\\n5\\n\", \"3\\n7\\n\", \"3\\n8\\n\", \"5\\n30\\n\", \"6\\n18\\n\", \"2\\n64\\n\", \"3\\n27\\n\"], \"outputs\": [\"YES\\n1\\n\", \"YES\\n0\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n5\\n\", \"YES\\n2\\n\"]}"
} | {
"index": "code_r1_train_1146"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 1\\n9 13\\n\", \"2 2\\n9 13\\n\", \"3 3\\n3 8 6\\n\", \"2 0\\n17 10\\n\", \"2 0\\n17 13\\n\", \"2 1\\n17 13\\n\"], \"outputs\": [\"1 1\\n1 1\\n\", \"1 1\\n1 1\\n\", \"1 2\\n1 1\\n2 2\\n\", \"1 2\\n1 1\\n2 2\\n\", \"2 1\\n2 3\\n\"... | {
"index": "code_r1_train_1147"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n\", \"1\\n32\\n\", \"2\\n1 2\\n\", \"1\\n688\\n\", \"2\\n1 2\\n\", \"1\\n1469\\n\", \"1\\n2185\\n\", \"1\\n89751\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"3\", \"1\\n\", \"3\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_1148"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n4 4 5 1\\n15\\n9\\n13\\n6\\n\", \"4 5 4\\n4 4 5 1\\n15\\n9\\n13\\n6\\n\", \"6 4 10\\n3 1 1 1 2 2\\n7\\n8\\n9\\n10\\n11\\n12\\n13\\n14\\n15\\n8\\n\", \"6 4 10\\n3 1 1 1 2 2\\n7\\n8\\n9\\n10\\n11\\n12\\n13\\n14\\n15\\n16\\n\", \"6 4 10\\n3 1 1 1 2 2\\n7\\n8... | {
"index": "code_r1_train_1149"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1\\n0 1\\n101 4\\n920 40\\n335186385 972\\n18 7\\n1372032350266432 10\\n\", \"7\\n1 1\\n10 1\\n111 4\\n1439 40\\n335186385 379\\n87 7\\n1372032350266432 6\\n\", \"7\\n1 1\\n0 1\\n101 4\\n920 40\\n335186385 972\\n137 7\\n1372032350266432 10\\n\", \"7\\n1 2\\... | {
"index": "code_r1_train_1150"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n3 4\\n1 1\\n\", \"5 4 0\\n1 2\\n3 1\\n\", \"2 0 2\\n1 1\\n1 1\\n\", \"5 4 2\\n1 2\\n3 1\\n\", \"4 2 4\\n3 4\\n2 1\\n\", \"6 4 2\\n1 2\\n3 1\\n\", \"3 1 3\\n1 2\\n1 1\\n\", \"2 2 0\\n7 3\\n1 1\\n\"], \"outputs\": [\"8\\n\", \"7\\n\", \"2\\n\", \"4\\n\", \"... | {
"index": "code_r1_train_1151"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n0 0 0 1 0\", \"5 2\\n0 0 0 1 0\", \"5 2\\n0 0 0 0 0\", \"5 2\\n1 0 0 0 0\", \"5 2\\n0 0 0 0 1\", \"5 0\\n0 0 0 0 1\", \"5 2\\n1 0 0 2 0\", \"5 2\\n0 0 0 2 0\"], \"outputs\": [\"1 1 2 1 2\\n\", \"3 3 4 3 3\\n\", \"2 3 3 3 2\\n\", \"2 3 3 4 2\\n\", \"2 4 3 3 ... | {
"index": "code_r1_train_1152"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n688 10\\n\", \"1\\n701 10\\n\", \"1\\n5828 1\\n\", \"1\\n9772 1\\n\", \"1\\n4955 2\\n\", \"1\\n2388 2\\n\", \"1\\n2388 4\\n\", \"1\\n2388 1\\n\"], \"outputs\": [\"688\\n\", \"701\\n\", \"6666\\n\", \"9999\\n\", \"4994\\n\", \"2422\\n\", \"2388\\n\", \"3333\\n... | {
"index": "code_r1_train_1153"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\", \"2\\n2\\n3\", \"2\\n1\\n3\", \"2\\n3\\n7\", \"2\\n2\\n8\", \"2\\n2\\n7\", \"2\\n2\\n1\", \"2\\n1\\n7\"], \"outputs\": [\"2\\n8\", \"2\\n4\\n\", \"0\\n4\\n\", \"4\\n22\\n\", \"2\\n24\\n\", \"2\\n22\\n\", \"2\\n0\\n\", \"0\\n22\\n\"]}"
} | {
"index": "code_r1_train_1154"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\na\\n1\\n2\\nb\\n1\\n1\\n\", \"10 1\\n1\\n4\\na\\n1\\n3\\nb\\n1\\n4\\nc\\n1\\n5\\nd\\n1\\n2\\n\", \"8 2\\n7 3\\n5\\na\\n1\\n8\\nb\\n2\\n5 6\\nc\\n1\\n7\\nd\\n1\\n3\\ne\\n1\\n0\\n\", \"100 1\\n1\\n2\\nab\\n17\\n0 0 0 0 0 0 0 0 0 0 0 2 3 4 5 6 7\\nabb\... | {
"index": "code_r1_train_1155"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1\\n1 1\\n\", \"1 1\\n1 1\\n\", \"2 2\\n1 1\\n1 2\\n\", \"20 3\\n1 1\\n1 2\\n1 3\\n\", \"38 3\\n1 1\\n1 2\\n1 3\\n\", \"10 3\\n1 1\\n1 2\\n1 3\\n\", \"2 4\\n2 1\\n1 2\\n2 2\\n1 1\\n\", \"8 4\\n4 3\\n8 8\\n6 5\\n1 6\\n\"], \"outputs\": [\"1 0 0 0 0 0 0 0 0\\n\",... | {
"index": "code_r1_train_1156"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n12\\n\", \"3\\n2 3 2\", \"3\\n2 6 2\", \"3\\n1 6 2\", \"3\\n3 3 4\", \"3\\n2 5 2\", \"3\\n3 6 2\"], \"outputs\": [\"1\\n\", \"1\\n\", \"8\\n\", \"7\\n\", \"10\\n\", \"11\\n\", \"12\\n\", \"6\\n\"]}"
} | {
"index": "code_r1_train_1157"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n\", \"3 3\\n\", \"5 2\\n\", \"6 0\\n\", \"2 0\\n\", \"2 2\\n\", \"3 1\\n\", \"6 2\\n\"], \"outputs\": [\"4\\n\", \"2\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_1158"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1 5\\n1\\n\", \"1 1\\n5\\n\", \"1 4\\n1\\n\", \"1 1\\n5\\n\", \"1 5\\n1\\n\", \"1 8\\n1\\n\", \"1 5\\n2\\n\"], \"outputs\": [\"1\\n1 \\n\", \"1\\n1 \\n\", \"1\\n5 \\n\", \"1\\n1\\n\", \"1\\n5\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n2\\n\"]}"
} | {
"index": "code_r1_train_1159"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n\", \"1\\n2\\n7\\n\", \"1\\n2\\n4\\n\", \"1\\n1\\n72\\n\", \"1\\n5\\n16\\n\", \"1\\n3\\n31\\n\", \"1\\n1\\n72\\n\", \"1\\n3\\n31\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_1160"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na\\n\", \"1\\ns\\n\", \"1\\ns\\n\", \"1\\na\\n\", \"1\\nt\\n\", \"1\\n`\\n\", \"2\\naa\\n\", \"2\\naa\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_1161"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n7\\n\", \"1\\n3\\n\", \"1\\n6\\n\"], \"outputs\": [\"20\\n\", \"20\\n\", \"20\\n\", \"20\\n\", \"20\\n\", \"20\\n\", \"20\\n\", \"20\\n\"]}"
} | {
"index": "code_r1_train_1162"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4\", \"8\", \"2\", \"2\", \"4\", \"8\", \"1\", \"3\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\", \"Yes\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\"]}"
} | {
"index": "code_r1_train_1163"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6\\n\", \"1\\n10\\n\", \"1\\n16\\n\", \"1\\n11\\n\", \"1\\n25\\n\", \"1\\n720\\n\", \"1\\n711\\n\"], \"outputs\": [\"1 0\\n\", \"1 0\\n\", \"1 0\\n\", \"1 0\\n\", \"1 0\\n\", \"1 0\\n\", \"0 0\\n\", \"0 0\\n\"]}"
} | {
"index": "code_r1_train_1164"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8\\n\", \"2\\n0 8\\n\", \"2\\n0 2\\n\", \"2\\n0 3\\n\", \"2\\n0 6\\n\", \"2\\n-1 6\\n\", \"3\\n3 1 2\\n\", \"3\\n3 1 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"3\\n1 2 3\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_1165"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ne -1\\n\", \"1 2\\nyy 1\\n\", \"1 2\\nyy 1\\n\", \"1 1\\ne -1\\n\", \"1 2\\nzy 1\\n\", \"1 1\\nf -1\\n\", \"0 1\\nf -1\\n\", \"0 1\\ne -1\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_1166"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n5\\n\", \"1\\n3\\n\", \"1\\n7\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_1167"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1\\n\", \"1\\n2 2\\n2 2\\n\", \"1\\n2 2\\n3 3\\n\", \"1\\n2 2\\n3 3\\n\", \"1\\n2 2\\n1 1\\n\", \"1\\n2 2\\n2 2\\n\", \"1\\n2 2\\n3 5\\n\", \"1\\n2 1\\n1 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\... | {
"index": "code_r1_train_1168"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"11\\n\", \"111\\n\", \"110\\n\", \"100\\n\", \"101\\n\", \"1111\\n\", \"1011\\n\", \"1001\\n\"], \"outputs\": [\"1\\n\", \"11\\n\", \"11\", \"10\", \"11\\n\", \"111\\n\", \"111\", \"101\"]}"
} | {
"index": "code_r1_train_1169"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n\", \"7\\n\", \"9\\n\", \"1\\n\", \"4\\n\", \"3\\n\", \"6\\n\"], \"outputs\": [\"7 7\\n\", \"2 2\\n\", \"7 7\\n\", \"7 7\\n\", \"1 1\\n\", \"4 4\\n\", \"3 3\\n\", \"6 6\\n\"]}"
} | {
"index": "code_r1_train_1170"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n1\\n\", \"1\\n1\\n1\\n\", \"1\\n3\\n3 4 7\\n\", \"1\\n3\\n3 1 2\\n\", \"1\\n3\\n1 2 3\\n\", \"1\\n3\\n1 3 4\\n\", \"1\\n3\\n3 2 1\\n\", \"1\\n3\\n4 3 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
... | {
"index": "code_r1_train_1171"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nq\\n\", \"1 2\\njj\\n\", \"2 1\\ns\\ns\\n\", \"2 1\\nr\\ns\\n\", \"2 2\\nab\\nab\\n\", \"2 2\\naa\\nab\\n\", \"2 2\\naa\\nba\\n\", \"2 2\\nac\\nab\\n\"], \"outputs\": [\"0\\nq\\n\", \"1\\naj\\n\", \"1\\ns\\na\\n\", \"0\\nr\\ns\\n\", \"2\\nba\\nab\\n\", \"1\... | {
"index": "code_r1_train_1172"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 2\\n\", \"1\\n3 2\\n\", \"1\\n0 2\\n\", \"1\\n0 1\\n\", \"1\\n-5 1\\n\", \"1\\n-1 2\\n\", \"1\\n-1 1\\n\"], \"outputs\": [\"1899\\n\", \"1902\\n\", \"1902\\n\", \"1899\\n\", \"Infinity\\n\", \"Infinity\\n\", \"1898\\n\", \"Infinity\\n\"]}"
} | {
"index": "code_r1_train_1173"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n\", \"1\\n1\\n5\\n\", \"1\\n1\\n6\\n\", \"1\\n1\\n7\\n\", \"1\\n1\\n2\\n\", \"1\\n1\\n8\\n\", \"1\\n1\\n2\\n\", \"1\\n1\\n8\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_1174"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 2\\n1 2 1\\n2 3 1\\n\", \"3 3\\n1 2 1\\n1 3 1\\n2 3 3\\n\", \"15 14\\n1 2 522\\n2 3 575\\n3 4 426\\n4 5 445\\n5 6 772\\n6 7 81\\n7 8 447\\n8 9 629\\n9 10 497\\n10 11 202\\n11 12 775\\n12 13 325\\n13 14 982\\n14 15 784\\n\", \"33 35\\n29 1 166\\n29 2 587\\n29 3 ... | {
"index": "code_r1_train_1175"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"ZAACZ\", \"ZCAAZ\", \"ZCAZB\", \"ZCABZ\", \"BZACZ\", \"ZABCZ\", \"ZABCZ\\n\", \"QWERTAFSDXZXCV\"], \"outputs\": [\"4\\n\", \"3\\n\", \"2\\n\", \"3\\n\", \"3\\n\", \"4\", \"4\\n\", \"6\\n\"]}"
} | {
"index": "code_r1_train_1176"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"1 0\\n5\\n\", \"3 1\\n108\\n\", \"3 2\\n108\\n\", \"3 1\\n159\\n\", \"3 1\\n177\\n\", \"3 1\\n297\\n\", \"3 1\\n196\\n\"], \"outputs\": [\"5\", \"5\\n\", \"27\", \"9\", \"84\\n\", \"102\\n\", \"135\\n\", \"122\\n\"]}"
} | {
"index": "code_r1_train_1177"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"16 10 0 7 3 3 2 8\", \"7 18 1 20 6 3 1 7\", \"7 28 1 20 1 3 1 3\", \"7 28 1 40 6 3 1 3\", \"7 19 2 19 0 3 1 0\", \"17 9 3 19 3 3 1 0\", \"7 19 2 19 0 3 0 0\", \"17 9 3 19 3 2 1 0\"], \"outputs\": [\"0\\n\", \"9\\n\", \"12\\n\", \"24\\n\", \"28\\n\", \"64\\n\", \"... | {
"index": "code_r1_train_1178"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n1\\n2 1\", \"4 0 1\\n1\\n2 1\", \"4 0 1\\n1\\n2 1\\n\", \"3 2 5\\n1 2 3\\n2 2 3\\n2\\n3 2\\n1 3\", \"3 2 5\\n2 2 3\\n2 3 3\\n2\\n3 2\\n1 3\", \"3 2 5\\n1 2 3\\n1 3 3\\n2\\n3 2\\n1 3\", \"3 2 5\\n1 2 3\\n1 3 3\\n2\\n1 2\\n1 3\", \"3 2 2\\n1 2 3\\n1 3 0\\n2... | {
"index": "code_r1_train_1179"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n0\\n\", \"2\\n0 1\\n\", \"2\\n0 1\\n\", \"3\\n0 2 0\\n\", \"3\\n0 2 1\\n\", \"3\\n0 2 1\\n\", \"3\\n0 2 0\\n\"], \"outputs\": [\"0\\n\", \"0\", \"0\\n\", \"0\", \"1\\n\", \"1\\n\", \"1\", \"1\"]}"
} | {
"index": "code_r1_train_1180"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n01\\n\", \"1\\n1\\n01\\n\", \"1\\n0\\n01\\n\", \"1\\n-1\\n01\\n\", \"2\\n3 1\\n0011\\n\", \"2\\n0 1\\n0011\\n\", \"2\\n3 1\\n0011\\n\", \"2\\n-1 1\\n0011\\n\"], \"outputs\": [\"1 1 \\n\", \"1 1 \", \"1 1\\n\", \"1 1\\n\", \"2 1 1 2 \\n\", \"1 2 2 1\\n\", ... | {
"index": "code_r1_train_1181"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\", \"2\\n0\\n5\", \"2\\n0\\n3\", \"2\\n0\\n4\", \"2\\n1\\n4\", \"2\\n1\\n2\", \"2\\n1\\n2\\n\", \"2\\n-1\\n2\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_1182"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n2\\n5\\n0\\n5\\n3\\n0 0\", \"5 1\\n0\\n0\\n0\\n3\\n1\\n0 0\", \"5 3\\n2\\n5\\n0\\n8\\n0\\n0 0\", \"5 3\\n2\\n5\\n1\\n8\\n0\\n0 0\", \"5 3\\n4\\n5\\n1\\n8\\n0\\n0 0\", \"5 3\\n4\\n5\\n2\\n8\\n0\\n0 0\", \"5 3\\n2\\n5\\n-4\\n8\\n3\\n0 0\", \"5 3\\n1\\n9\\n-4\... | {
"index": "code_r1_train_1183"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\\n1 1\\n\", \"1 2\\n4 3\\n\", \"1 9\\n1 2\\n\", \"1 2\\n4 3\\n\", \"1 9\\n1 1\\n\", \"1 9\\n1 2\\n\", \"1 5\\n1 1\\n\", \"1 2\\n2 2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_1184"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"blue blue blue blue bluf blue blue blue\\nred blue blue blue blue blue blue blue\\nred red blue blue blue blue blue blue\", \"blue blue blue blue bluf clue blue blue\\nred blue blue blue blue blue blue blue\\nred red blue blue blue blue blue blue\", \"blue blue b... | {
"index": "code_r1_train_1185"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 2\\n1 1 1\\n\", \"3 2\\n2 1 1\\n\", \"3 4\\n4 3 2\\n\", \"3 6\\n5 6 5\\n\", \"3 2\\n1 0 1\\n\", \"1 349\\n348\\n\", \"3 2\\n1 0 1\\n\", \"3 2\\n2 1 1\\n\"], \"outputs\": [\"4\\n\", \"2\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_1186"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n30 9\\n46\\n73\\n\", \"2 1 1\\n30 9\\n46\\n87\\n\", \"2 1 1\\n76 91\\n34\\n77\\n\", \"2 1 1\\n76 146\\n34\\n77\\n\", \"2 1 1\\n76 291\\n34\\n77\\n\", \"2 1 1\\n76 291\\n35\\n77\\n\", \"2 1 1\\n131 291\\n35\\n77\\n\", \"4 1 2\\n2 4 10 3\\n18\\n19\\n23\\n3\... | {
"index": "code_r1_train_1187"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 0\\n\", \"1 1\\n0 1\\n\", \"1 1\\n1 0\\n\", \"1 1\\n1 1\\n\", \"1 1\\n0 0\\n\", \"1 1\\n0 1\\n\", \"1 1\\n1 0\\n\", \"1 1\\n1 1\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_1188"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\nA\\n6 5 5\\nB\\n10 9 0\\n\", \"2 1 5\\nA\\n6 5 5\\nA\\n10 9 0\\n\", \"2 1 1\\nG\\n2 1 9\\nRdepya\\n2 1 8\\n\", \"2 1 1\\nCcn\\n2 1 1\\nOxgzx\\n2 1 1\\n\", \"2 1 1\\nCcn\\n2 2 1\\nOxgzx\\n2 1 1\\n\", \"2 1 2\\nCcn\\n2 2 1\\nOxgzx\\n2 1 1\\n\", \"2 1 1\\nIe... | {
"index": "code_r1_train_1189"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 8 1 1\\n2 1 5\\n2 3 3\\n3 3\\n3 2 3 1\\n2 1 5\\n2 3 3\\n0 0\", \"3 6\\n3 8 1 1\\n2 1 5\\n2 3 3\\n3 3\\n3 2 5 1\\n2 1 8\\n2 3 3\\n0 0\", \"3 3\\n3 4 1 1\\n2 1 5\\n2 3 3\\n3 6\\n3 2 5 1\\n2 1 5\\n2 3 3\\n0 0\", \"3 3\\n3 8 1 1\\n2 1 6\\n2 3 3\\n3 3\\n3 2 3 ... | {
"index": "code_r1_train_1190"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 2\", \"3\\n4 3 1\", \"3\\n4 4 5\", \"3\\n4 8 2\", \"3\\n8 8 2\", \"3\\n4 4 1\", \"3\\n4 4 4\", \"3\\n6 8 2\"], \"outputs\": [\"not coprime\\n\", \"pairwise coprime\\n\", \"setwise coprime\\n\", \"not coprime\\n\", \"not coprime\\n\", \"setwise coprime\\n\... | {
"index": "code_r1_train_1191"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1 1\\n\", \"3 9\\n1 1 3\\n\", \"1 1\\n0 1 0\\n\", \"0 0\\n0 0 0\\n\", \"4 3\\n1 0 1\\n\", \"6 0\\n1 1 1\\n\", \"4 0\\n1 1 1\\n\", \"0 0\\n0 0 0\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"4\\n\", \"4\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_1192"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nA\\n\", \"1\\nB\\n\", \"1\\nC\\n\", \"2\\nAB\\n\", \"2\\nAC\\n\", \"2\\nBA\\n\", \"2\\nBC\\n\", \"2\\nCA\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_1193"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n25\\n\", \"1\\n835\\n\", \"1\\n2103\\n\", \"1\\n2103\\n\", \"1\\n2140\\n\", \"3\\n4 8 5\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"9\\n\"]}"
} | {
"index": "code_r1_train_1194"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n-1 -2 0 0 0 0\\n0 -2 0 0 0 0\\n3\\n1 5 1 1 1 1\\n2 5 0 1 0 1\\n3 5 1 0 0 0\\n2\\n1337 1337 0 1 1 1\\n1336 1337 1 1 0 1\\n1\\n3 5 1 1 1 1\\n\", \"4\\n2\\n-1 -2 0 0 0 0\\n0 -2 0 0 0 0\\n3\\n1 5 1 1 1 1\\n2 5 0 1 0 1\\n3 5 0 0 0 0\\n2\\n1337 1337 0 1 1 1\\n1... | {
"index": "code_r1_train_1195"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nFORWARD 3\\nRIGHT\\nFORWARD 5\\nLEFT\\nBACKWARD 2\\nSTOP\\n5 1\\nFORWARD 2\\nSTOP\\n0 0\", \"6 5\\nFORWARD 3\\nRIGHT\\nFORWARD 5\\nLEFT\\nBACKWARD 3\\nSTOP\\n3 1\\nFORWARD 2\\nSTOP\\n0 0\", \"6 6\\nFORDARW 1\\nRIGHT\\nFORWARD 5\\nLEFT\\nBACKWARD 3\\nSTOP\\n... | {
"index": "code_r1_train_1196"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6 4 2\\n2 9 2 3 8 5\\n4 4 1\\n2 13 60 4\\n4 1 3\\n1 2 2 1\\n2 2 0\\n1 2\\n\", \"4\\n6 4 2\\n2 9 2 3 8 5\\n4 4 1\\n2 13 60 4\\n4 1 3\\n1 2 1 1\\n2 2 0\\n1 2\\n\", \"4\\n6 4 2\\n2 9 2 3 8 5\\n4 4 1\\n2 13 60 4\\n4 2 3\\n1 2 2 1\\n2 2 0\\n1 2\\n\", \"4\\n6 3 2\\... | {
"index": "code_r1_train_1197"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1\\n1 2\\n\", \"3 3\\n1 2\\n1 3\\n2 3\", \"3 3\\n1 2\\n1 3\\n2 3\\n\", \"4 4\\n1 2\\n2 3\\n2 4\\n3 4\\n\", \"7 4\\n1 3\\n2 7\\n3 4\\n4 5\\n4 6\\n5 6\\n6 7\", \"7 7\\n1 3\\n2 7\\n3 4\\n4 5\\n4 1\\n5 6\\n6 7\", \"7 7\\n1 3\\n2 7\\n3 4\\n4 5\\n4 6\\n4 6\\n6 7\", \... | {
"index": "code_r1_train_1198"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"1\\n1\\n2\\n\", \"1\\n1\\n4\\n\", \"1\\n1\\n1\\n\", \"1\\n1\\n3\\n\", \"1\\n1\\n0\\n\", \"1\\n1\\n6\\n\", \"1\\n1\\n5\\n\"], \"outputs\": [\"2 \\n\", \"2 \\n\", \"4 \\n\", \"1 \\n\", \"3 \\n\", \"0 \\n\", \"6 \\n\", \"5 \\n\"]}"
} | {
"index": "code_r1_train_1199"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.