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\": [\"0 0 2 4\\n1 2\\n1 2\\n\", \"0 0 2 3\\n1 1\\n1 3\\n\", \"0 0 2 4\\n1 1\\n1 2\\n\", \"0 0 2 3\\n1 1\\n1 2\\n\", \"-140 -140 2 200\\n1 0\\n0 1\\n\", \"-12 -34 5 200\\n1 0\\n2 0\\n3 1\\n10 3\\n11 4\\n\", \"0 0 5 101\\n21 38\\n43 42\\n5 29\\n69 3\\n84 52\\n\", \"0 0 5... | {
"index": "code_r1_train_0"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 8 2\\n4 1 5 9\\n4 6 8 2\\n4 6 3 0\", \"9 1 8 2\\n6 1 5 9\\n4 6 8 2\\n2 6 3 0\", \"9 1 8 2\\n4 1 5 9\\n2 6 8 2\\n4 6 3 0\", \"9 1 8 2\\n6 2 5 9\\n4 6 8 2\\n4 6 3 0\", \"9 1 8 2\\n6 2 5 9\\n4 6 8 2\\n4 9 3 0\", \"9 1 8 2\\n6 0 5 9\\n4 6 5 2\\n4 6 3 0\", \"9 1 8... | {
"index": "code_r1_train_1"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n21\", \"4\\n32\", \"4\\n13\", \"4\\n21\", \"4\\n44\", \"4\\n12\", \"4\\n11\", \"4\\n22\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"46 4 4 5\", \"64 4 4 5\", \"64 8 4 5\", \"5 9 3 10\", \"54 8 4 5\", \"54 8 2 5\", \"54 6 2 5\", \"54 6 0 5\"], \"outputs\": [\"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\"]}"
} | {
"index": "code_r1_train_3"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\", \"1\", \"7\", \"0\", \"1\\n\", \"16\"], \"outputs\": [\"3\\n\", \"7\\n\", \"22\\n\", \"1\\n\", \"14\\n\", \"0\\n\", \"1\\n\", \"76\\n\"]}"
} | {
"index": "code_r1_train_4"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nnxx\", \"3\\nnwx\", \"3\\nxxo\", \"3\\nxwn\", \"3\\nowx\", \"3\\npxx\", \"3\\npyx\", \"3\\npzx\"], \"outputs\": [\"2\\n\", \"3\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"2\\n\", \"3\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_5"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n1 2 3 4 5\\n8\\n6 6 6 6 6 6 8 8\\n8\\n1 2 2 1 2 1 1 2\\n3\\n1 3 3\\n6\\n1 1 3 4 2 2\\n\", \"5\\n5\\n1 2 3 4 5\\n8\\n6 6 6 6 6 6 8 8\\n8\\n1 2 2 1 2 1 1 2\\n3\\n1 3 3\\n6\\n1 1 3 4 2 2\\n\", \"4\\n14\\n2 6 5 9 5 8 13 14 8 5 6 14 5 2\\n36\\n15 22 27 7 23 36... | {
"index": "code_r1_train_6"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1\\n\", \"2 5\\n5 4\\n\", \"2 0\\n2 1\\n\", \"2 5\\n5 4\\n\", \"2 2\\n7 0\\n\", \"2 5\\n5 5\\n\", \"2 5\\n7 5\\n\", \"2 2\\n7 5\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"5\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_7"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6 1\", \"3 3 1\", \"3 3 2\", \"2 1 8\", \"3 5 1\", \"3 6 2\", \"1 3 4\", \"5 1 1\"], \"outputs\": [\"6\\n\", \"1\\n\", \"2\\n\", \"16\\n\", \"15\\n\", \"4\\n\", \"12\\n\", \"5\\n\"]}"
} | {
"index": "code_r1_train_8"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\", \"3\\n2 2 1\", \"3\\n2 1 2\", \"3\\n2 1 2\\n\", \"4\\n1 3 1 3\", \"4\\n1 3 3 2\", \"4\\n2 3 2 2\", \"4\\n2 3 4 1\"], \"outputs\": [\"3\\n0\\n0\\n\", \"3\\n1\\n0\\n\", \"3\\n1\\n0\", \"3\\n1\\n0\\n\", \"4\\n2\\n0\\n0\\n\", \"4\\n2\\n1\\n0\\n\", \"4\\n... | {
"index": "code_r1_train_9"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"aba\\naaaab\", \"aba\\naa`ab\", \"`ba\\naa`ab\", \"`ab\\naa`ab\", \"ab`\\naa`ab\", \"ab`\\naa`ac\", \"ac`\\naa`ac\", \"`ca\\naa`ac\"], \"outputs\": [\"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\"]}"
} | {
"index": "code_r1_train_10"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"1\\n1 1\\n\", \"1\\n0 2\\n\", \"1\\n1 2\\n\", \"1\\n0 4\\n\", \"1\\n1 3\\n\", \"1\\n0 3\\n\"], \"outputs\": [\"0\\n\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_11"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n2 3\\n3 1\", \"5 3\\n1 2\\n2 3\\n5 1\", \"3 3\\n2 2\\n2 3\\n3 1\", \"5 3\\n1 2\\n2 3\\n2 1\", \"5 3\\n1 2\\n3 3\\n5 1\", \"5 1\\n1 2\\n3 3\\n5 1\", \"3 3\\n1 2\\n2 3\\n3 1\", \"7 9\\n1 2\\n1 3\\n2 3\\n1 4\\n1 5\\n4 5\\n1 5\\n1 7\\n6 7\"], \"outputs\":... | {
"index": "code_r1_train_12"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n1 2 3\\n1 2\\n2 3\\n\", \"3 2 2\\n1 1 2\\n1 2\\n2 1\\n\", \"3 2 3\\n1 2 3\\n1 2\\n2 3\\n\", \"3 2 2\\n1 1 2\\n1 2\\n2 1\\n\", \"4 2 4\\n1 2 3 4\\n1 2\\n3 4\\n\", \"4 2 4\\n1 2 3 4\\n1 2\\n3 4\\n\", \"4 2 4\\n1 2 3 4\\n1 3\\n3 4\\n\", \"4 2 4\\n1 2 1 4\\n1... | {
"index": "code_r1_train_13"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6\\n1 3 2 6 5 4\\n4\\n4 1 3 2\\n8\\n3 2 1 6 7 8 5 4\\n\", \"4\\n3\\n1 2 3\\n6\\n1 3 2 6 5 4\\n4\\n4 1 3 2\\n8\\n3 0 1 6 7 8 5 4\\n\", \"4\\n3\\n1 2 3\\n6\\n1 3 2 6 5 4\\n4\\n4 1 3 2\\n8\\n3 2 1 6 7 1 5 4\\n\", \"4\\n3\\n1 2 0\\n6\\n1 3 2 6 5 4\\n4... | {
"index": "code_r1_train_14"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0010 3716 520\\n14 3661 29\\n1507 2460 80\\n1101 670 2276\\n2\\n0011 100 0\\n954 1100 000\\n2\\n715 245 100\\n883 426 100\\n0\", \"4\\n0010 2000 520\\n14 3661 29\\n1507 375 1160\\n1100 670 2276\\n2\\n0011 100 0\\n954 1100 000\\n2\\n715 245 100\\n50 426 100\\n... | {
"index": "code_r1_train_15"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 0 0 0 0 0 0\\n\", \"1\\nZ 0 0 0 0 1 0 0\\n\", \"1\\nZ 0 0 0 0 2 0 0\\n\", \"1\\nZ 0 0 0 0 2 -1 0\\n\", \"1\\nA 0 0 200 0 0 0 0\\n\", \"1\\nA 0 0 200 0 0 1 0\\n\", \"1\\nA 0 0 200 0 0 2 0\\n\", \"1\\nZ 0 0 -1 0 2 -1 0\\n\"], \"outputs\": [\"Z\\n\", \"Z\\n\... | {
"index": "code_r1_train_16"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nt j\\n\", \"2\\nip cd\", \"2\\nip dc\", \"2\\npi cd\", \"2\\npi ce\", \"2\\noi ce\", \"2\\nni ce\", \"2\\nni ec\"], \"outputs\": [\"tj\\n\", \"icpd\\n\", \"idpc\\n\", \"pcid\\n\", \"pcie\\n\", \"ocie\\n\", \"ncie\\n\", \"neic\\n\"]}"
} | {
"index": "code_r1_train_17"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"`a\\n\", \"a`\\n\", \"aa\\n\", \"aa`\\n\", \"a`a\\n\", \"aaa\\n\", \"aabba\\n\", \"bbaab\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"4\\n\", \"3\\n\", \"5\\n\", \"18\\n\", \"18\\n\"]}"
} | {
"index": "code_r1_train_18"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n\", \"1 1\\n2\\n\", \"1 1\\n3\\n\", \"2 1\\n2 1\\n\", \"2 1\\n1 1\\n\", \"3 2\\n1 0 4\\n\", \"3 2\\n1 0 3\\n\", \"3 2\\n1 0 2\\n\"], \"outputs\": [\" 2\", \"3\\n\", \"4\\n\", \"5\\n\", \" ... | {
"index": "code_r1_train_19"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"y\\n0\\n\", \"x\\n0\\n\", \"ababa\\n1\\nba\\n\", \"abbba\\n1\\nba\\n\", \"ababa\\n1\\nab\\n\", \"nllnrlrnll\\n1\\nrl\\n\", \"llnrlrnlln\\n1\\nrl\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_20"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n05:47:15 04:45:90\\n12:12:59 12:13:00\\n16:30:20 21:18:53\\n6\\n00:00:00 03:00:00\\n01:00:00 03:00:00\\n02:00:00 03:00:00\\n03:00:00 04:00:00\\n03:00:00 05:00:00\\n03:00:00 06:00:00\\n0\", \"3\\n05:47:15 09:54:40\\n12:12:59 12:13:00\\n16:30:20 21:18:53\\n6\\n... | {
"index": "code_r1_train_21"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1\\n2 1\\n\", \"1 0\\n1000\", \"1 1\\n1001\", \"0 1\\n1011\", \"1 1\\n1010\", \"1 1\\n1000\", \"1 1\\n1000\\n\", \"-1 1\\n0111\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1001\\n\", \"1011\\n\", \"1010\\n\", \"1000\", \"1000\\n\", \"111\\n\"]}"
} | {
"index": "code_r1_train_22"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 2 3 4 5 6\\n2 -1 -2 0 -1 -5\", \"1 2 3 4 5 6\\n2 -1 -2 0 -1 -4\", \"1 2 3 4 6 4\\n2 -1 -4 -1 0 -5\", \"1 2 3 3 5 6\\n2 -1 -2 0 -1 -4\", \"1 2 3 4 0 4\\n2 -1 -4 -1 0 -5\", \"2 1 3 5 5 4\\n4 -1 -4 -1 0 -5\", \"1 2 3 3 5 6\\n2 -1 -2 -1 0 -4\", \"2 1 1 5 5 4\\n4 -1... | {
"index": "code_r1_train_23"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"a\\n\", \"a\\n\", \"`\\n\", \"_\\n\", \"^\\n\", \"]\\n\", \"\\\\\\n\", \"[\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_24"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n4\\n5\\n\", \"1\\n5\\n4\\n\", \"1\\n5\\n5\\n\", \"1\\n5\\n4\\n\", \"1\\n4\\n5\\n\", \"1\\n5\\n5\\n\", \"1\\n5\\n2\\n\", \"1\\n4\\n6\\n\"], \"outputs\": [\"4\\n\", \"4\\n\", \"5\\n\", \"4 \", \"4 \", \"5 \", \"2\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_25"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n\", \"1\\n2\\n\", \"1\\n9\\n\", \"1\\n8\\n\", \"1\\n6\\n\", \"1\\n3\\n\", \"1\\n5\\n\"], \"outputs\": [\"7\\n\", \"1\\n\", \"3\\n\", \"15\\n\", \"15\\n\", \"7\\n\", \"1\\n\", \"7\\n\"]}"
} | {
"index": "code_r1_train_26"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n4\\n1 2 4 8\\n3\\n2 3 3\\n5\\n3 3 3 3 3\", \"3\\n4\\n1 2 4 8\\n3\\n2 3 3\\n5\\n1 3 3 3 3\", \"3\\n4\\n1 2 4 2\\n3\\n3 3 3\\n5\\n1 3 2 3 3\", \"3\\n4\\n1 2 8 7\\n3\\n2 1 3\\n5\\n1 3 1 3 3\", \"3\\n4\\n1 2 4 8\\n3\\n3 3 3\\n5\\n1 3 3 3 3\", \"3\\n4\\n1 2 4 8\\n... | {
"index": "code_r1_train_27"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"4 2\\n\", \"4 6\\n\", \"2 1\\n\", \"17957 2\\n\", \"300000 1\\n\", \"2 1000000000000\\n\", \"1337 424242424242\\n\"], \"outputs\": [\"6\\n\", \"26\\n\", \"1494\\n\", \"1\\n\", \"653647969\\n\", \"299999\\n\", \"138131255\\n\", \"119112628\\n\"]}"
} | {
"index": "code_r1_train_28"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n+\\n- 1\\n\", \"1\\n- 1\\n+\\n\", \"3\\n+\\n+\\n+\\n- 2\\n- 1\\n- 2\\n\", \"3\\n+\\n+\\n+\\n- 2\\n- 1\\n- 3\\n\", \"4\\n+\\n- 1\\n+\\n+\\n- 4\\n+\\n- 2\\n- 3\\n\", \"4\\n+\\n+\\n+\\n- 3\\n- 4\\n+\\n- 1\\n- 2\\n\", \"4\\n+\\n+\\n+\\n- 4\\n- 4\\n+\\n- 1\\n- 2\\... | {
"index": "code_r1_train_29"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n22 1\\n26 9\\n2 11\\n3 6\\n3 96\\n\", \"5\\n22 1\\n26 61\\n2 11\\n3 6\\n3 96\\n\", \"5\\n4 1\\n42 61\\n10 11\\n3 1\\n3 47\\n\", \"5\\n4 1\\n42 61\\n13 11\\n3 1\\n3 63\\n\", \"5\\n41 1\\n26 13\\n2 14\\n3 6\\n3 96\\n\", \"5\\n41 1\\n26 13\\n2 14\\n3 6\\n5 96\\n... | {
"index": "code_r1_train_30"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n96\\n86\\n\", \"1 1\\n96\\n86\\n\", \"1 1\\n71\\n86\\n\", \"1 1\\n50\\n86\\n\", \"1 1\\n126\\n86\\n\", \"8 4\\n3 8 7 9 9 4 6 8\\n2 5 9 4 3 8 9 1\\n\", \"8 4\\n3 8 7 9 9 4 6 8\\n2 5 9 4 3 8 9 0\\n\", \"8 4\\n3 3 7 9 9 4 6 8\\n2 5 9 4 3 8 9 0\\n\"], \"outputs... | {
"index": "code_r1_train_31"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nD\\n\", \"1 0\\nD\\n\", \"0 0\\nD\\n\", \"1 1\\nLD\\n\", \"0 -1\\nU\\n\", \"-1 0\\nR\\n\", \"-1 1\\nR\\n\", \"2 4\\nRU\\n\"], \"outputs\": [\"No\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_32"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 2\\n1 2\\n2 1\\n2\\n1 2\\n\", \"7 7\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\\n6 7\\n7 1\\n7\\n1 2 3 4 5 6 7\\n\", \"6 9\\n1 5\\n5 4\\n1 2\\n2 3\\n3 4\\n4 1\\n2 6\\n6 4\\n4 2\\n4\\n1 2 3 4\\n\", \"8 13\\n8 7\\n8 6\\n7 5\\n7 4\\n6 5\\n6 4\\n5 3\\n5 2\\n4 3\\n4 2\\n3 1\\n2 ... | {
"index": "code_r1_train_33"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 3 3 3 3\\n\", \"1\\n5\\n3 3 3 3 3\\n\", \"1\\n5\\n3 3 0 3 3\\n\", \"1\\n5\\n3 3 1 3 3\\n\", \"1\\n5\\n3 0 1 4 3\\n\", \"1\\n5\\n2 1 0 2 2\\n\", \"1\\n5\\n0 3 0 3 3\\n\", \"1\\n5\\n3 0 1 3 3\\n\"], \"outputs\": [\"5\\n\", \"5\\n\", \"5\\n\", \"4\\n\", \"... | {
"index": "code_r1_train_34"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 7\\n3 3\\n0 0\", \"3 6\\n5 6\\n3 3\\n0 0\", \"3 4\\n5 0\\n3 3\\n0 0\", \"3 4\\n5 3\\n3 3\\n0 0\", \"3 4\\n8 0\\n3 3\\n0 0\", \"5 4\\n8 0\\n3 3\\n0 0\", \"5 4\\n8 0\\n3 6\\n0 0\", \"3 4\\n5 6\\n5 3\\n0 0\"], \"outputs\": [\"####\\n#..#\\n####\\n\\n#######\... | {
"index": "code_r1_train_35"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 0 2\\n\", \"4\\n1 0 0 0\\n\", \"4\\n1 0 1 2\\n\", \"5\\n4 1 4 7 6\\n\", \"5\\n2 1 4 7 6\\n\", \"5\\n2 2 4 7 6\\n\", \"5\\n2 2 6 7 6\\n\", \"5\\n2 2 9 7 6\\n\"], \"outputs\": [\"1\\n1\\n2\\n\", \"1\\n1\\n2\\n\", \"1\\n1\\n3\\n\", \"4\\n5\\n9\\n17\\n\", \"2... | {
"index": "code_r1_train_36"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1\\n\", \"a\\n0\\n5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1\\n\", \"a\\n0\\n5 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1\\n\", \"a\\n1\\n5 1 1 1 1 1 1 0 2 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 0 1... | {
"index": "code_r1_train_37"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n6\\n\", \"1\\n3\\n\", \"1\\n9\\n\", \"1\\n-1\\n\"], \"outputs\": [\"0 0 0\\n\", \"0 0 1\\n\", \"0 0 1\\n\", \"0 0 1\\n\", \"0 0 1\\n\", \"0 0 1\\n\", \"0 0 1\\n\", \"0 0 0\\n\"]}"
} | {
"index": "code_r1_train_38"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"u\\n\", \"u\\n\", \"v\\n\", \"w\\n\", \"zza\\n\", \"abb\\n\", \"zaz\\n\", \"acc\\n\"], \"outputs\": [\"u\\n\", \"u\\n\", \"v\\n\", \"w\\n\", \"zaz\\n\", \"bab\\n\", \"zaz\\n\", \"cac\\n\"]}"
} | {
"index": "code_r1_train_39"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n\", \"3 3 3\\n\", \"5 1 1\\n\", \"2 1 1\\n\", \"1 1 1\\n\", \"3 1 1\\n\", \"5 2 2\\n\", \"4 1 1\\n\"], \"outputs\": [\"YES\\n001\\n001\\n110\\n\", \"NO\\n\", \"YES\\n01000\\n10100\\n01010\\n00101\\n00010\\n\", \"NO\\n\", \"YES\\n0\\n\", \"NO\\n\", \"NO\\n... | {
"index": "code_r1_train_40"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1 1\\n\", \"2\\n1 110\\n2 1 10\\n\", \"2\\n1 100\\n2 1 10\\n\", \"2\\n2 60 2\\n3 1 000 4\\n\", \"2\\n2 60 2\\n3 1 000 5\\n\", \"2\\n2 200 1\\n3 1 100 2\\n\", \"2\\n2 200 2\\n3 1 100 2\\n\", \"2\\n2 200 2\\n3 1 000 2\\n\"], \"outputs\": [\"1 0\\n\", \"111 10\\... | {
"index": "code_r1_train_41"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n4 3\\n1 4\\n2 7\\n1 000\\n3 1\", \"4 3\\n1 2\\n2 3\\n2 4\\n2 4\\n2 100\\n3 1\", \"2 3\\n1 2\\n2 4\\n1 4\\n1 6\\n2 100\\n1 1\", \"4 3\\n1 2\\n2 3\\n2 4\\n2 4\\n2 100\\n3 0\", \"4 3\\n1 2\\n2 3\\n2 4\\n2 4\\n2 110\\n3 0\", \"2 3\\n1 2\\n2 4\\n1 4\\n1 3\... | {
"index": "code_r1_train_42"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n1\\n\", \"1 2 2\\n1\\n\", \"1 4 2\\n1\\n\", \"1 6 2\\n1\\n\", \"1 2 4\\n1\\n\", \"1 4 0\\n1\\n\", \"1 6 1\\n1\\n\", \"1 2 5\\n1\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"4\\n\", \"6\\n\", \"2\\n\", \"4\\n\", \"6\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_43"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 2 4\\n2 1 1\\n3 0\\n4 1 3\", \"4\\n1 2 0 4\\n2 1 1\\n3 0\\n4 1 3\", \"4\\n1 2 1 4\\n2 1 1\\n3 0\\n4 1 3\", \"4\\n1 2 1 4\\n2 1 2\\n3 0\\n4 1 3\", \"4\\n1 2 0 4\\n2 1 2\\n3 0\\n4 1 3\", \"4\\n1 2 0 4\\n2 1 4\\n3 0\\n0 1 3\", \"4\\n1 2 0 4\\n2 1 3\\n3 0\\n4... | {
"index": "code_r1_train_44"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 10\\n4 6 4 1 9 3\\n\", \"6 10\\n4 3 4 1 9 3\\n\", \"6 10\\n4 3 4 2 9 3\\n\", \"6 10\\n4 3 2 2 9 3\\n\", \"6 10\\n4 3 0 2 9 3\\n\", \"6 10\\n5 6 4 1 9 3\\n\", \"5 1\\n24 30 18 9 76\\n\", \"5 1\\n24 28 18 9 76\\n\"], \"outputs\": [\"30\\n\", \"30\\n\", \"30\\n\",... | {
"index": "code_r1_train_45"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n15\", \"3\\n7\\n45\", \"3\\n7\\n76\", \"3\\n7\\n54\", \"3\\n0\\n76\", \"3\\n2\\n43\", \"3\\n2\\n59\", \"3\\n1\\n34\"], \"outputs\": [\"3\\n\", \"7\\n\", \"11\\n\", \"8\\n\", \"26\\n\", \"15\\n\", \"20\\n\", \"12\\n\"]}"
} | {
"index": "code_r1_train_46"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5\", \"6\", \"8\", \"9\", \"7\", \"6\", \"5\", \"4\"], \"outputs\": [\"865\\n\", \"3247\\n\", \"45719\\n\", \"171531\\n\", \"12185\\n\", \"3247\\n\", \"865\\n\", \"230\"]}"
} | {
"index": "code_r1_train_47"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n1\\n1\\n1\\n1\\n\", \"3\\n1\\n1\\n1\\n1\\n1\\n1\\n\", \"3\\n1\\n2\\n1\\n1\\n1\\n1\\n\", \"3\\n1\\n2\\n1\\n2\\n1\\n1\\n\", \"3\\n1\\n2\\n1\\n2\\n1\\n2\\n\", \"3\\n1\\n1\\n1\\n2\\n1\\n2\\n\", \"7\\n11\\n3 1 4 1 5 9 2 6 5 3 5\\n1\\n1000\\n3\\n1 1 1\\n13\... | {
"index": "code_r1_train_48"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n2 1\\n\", \"2\\n2 1\\n\", \"2\\n3 1\\n\", \"2\\n3 2\\n\", \"2\\n5 2\\n\", \"2\\n7 2\\n\", \"2\\n4 1\\n\", \"2\\n1 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_49"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 3 4 5 6\\n1 2\\n\", \"2 3 1 5 6\\n1 2\\n\", \"2 1 1 5 6\\n1 2\\n\", \"2 1 1 5 1\\n1 3\\n\", \"2 1 1 5 1\\n1 2\\n\", \"2 1 1 5 1\\n2 3\\n\", \"3 4 2 19 0\\n5 3 99\\n\", \"3 4 2 19 0\\n2 3 99\\n\"], \"outputs\": [\"11\\n\", \"5\\n\", \"3\\n\", \"4\\n\", \"3\\n\",... | {
"index": "code_r1_train_50"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ncba\\ncab\\nb\\na\\n3\\nbca\\nab\\na\\n5\\nabc\\nacb\\nb\\nc\\nc\\n5\\nabc\\nacc\\nc\\nb\\nb\\n0\", \"4\\ncba\\ncab\\nb\\na\\n3\\nbca\\nab\\na\\n5\\nabc\\nacb\\nb\\nc\\nc\\n5\\nabc\\nacc\\nd\\nb\\nb\\n0\", \"4\\ncba\\ncab\\nb\\na\\n3\\nbca\\nab\\na\\n5\\ncba\... | {
"index": "code_r1_train_51"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"2 7 1\\n\", \"1 1 1\\n\", \"2 2 1\\n\", \"1 1 1\\n\", \"2 2 1\\n\", \"2 7 1\\n\", \"1 7 1\\n\"], \"outputs\": [\"1\\n\", \"64\\n\", \"1\\n\", \"2\\n\", \"1\", \"2\\n\", \"64\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_52"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"3 3 3\\n2 2 4\\n1 1 3\\n\", \"3 3 3\\n2 2 4\\n1 1 1\\n\", \"3 3 3\\n2 2 4\\n1 1 2\\n\", \"3 3 3\\n2 2 2\\n1 1 3\\n\", \"5 4 5\\n1 2 2 3 4\\n1 3 4 5\\n\", \"5 5 10\\n8 2 8 5 9\\n9 1 7 5 1\\n\", \"5 5 10\\n8 2 8 5 1\\n9 1 7 5 1\\n\"], \"output... | {
"index": "code_r1_train_53"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n\", \"1\\n8 2\\n\", \"1\\n8 4\\n\", \"1\\n8 1\\n\", \"1\\n6 1\\n\", \"1\\n4 1\\n\", \"1\\n16 1\\n\", \"2\\n7 7\\n1 4\\n\"], \"outputs\": [\"10\\n\", \"10\\n\", \"12\\n\", \"9\\n\", \"7\\n\", \"5\\n\", \"17\\n\", \"14\\n\"]}"
} | {
"index": "code_r1_train_54"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n3\\n1 1 1\\nRPS\\n3\\n3 0 0\\nRPS\\n\", \"2\\n3\\n1 1 1\\nRSP\\n3\\n3 0 0\\nRPS\\n\", \"2\\n3\\n1 1 1\\nPSR\\n3\\n4 1 0\\nRPR\\n\", \"2\\n3\\n1 1 1\\nSPR\\n3\\n4 1 0\\nRPR\\n\", \"2\\n3\\n1 1 1\\nSRP\\n3\\n6 0 0\\nRPR\\n\", \"2\\n3\\n2 0 1\\nRSP\\n3\\n4 1 0\\... | {
"index": "code_r1_train_55"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n50\\n\", \"1\\n69\\n\", \"1\\n96\\n\", \"1\\n68\\n\", \"1\\n50\\n\", \"2\\n4 73\\n\", \"2\\n7 73\\n\", \"2\\n7 85\\n\"], \"outputs\": [\"2\\n\", \"578692380\\n\", \"291154604\\n\", \"528482306\\n\", \"2\\n\", \"259817059\\n\", \"443447121\\n\", \"16777234\\n\... | {
"index": "code_r1_train_56"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n4\\n6\\n12\\n18\\n4\\n820514\\n99999998\\n699564\\n100001100\\n0\", \"1\\n1\\n5\\n6\\n6\\n12\\n18\\n4\\n820514\\n99999998\\n699564\\n100001100\\n0\", \"1\\n1\\n5\\n4\\n6\\n1\\n5\\n5\\n1356316\\n171009028\\n699564\\n100001100\\n0\", \"1\\n1\\n5\\n6\\n6... | {
"index": "code_r1_train_57"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n0\\n\", \"1\\n4\\n\", \"3\\n1 2 6\\n\", \"3\\n1 2 3\\n\", \"3\\n1 2 3\\n\"], \"outputs\": [\"1\\n\", \"1 \", \"2 \", \"0 \", \"4 \", \"1 6 2\\n\", \"1 3 2\\n\", \"1 3 2 \"]}"
} | {
"index": "code_r1_train_58"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"2\\n1 1\\n\", \"2\\n2 2\\n\", \"3\\n1 2 1\\n\", \"3\\n2 1 2\\n\", \"3\\n1 1 1\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"3\\n\", \"3\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_59"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"123 3 0 4 0 1 1\\n999 9 9 9 9 9 9\\n0 0 0 0 0 0 0\", \"123 3 0 4 0 1 0\\n999 9 9 9 9 9 9\\n0 0 0 0 0 0 0\", \"123 3 0 2 3 2 2\\n999 9 9 9 9 7 8\\n0 0 0 0 0 0 0\", \"123 3 0 2 3 2 2\\n999 9 9 9 9 4 8\\n0 0 0 0 0 0 0\", \"123 3 0 4 0 2 1\\n999 9 9 9 9 9 9\\n0 0 0 0... | {
"index": "code_r1_train_60"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"1\\n4\\n\", \"1\\n6\\n\", \"2\\n2\\n4\\n\", \"2\\n4\\n4\\n\", \"2\\n4\\n6\\n\", \"2\\n6\\n4\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"6\\n\", \"14\\n\", \"2\\n6\\n\", \"6\\n6\\n\", \"6\\n14\\n\", \"14\\n6\\n\"]}"
} | {
"index": "code_r1_train_61"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n0.0 0.0 1.0 1.0 1.0 0.0 2.0 1.0\\n3.0 2.0 9.0 6.0 13.0 5.0 7.0 9.0\", \"2\\n0.0 0.0 1.0 1.0 1.0 0.0 2.0 1.0\\n3.0 2.0 9.680227793087974 6.0 13.0 5.0 7.0 9.0\", \"2\\n0.0 0.0 1.0 1.0 1.0 0.0 2.0 1.0\\n3.0 2.0 9.680227793087974 6.0 13.541356008746918 5.0 7.0 9.... | {
"index": "code_r1_train_62"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n1 3 2\\n\", \"3\\n2 3 1\\n\", \"3\\n1 3 2\\n\", \"4\\n5 5 5 5\\n\", \"4\\n5 5 5 5\\n\", \"4\\n3 1 5 5\\n\", \"4\\n5 1 5 8\\n\", \"4\\n1 3 8 64\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"11\\n\", \"11\\n\", \"5\\n\", \"4\\n\", \"9\\n\"]}"
} | {
"index": "code_r1_train_63"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2528\\n18211\\n575\\n268\\n1\\n257\", \"6\\n4360\\n18211\\n575\\n268\\n1\\n257\", \"6\\n4360\\n18211\\n575\\n268\\n1\\n443\", \"6\\n4360\\n18211\\n575\\n268\\n1\\n145\", \"6\\n5788\\n18211\\n575\\n268\\n1\\n145\", \"6\\n5788\\n32221\\n575\\n268\\n1\\n145\", \... | {
"index": "code_r1_train_64"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n4-2*3=\\n8*(4+4+3)=\", \"2\\n4-2*3=\\n8*(4+4+2)=\", \"2\\n4-3*3=\\n4*(8+4+3)=\", \"2\\n4-1*3=\\n4*(8+4+3)=\", \"2\\n4-1+3=\\n4*(8+4+3)=\", \"2\\n4-2+3=\\n4*(8+4+3)=\", \"2\\n5-1+3=\\n4*(8+4+3)=\", \"2\\n3-1*3=\\n4*(8+4+3)=\"], \"outputs\": [\"-2\\n88\\n\", \"... | {
"index": "code_r1_train_65"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n2 3\\n2 4\\n2 5\\n4 6\\n6 7\", \"7\\n1 4\\n2 3\\n2 4\\n4 5\\n4 6\\n6 7\", \"7\\n1 4\\n2 3\\n2 4\\n4 5\\n7 6\\n6 7\", \"7\\n1 4\\n2 3\\n2 4\\n1 5\\n7 6\\n6 7\", \"7\\n1 4\\n2 3\\n2 4\\n1 5\\n7 6\\n6 5\", \"7\\n1 4\\n2 3\\n2 4\\n4 5\\n7 3\\n6 3\", \"7\\n1... | {
"index": "code_r1_train_66"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 4\\n12345 30036 63\", \"2\\n7 3 4\\n12345 57737 63\", \"2\\n7 1 1\\n9796 9219 1485\", \"2\\n7 2 4\\n12345 57737 63\", \"2\\n7 1 1\\n9796 9219 2637\", \"2\\n3 2 4\\n12345 57737 63\", \"2\\n3 1 4\\n12345 57737 63\", \"2\\n3 1 0\\n12345 57737 63\"], \"output... | {
"index": "code_r1_train_67"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 4\", \"2\\n1 1\\n2 4\", \"2\\n1 1\\n1 7\", \"2\\n0 1\\n1 7\", \"2\\n0 1\\n0 7\", \"2\\n0 1\\n0 8\", \"2\\n1 2\\n0 0\", \"2\\n0 2\\n6 0\"], \"outputs\": [\"4\\n\", \"3\\n\", \"7\\n\", \"8\\n\", \"9\\n\", \"10\\n\", \"2\\n\", \"-3\\n\"]}"
} | {
"index": "code_r1_train_68"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 2\\n1 2\\n2 1\\n\", \"2 2\\n1 2\\n2 1\\n\", \"7 4\\n1 2 3 3 1 4 3\\n3 1\\n2 3\\n2 4\\n\", \"7 4\\n1 2 3 3 1 4 4\\n3 1\\n2 3\\n2 4\\n\", \"7 4\\n1 2 3 3 1 2 4\\n3 1\\n2 3\\n2 4\\n\", \"7 4\\n1 2 3 3 2 2 4\\n3 1\\n2 3\\n2 4\\n\", \"7 4\\n1 2 3 2 1 4 4\\n3 1\\n2 3... | {
"index": "code_r1_train_69"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 3\\n2\\n2 4\", \"3\\n1 4 3\\n2\\n2 2\", \"3\\n1 4 3\\n3\\n2 2\", \"3\\n1 4 3\\n3\\n2 1\", \"3\\n1 4 3\\n6\\n2 1\", \"3\\n1 4 5\\n6\\n2 1\", \"3\\n1 4 8\\n6\\n2 1\", \"3\\n1 4 8\\n6\\n4 1\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", ... | {
"index": "code_r1_train_70"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n?\\n\", \"1\\na\\n\", \"1\\n?\\n\", \"1\\n?a\\n\", \"3\\nb?c\\n\", \"3\\na?c\\n\", \"2\\n????\\n\", \"3\\n????\\n\"], \"outputs\": [\"IMPOSSIBLE\\n\", \"a\\n\", \"a\\n\", \"aa\\n\", \"IMPOSSIBLE\\n\", \"IMPOSSIBLE\\n\", \"abba\\n\", \"IMPOSSIBLE\\n\"]}"
} | {
"index": "code_r1_train_71"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n\", \"3 2 4\\n\", \"6 1 4\\n\", \"2 2 3\\n\", \"5 4 6\\n\", \"2 1 2\\n\", \"2 2 2\\n\", \"5 5 6\\n\"], \"outputs\": [\"3\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \"2\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_72"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n\", \"2\\n3 6\\n\", \"2\\n511 5\\n\", \"2\\n511 6\\n\", \"2\\n605 6\\n\", \"2\\n511 32\\n\", \"3\\n83 504 68\\n\", \"3\\n136 452 68\\n\"], \"outputs\": [\"1 2\\n\", \"1 2\\n\", \"1 2\\n\", \"1 2\\n\", \"1 2\\n\", \"1 2\\n\", \"3 1\\n\", \"3 1\\n\"]}"
} | {
"index": "code_r1_train_73"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1 1 1\\n\", \"1\\n2 1 1\\n\", \"1\\n2 1 1\\n\", \"1\\n1 1 1\\n\", \"1\\n2 1 0\\n\", \"1\\n1 1 2\\n\", \"1\\n2 2 0\\n\", \"1\\n2 2 1\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_74"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1000 1000 1001\\n\", \"1\\n3\\n1000 1000 1001\\n\", \"1\\n3\\n0000 1000 1001\\n\", \"1\\n3\\n1000 1001 1001\\n\", \"1\\n3\\n0000 1000 1000\\n\", \"1\\n3\\n1000 1001 0001\\n\", \"1\\n3\\n0001 1000 1000\\n\", \"1\\n2\\n1000000000 1000000000\\n\"], \"outputs... | {
"index": "code_r1_train_75"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n1 1\\n\", \"2\\n1 1\\n\", \"2\\n1 0\\n\", \"1\\n1000\\n\", \"1\\n1000\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_76"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n1 3 3\\n2 2 2\", \"3\\n1 3 2\\n2 2 3\", \"3\\n1 3 6\\n2 2 2\", \"3\\n1 3 2\\n3 2 3\", \"3\\n1 3 6\\n2 2 4\", \"3\\n2 3 2\\n3 2 3\", \"3\\n1 3 6\\n3 2 4\", \"3\\n2 3 2\\n5 2 3\"], \"outputs\": [\"No\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\... | {
"index": "code_r1_train_77"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n387420490\\n\", \"1\\n506859788\\n\", \"1\\n132370398\\n\", \"1\\n230139648\\n\", \"1\\n152260256\\n\", \"1\\n586187597\\n\", \"1\\n100214312\\n\", \"1\\n218113389\\n\"], \"outputs\": [\"387420490\\n\", \"516560652\\n\", \"133923132\\n\", \"387420489\\n\", \"... | {
"index": "code_r1_train_78"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 b\\n1 3\\na\\n\", \"abc arc\\n3 6\\nabc\\n\", \"red blue\\n3 2\\nred\", \"red blte\\n3 0\\nred\", \"red blue\\n5 0\\nred\", \"red blue\\n7 0\\nred\", \"red blue\\n5 1\\nred\", \"red blue\\n0 0\\nred\"], \"outputs\": [\"0 3\\n\", \"2 6\\n\", \"2 2\\n\", \"2 0\\n... | {
"index": "code_r1_train_79"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\\n\", \"1 0\\n3\\n\", \"3 1\\n108\\n\", \"3 2\\n108\\n\", \"5 2\\n39923\\n\", \"5 2\\n20409\\n\", \"5 2\\n59455\\n\"], \"outputs\": [\"5\\n\", \"8\\n\", \"3\\n\", \"27\\n\", \"9\\n\", \"2667\\n\", \"792\\n\", \"2409\\n\"]}"
} | {
"index": "code_r1_train_80"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n......\\n......\\n......\\n......\\n......\\n......\\n......\\n......\\n.RGB..\\nRGOP..\\nRGBPB.\\nRGBPP.\\nGBRGYP\\nGBRRYP\\nBGGRBB\\nBPRGYY\\nGGPRRY\\nBYPPRB\\nYGGGPB\\nRPYYYG\\nYRBRBR\\nYBRBRB\\nBRBRBR\\nBRBRBR\\n......\\n......\\n......\\n......\\n......\... | {
"index": "code_r1_train_81"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"(\\n1\\n1 1\\n\", \")\\n1\\n1 1\\n\", \"(\\n1\\n1 1\\n\", \")\\n1\\n1 1\\n\", \"()\\n1\\n1 2\\n\", \")(\\n1\\n1 2\\n\", \")(\\n1\\n1 2\\n\", \"()\\n1\\n1 2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"2\\n\", \"0\\n\", \"0\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_82"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1\\n1\\n0\\n\", \"1\\n1\\n1\\n\", \"1\\n0\\n1\\n\", \"1\\n0\\n2\\n\", \"1\\n0\\n4\\n\", \"1\\n0\\n3\\n\", \"1\\n0\\n-1\\n\"], \"outputs\": [\"0\\n\", \"1\\n1\\n\", \"0\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\"]}"... | {
"index": "code_r1_train_83"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"aa\\n3\\n\", \"aa\\n2\\n\", \"cba\\n6\\n\", \"cba\\n4\\n\", \"abc\\n6\\n\", \"caa\\n4\\n\", \"daa\\n4\\n\", \"daa\\n3\\n\"], \"outputs\": [\"aa\\n\", \"a\\n\", \"cba\\n\", \"c\\n\", \"c\\n\", \"c\\n\", \"d\\n\", \"aa\\n\"]}"
} | {
"index": "code_r1_train_84"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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###\\n\", \"3 3\\n###\\n###\\n###\\n\", \"3 3\\n...\\n...\\n...\\n\", \"3 3\\n...\\n...\\n...\\n\", \"3 3\\n###\\n.##\\n###\\n\", \"3 3\\n###\\n###\\n###\\n\", \"3 3\\n###\\n#.#\\n###\\n\", \"3 4\\n####\\n#.##\\n####\\n\"], \"outputs\": [\"YES\"... | {
"index": "code_r1_train_85"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 0\\n\", \"2 1\\n1 0\\n\", \"2 1\\n2 1\\n\", \"2 1\\n1 1\\n\", \"2 1\\n1000 1000\\n\", \"2 1\\n1000 0000\\n\", \"2 1\\n0000 1000\\n\", \"2 1\\n0000 0000\\n\"], \"outputs\": [\"0\\n\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\", \"0\\n\", \"0\\n\\n\", \"1\\n1\\n\",... | {
"index": "code_r1_train_86"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n?\\n2\\n?0\\n7\\n79259?087\\n4\\n?@\\n2\\n0?1\\n4\\n?????\\n3\\n1\", \"7\\n2\\n?\\n2\\n0?\\n7\\n79259?087\\n4\\n?@\\n2\\n0?1\\n4\\n?????\\n3\\n1\", \"7\\n2\\n?\\n2\\n?0\\n7\\n79259?087\\n4\\n@?\\n2\\n0?1\\n4\\n?????\\n3\\n1\", \"7\\n2\\n?\\n2\\n?0\\n7\\n7... | {
"index": "code_r1_train_87"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 -100 100\\n-99\\n99\\n\", \"1 1 -100 100\\n99\\n-99\\n\", \"3 2 10 40\\n8 1 15\\n16 22\", \"3 2 10 40\\n8 1 15\\n16 23\", \"3 0 10 40\\n8 1 15\\n16 23\", \"0 0 10 40\\n8 1 15\\n16 23\", \"3 3 10 40\\n8 1 15\\n16 23\", \"3 0 10 61\\n8 1 15\\n16 23\"], \"output... | {
"index": "code_r1_train_88"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n5 2 3\\n6 4 5\\n\", \"2\\n5 3 4\\n9 4 4\\n\", \"2\\n5 2 3\\n9 4 7\\n\", \"2\\n5 2 3\\n1 4 7\\n\", \"2\\n5 2 4\\n9 4 4\\n\", \"2\\n5 2 4\\n1 4 7\\n\", \"2\\n5 4 4\\n1 4 7\\n\", \"2\\n5 3 4\\n9 4 5\\n\"], \"outputs\": [\"Yes\\nNo\\n\", \"No\\nNo\\n\", \"Yes\\nY... | {
"index": "code_r1_train_89"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5 2 5\\n\", \"5 4 5\\n\", \"3 5 3\\n\", \"3 3 3\\n\", \"7 2 7\\n\", \"5 5 5\\n\", \"4 4 1\\n\", \"5 5 1\\n\"], \"outputs\": [\"8\", \"64\", \"25\", \"9\", \"16\", \"125\", \"256\", \"3125\"]}"
} | {
"index": "code_r1_train_90"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 5 1 3\\n0 0 1\\n2 1 4\\n2 5 2 3\\n1 0\\n3 2\\n1 20 2 4\\n0\\n16\\n6 20 4 5\\n1 1 0 1 0 0\\n0 8 2 9 11 6\\n4 16 3 6\\n1 0 1 1\\n8 3 5 6\\n6 33 3 6\\n0 1 0 0 1 0\\n20 11 3 20 16 17\\n7 17 1 6\\n1 1 0 1 0 0 0\\n1 6 0 11 15 6 10\\n6 17 2 6\\n0 0 1 0 0 1\\n7 6 ... | {
"index": "code_r1_train_91"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"4 100 60\\n0 0 0\\n\", \"5 10 7\\n8 10 3 6\\n\", \"5 20 10\\n7 7 8 8\\n\", \"5 20 10\\n7 7 7 8\\n\", \"5 20 10\\n12 12 12 13\\n\", \"5 20 10\\n12 12 13 13\\n\", \"4 100 60\\n100 100 100\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"8\\n\", \"20\\... | {
"index": "code_r1_train_92"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"15\\n100\\n1000000000\\n1\\n0\", \"15\\n110\\n1000000000\\n1\\n0\", \"15\\n101\\n1000000000\\n3\\n0\", \"15\\n110\\n1000000000\\n0\\n0\", \"15\\n101\\n1001000000\\n3\\n0\", \"15\\n100\\n1000000000\\n0\\n0\", \"15\\n111\\n1001000000\\n3\\n0\", \"15\\n000\\n1000000... | {
"index": "code_r1_train_93"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n3\\n3 1 5 2 6 4 7\\n0\", \"2\\n1 2 3\\n3\\n3 1 1 2 6 4 7\\n0\", \"2\\n1 2 3\\n3\\n3 1 1 2 6 1 8\\n0\", \"2\\n1 2 1\\n3\\n3 1 1 2 3 1 8\\n0\", \"2\\n1 2 3\\n3\\n3 2 1 2 6 1 7\\n0\", \"2\\n1 2 1\\n3\\n4 1 1 2 3 1 8\\n0\", \"2\\n1 2 3\\n3\\n1 2 1 2 6 1 7... | {
"index": "code_r1_train_94"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 3 4 5\\n4\\n2 3 5 7\\n0\", \"5\\n1 2 3 4 5\\n4\\n2 1 0 7\\n0\", \"5\\n1 2 3 5 5\\n4\\n2 1 0 7\\n0\", \"5\\n1 2 3 5 5\\n4\\n2 1 0 6\\n0\", \"5\\n0 1 3 8 1\\n4\\n5 4 8 7\\n0\", \"5\\n0 1 2 8 1\\n4\\n5 4 8 7\\n0\", \"5\\n0 1 2 8 1\\n4\\n5 4 5 7\\n0\", \"5\\n... | {
"index": "code_r1_train_95"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nab\\ncd\\n\", \"1\\n2\\nab\\ncc\\n\", \"1\\n2\\nab\\ncc\\n\", \"1\\n2\\nab\\ncd\\n\", \"1\\n2\\nba\\ncc\\n\", \"1\\n2\\nba\\ncb\\n\", \"1\\n2\\nab\\ncb\\n\", \"1\\n2\\naa\\ncb\\n\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"N... | {
"index": "code_r1_train_96"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1 1\\n1\\n\", \"2 2\\n1\\n2\\n\", \"6 3\\n1\\n4\\n5\\n\", \"3 3\\n1\\n2\\n3\\n\", \"4 4\\n1\\n2\\n3\\n4\\n\", \"1000000000 0\\n\", \"5 5\\n1\\n2\\n3\\n4\\n5\\n\"], \"outputs\": [\"1\\n\", \"1\\n1\\n\", \"3\\n1\\n2\\n\", \"17\\n1\\n3\\n4\\n\", \"6\\n1\... | {
"index": "code_r1_train_97"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nW 0 2\\nW 1 2\\nD 0\\nW 2 4\\nR 3\\nR 2\\n1\\nR 1000000000\\n0\", \"6\\nW 0 2\\nW 0 2\\nD 0\\nW 2 4\\nR 3\\nR 2\\n1\\nR 1000000000\\n0\", \"6\\nW 0 2\\nW 1 2\\nD 0\\nW 2 4\\nR 5\\nR 2\\n1\\nR 1000000000\\n0\", \"6\\nW 0 2\\nW 0 2\\nD 0\\nW 2 4\\nR 3\\nR 4\\n1... | {
"index": "code_r1_train_98"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n3 0 6\", \"8 3\\n3 1 6\", \"8 4\\n3 1 6\", \"8 4\\n4 1 6\", \"10 3\\n4 4 6\", \"20 3\\n3 5 6\", \"10 3\\n4 0 6\", \"20 3\\n3 3 6\"], \"outputs\": [\"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_99"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.