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\": [\"ccpa\", \"cnbc\", \"emec\", \"ccoa\", \"aocc\", \"pcca\", \"ccao\", \"pcda\"], \"outputs\": [\"4\\n\", \"6\\n\", \"5\\n\", \"4\\n\", \"4\\n\", \"4\\n\", \"4\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_3600"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"46\\n\", \"46\\n\", \"10\\n\", \"20\\n\", \"17\\n\", \"16\\n\", \"18\\n\"], \"outputs\": [\"10\\n\", \"46\\n\", \"46\\n\", \"10\\n\", \"20\\n\", \"17\\n\", \"16\\n\", \"18\\n\"]}"
} | {
"index": "code_r1_train_3601"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9 8\", \"1 8 2\", \"6 6 5\", \"0 9 8\", \"1 1 2\", \"6 7 5\", \"1 2 2\", \"6 9 5\"], \"outputs\": [\"107\\n\", \"83\\n\", \"71\\n\", \"98\\n\", \"22\\n\", \"81\\n\", \"23\\n\", \"101\\n\"]}"
} | {
"index": "code_r1_train_3602"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 31\\n2 4\\n2 3\\n3 3\", \"4\\n1 31\\n2 2\\n2 1\\n3 3\", \"4\\n1 31\\n2 2\\n2 3\\n3 5\", \"4\\n1 31\\n2 4\\n2 3\\n1 3\", \"4\\n1 31\\n2 2\\n2 3\\n4 5\", \"4\\n1 31\\n2 2\\n2 0\\n3 3\", \"4\\n1 31\\n2 8\\n2 3\\n1 3\", \"4\\n1 31\\n2 8\\n2 3\\n1 1\"], \"output... | {
"index": "code_r1_train_3603"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n00000000000000000000000000\\n0\\n\", \"a\\n00000000000000000000000000\\n0\\n\", \"a\\n00000000000000000100000000\\n0\\n\", \"aaaa\\n00000000000000000000000000\\n0\\n\", \"aaaa\\n00000000000000000000000000\\n0\\n\", \"aaaa\\n10000000000000000000000000\\n0\\n\"... | {
"index": "code_r1_train_3604"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n1 2\\n\", \"2\\n1 2\\n\", \"3\\n1 2\\n1 3\\n\", \"3\\n1 2\\n2 3\\n\", \"3\\n1 3\\n2 3\\n\", \"3\\n1 2\\n1 3\\n\", \"5\\n1 2\\n2 3\\n3 4\\n4 5\\n\", \"5\\n1 3\\n2 3\\n3 4\\n4 5\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"... | {
"index": "code_r1_train_3605"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\\n3\\n\", \"4\\n9\\n\", \"5\\n6\\n\", \"6\\n9\\n\", \"2\\n6\\n\", \"1\\n2\\n\", \"3\\n3\\n\"], \"outputs\": [\"1\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"2\\n\", \"1\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_3606"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5\\n3 1\\n3 5\\n5 4\\n5 2\\nticdm\\n\", \"5\\n3 1\\n3 2\\n5 4\\n5 2\\nticdm\\n\", \"5\\n1 2\\n2 3\\n2 4\\n3 5\\nabcbb\\n\", \"5\\n1 2\\n4 3\\n2 4\\n3 5\\nabcbb\\n\", \"5\\n3 1\\n3 5\\n1 4\\n5 2\\nticdm\\n\", \"5\\n3 1\\n3 2\\n5 4\\n5 1\\nticdm\\n\", \"5\\n1 2\\n2... | {
"index": "code_r1_train_3607"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nr\\n\", \"1\\nb\\n\", \"1\\nr\\n\", \"1\\nb\\n\", \"2\\nrb\\n\", \"2\\nbr\\n\", \"2\\nrr\\n\", \"2\\nbb\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_3608"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n1 1\\n1 1\\n\", \"2\\n1 1\\n2 2\\n\", \"2\\n2 2\\n1 1\\n\", \"2\\n2 1\\n1 2\\n\", \"2\\n3 2\\n3 2\\n\", \"2\\n1 2\\n2 1\\n\", \"2\\n3 1\\n9 8\\n\", \"2\\n2 1\\n1 1\\n\"], \"outputs\": [\"maybe\\n\", \"unrated\\n\", \"maybe\\n\", \"rated\\n\", \"rated\\n\", \"... | {
"index": "code_r1_train_3609"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 8\\n2 0\\n5 2\\n25 331\\n5594 361646\\n\", \"5\\n3 5\\n4 6\\n3 4\\n69 696\\n51217 654321\\n\", \"5\\n3 5\\n2 0\\n1 2\\n69 696\\n87131 654321\\n\", \"5\\n6 5\\n2 0\\n6 2\\n39 696\\n185099 29706\\n\", \"5\\n3 5\\n2 0\\n1 2\\n36 696\\n87131 654321\\n\", \"5\\n... | {
"index": "code_r1_train_3610"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n2\\n1 1\\n1\\n1\\n\", \"2\\n2\\n1 1\\n1\\n1\\n\", \"1\\n5\\n1 3 4 5 2\\n\", \"1\\n5\\n1 3 4 5 2\\n\", \"1\\n5\\n2 3 4 5 2\\n\", \"1\\n5\\n1 3 4 8 2\\n\", \"1\\n5\\n1 3 4 5 1\\n\", \"1\\n5\\n3 3 4 5 2\\n\"], \"outputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"5\\n\", ... | {
"index": "code_r1_train_3611"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2+2\\n\", \"1+2\\n\", \"2+2\\n\", \"45+5\\n\", \"45+5\\n\", \"5+55\\n\", \"5+54\\n\", \"55+4\\n\"], \"outputs\": [\"-46\\n\", \"-47\\n\", \"-46\\n\", \"0\\n\", \"0\\n\", \"-440\\n\", \"-441\\n\", \"9\\n\"]}"
} | {
"index": "code_r1_train_3612"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n64693265\\n\", \"1\\n10872979\\n\", \"1\\n21674312\\n\", \"1\\n32114318\\n\", \"1\\n54097276\\n\", \"1\\n65971871\\n\", \"1\\n93108643\\n\", \"1\\n30365546\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\... | {
"index": "code_r1_train_3613"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 3\\n\", \"?10?\\n239 7\\n\", \"?01?\\n7 239\\n\", \"?????\\n13 37\\n\", \"01101001\\n5 7\\n\", \"?\\n940946 502068\\n\", \"1?\\n930967 495068\\n\", \"?0?\\n333391 358196\\n\"], \"outputs\": [\"4\\n\", \"28\\n\", \"28\\n\", \"0\\n\", \"96\\n\", \"0\\n\", \... | {
"index": "code_r1_train_3614"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"2\\n4\\n2\\n\", \"2\\n2\\n14\\n\", \"100\\n5\\n2\\n5\\n6\\n7\\n2\\n9\\n10\\n11\\n12\\n13\\n15\\n16\\n17\\n18\\n19\\n25\\n21\\n22\\n23\\n24\\n16\\n26\\n27\\n28\\n3\\n30\\n31\\n32\\n5\\n33\\n35\\n36\\n5\\n38\\n39\\n40\\n55\\n42\\n43\\n34\\n45\\n75... | {
"index": "code_r1_train_3615"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n\", \"2\\n3 3\\n\", \"2\\n4 5\\n\", \"2\\n3 4\\n\", \"2\\n2 5\\n\", \"2\\n2 2\\n\", \"2\\n3 2\\n\", \"2\\n4 3\\n\"], \"outputs\": [\"12\\n\", \"3\\n\", \"20\\n\", \"12\\n\", \"10\\n\", \"2\\n\", \"6\\n\", \"12\\n\"]}"
} | {
"index": "code_r1_train_3616"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\\n4 4 2 6\", \"1 \\n4 7\\n4 0 2 6\", \"1 \\n4 7\\n0 0 0 0\", \"1 \\n4 0\\n9 1 1 1\", \"1 \\n4 8\\n0 1 1 1\", \"1 \\n4 9\\n4 4 2 6\", \"1 \\n4 14\\n4 4 2 6\", \"1 \\n4 14\\n4 1 2 6\"], \"outputs\": [\"1 4\", \"1 3\\n\", \"7 6\\n\", \"2 3\\n\"... | {
"index": "code_r1_train_3617"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ncodeforces\\naezakmi\\nabacaba\\nconvexhull\\nswflldjgpaxs\\nmyneeocktxpqjpz\\n\", \"6\\nsecrofedoc\\naezakmi\\nabacaba\\nconvexhull\\nswflldjgpaxs\\nmyneeocktxpqjpz\\n\", \"6\\nsecrofedoc\\naezakmi\\nabacaba\\nconvexhull\\nswflldagpjxs\\nmyneeocktxpqjpz\\n\"... | {
"index": "code_r1_train_3618"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\\n3 -20\\n2 18\", \"3\\n7 9\\n62 0\\n111 1\", \"3\\n2 10\\n3 -4\\n6 15\", \"3\\n2 1\\n4 -20\\n6 15\", \"3\\n2 18\\n3 -20\\n6 15\", \"3\\n7 -3\\n15 0\\n110 0\", \"3\\n2 18\\n4 -20\\n6 15\", \"3\\n36 -3\\n6 4\\n111 2\"], \"outputs\": [\"27\\n\", \"10\\n\", ... | {
"index": "code_r1_train_3619"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\", \"2 3 2\", \"2 3 0\", \"2 6 0\", \"4 6 0\", \"8 6 0\", \"0 6 0\", \"0 9 0\"], \"outputs\": [\"1 3\\n\", \"0 3\\n\", \"2 3\\n\", \"2 6\\n\", \"4 6\\n\", \"8 6\\n\", \"0 6\\n\", \"0 9\\n\"]}"
} | {
"index": "code_r1_train_3620"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"RL\", \"QL\", \"LQ\", \"KR\", \"KQ\", \"QK\", \"RK\", \"SK\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3621"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"passxord\", \"parsxosd\", \"parsxpsd\", \"qarsxpsd\", \"qarxspsd\", \"dspsxraq\", \"qarxspsc\", \"cspsxraq\"], \"outputs\": [\"INVALID\\n\", \"INVALID\\n\", \"INVALID\\n\", \"INVALID\\n\", \"INVALID\\n\", \"INVALID\\n\", \"INVALID\\n\", \"INVALID\\n\"]}"
} | {
"index": "code_r1_train_3622"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\", \"2\\n5\", \"2\\n0\", \"2\\n38\", \"2\\n44\", \"2\\n40\", \"2\\n10\", \"2\\n30\"], \"outputs\": [\"2\", \"2\", \"2\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_3623"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n10 3 1 2\\n2 4 1 3\\n1 2 1 1\", \"2\\n10 3 1 2\\n2 4 1 3\\n1 3 1 1\", \"2\\n10 3 1 2\\n3 4 1 3\\n1 3 1 1\", \"2\\n10 3 2 2\\n3 4 1 3\\n1 3 1 1\", \"2\\n10 3 2 2\\n3 8 1 3\\n1 3 1 1\", \"2\\n10 3 2 2\\n3 8 1 3\\n1 6 1 1\", \"2\\n10 2 2 2\\n3 8 1 3\\n1 6 1 1\",... | {
"index": "code_r1_train_3624"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1\\n\", \"1\\n3\\n1 1 1\\n\", \"1\\n5\\n1 1 1 1 1\\n\", \"2\\n2\\n1 1\\n3\\n1 1 1\\n\", \"2\\n3\\n1 1 1\\n2\\n1 1\\n\", \"1\\n7\\n1 1 1 1 1 1 1\\n\", \"3\\n2\\n1 1\\n2\\n1 3\\n1\\n3\\n\", \"3\\n2\\n1 1\\n2\\n1 2\\n1\\n3\\n\"], \"outputs\": [\"1\\n\", \"... | {
"index": "code_r1_train_3625"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5\", \"8\", \"2\", \"6\", \"4\", \"1\", \"3\"], \"outputs\": [\"1\\n2\\n3\\n4\\n5\\n6\\n7\\n\", \"1\\n2\\n3\\n4\\n5\\n\", \"1\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n\", \"1\\n2\\n\", \"1\\n2\\n3\\n4\\n5\\n6\\n\", \"1\\n2\\n3\\n4\\n\", \"1\\n\", \"1\\n2\\n3\\n\"]}"
... | {
"index": "code_r1_train_3626"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1 1 1\\n1\\n\", \"3 1 2\\n1 2 3\\n\", \"3 1 2\\n1 0 3\\n\", \"3 1 3\\n1 0 3\\n\", \"3 1 3\\n2 0 3\\n\", \"3 1 4\\n1 0 3\\n\", \"3 1 2\\n1 1 1\\n\"], \"outputs\": [\"0 \", \"0\\n\", \"1 0 1 \", \"1 0 1\\n\", \"1 0 0\\n\", \"2 0 0\\n\", \"1 0 3\\n... | {
"index": "code_r1_train_3627"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n2 3\\n1 3\\n\", \"4 3\\n1 2\\n2 3\\n3 4\\n1 4\\n\", \"4 4\\n1 2\\n2 3\\n3 4\\n1 3\\n\", \"4 2\\n1 2\\n2 4\\n3 4\\n1 4\\n\", \"4 3\\n1 2\\n2 3\\n3 4\\n1 3\\n\", \"4 3\\n1 2\\n2 3\\n3 4\\n2 3\\n\", \"4 3\\n1 2\\n2 3\\n3 4\\n1 5\\n\", \"4 3\\n1 2\\n2 3\\... | {
"index": "code_r1_train_3628"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 2 2 2\\n1 6\\n2 4\\n\", \"2 2 5 2\\n1 3\\n2 8\\n\", \"2 2 2 2\\n1 6\\n2 0\\n\", \"2 2 5 2\\n1 3\\n0 8\\n\", \"2 2 5 2\\n1 3\\n0 6\\n\", \"2 2 5 2\\n2 3\\n0 6\\n\", \"2 2 2 2\\n1 3\\n2 4\\n\", \"2 2 5 2\\n1 3\\n2 4\\n\"], \"outputs\": [\"16\\n\", \"26\\n\", \"11... | {
"index": "code_r1_train_3629"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n1\\n2\\n\", \"1 1 1 1\\n1\\n1\\n\", \"1 1 1 2\\n1\\n2\\n\", \"1 1 1 1\\n0\\n1\\n\", \"2 1 1 1\\n1 2\\n2\\n\", \"2 1 1 1\\n1 2\\n1\\n\", \"2 1 1 1\\n1 2\\n3\\n\", \"2 1 2 1\\n1 2\\n1\\n\"], \"outputs\": [\"-1\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"1\\n1... | {
"index": "code_r1_train_3630"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\", \"2\", \"8\", \"7\", \"9\", \"3\"], \"outputs\": [\"5\\n\", \"6\\n\", \"4\\n\", \"2\\n\", \"8\\n\", \"7\\n\", \"9\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_3631"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n\", \"2\\n6 8\\n\", \"2\\n6 4\\n\", \"2\\n6 4\\n\", \"2\\n4 6\\n\", \"2\\n6 8\\n\", \"2\\n6 3\\n\", \"2\\n6 6\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"3\\n\", \"6\\n\"]}"
} | {
"index": "code_r1_train_3632"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n2 0\\n\", \"1\\n2 1\\n\", \"1\\n2 0\\n\", \"1\\n2 -1\\n\", \"1\\n1 1 1\\n\", \"1\\n1 1 0\\n\", \"1\\n1 1 0\\n\"], \"outputs\": [\"0.500000\\n\", \"0.000000\\n\", \"0.500000\\n\", \"0.000000\\n\", \"-0.500000\\n\", \"1.000000\\n\", \"0.000000\\... | {
"index": "code_r1_train_3633"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 2\\n8 2\\n5 1\\n\", \"153 105 1\\n96 83995\\n\", \"10 4 4\\n3 5\\n5 8\\n6 3\\n8 4\\n\", \"229 79 2\\n27 270968\\n76 284309\\n\", \"229 79 2\\n27 349050\\n76 284309\\n\", \"229 79 2\\n27 349050\\n16 284309\\n\", \"229 79 2\\n53 349050\\n16 284309\\n\", \"229 ... | {
"index": "code_r1_train_3634"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"x\\nz\\n\", \"h\\nh\\n\", \"aaa\\nxxy\\n\", \"uvan\\naimq\\n\", \"azzel\\napqle\", \"azzle\\napqle\", \"azzle\\napqld\", \"azzle\\ndlqpa\"], \"outputs\": [\"Yes\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_3635"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n1 1\\n\", \"1\\n7 0\\n1 2\\n\", \"1\\n7 0\\n2 2\\n\", \"1\\n15 0\\n1 1\\n\", \"1\\n1 5\\n101 3\\n\", \"1\\n105 0\\n1 2\\n\", \"1\\n402 2\\n4 4\\n\", \"1\\n4 4\\n402 2\\n\"], \"outputs\": [\"<\\n\", \"<\\n\", \"<\\n\", \">\\n\", \"<\\n\", \">\\n\", \">\\... | {
"index": "code_r1_train_3636"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"?\\n\", \"7\\n\", \"B\\n\", \"5\\n\", \"C\\n\", \"8\\n\", \"D\\n\"], \"outputs\": [\"9\", \"9\", \"1\", \"9\\n\", \"1\\n\", \"9\\n\", \"1\\n\", \"9\\n\"]}"
} | {
"index": "code_r1_train_3637"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n3 4\", \"2\\n3 3\\n3 0\", \"2\\n5 3\\n3 0\", \"2\\n5 3\\n6 0\", \"2\\n5 3\\n6 1\", \"2\\n5 2\\n6 1\", \"2\\n3 2\\n6 1\", \"2\\n1 2\\n6 1\"], \"outputs\": [\"6\\n7\", \"6\\n7\\n\", \"10\\n7\\n\", \"10\\n12\\n\", \"10\\n13\\n\", \"11\\n13\\n\", \"7\\n13\\... | {
"index": "code_r1_train_3638"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n2 3\\n0 0\", \"3 4\\n5 6\\n2 0\\n0 0\", \"3 4\\n5 6\\n2 4\\n0 0\", \"4 4\\n5 6\\n2 0\\n0 0\", \"4 4\\n5 6\\n4 0\\n0 0\", \"3 5\\n5 6\\n2 2\\n0 0\", \"3 4\\n5 0\\n2 2\\n0 0\", \"3 4\\n5 6\\n2 1\\n0 0\"], \"outputs\": [\"####\\n####\\n####\\n\\n######\\... | {
"index": "code_r1_train_3639"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n1\\n2\\n3\\n\", \"4 0 4\\n1\\n2\\n3\\n4\\n\", \"4 1 4\\n1\\n2\\n3\\n4\\n\", \"5 2 5\\n1\\n2\\n2\\n4\\n5\\n\", \"5 2 5\\n1\\n2\\n3\\n1\\n5\\n\", \"5 2 5\\n1\\n3\\n3\\n1\\n5\\n\", \"5 2 5\\n1\\n3\\n3\\n2\\n5\\n\", \"5 2 5\\n1\\n2\\n3\\n4\\n5\\n\"], \"output... | {
"index": "code_r1_train_3640"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"f\\n\", \"zz\\n\", \"ax\\n\", \"za\\n\", \"ddr\\n\", \"ntt\\n\", \"lol\\n\", \"xxx\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3641"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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.00 200 1\\n1 0.50 0\\n1.00 200 2\\n1 0.75 60\\n3 0.60 100\\n1.00 60 2\\n1 0.75 65\\n3 0.60 100\\n1.00 100 2\\n3 0.50 10\\n2 0.10 18\", \"4\\n1.00 200 1\\n1 0.50 28\\n1.00 200 2\\n1 0.75 40\\n3 0.60 100\\n1.00 50 2\\n1 0.75 40\\n3 0.60 100\\n1.00 100 2\\n3 0... | {
"index": "code_r1_train_3642"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"6\\n\", \"1\\n\", \"7\\n\", \"3\\n\", \"9\\n\", \"0\\n\", \"2\\n\"], \"outputs\": [\"40\\n\", \"14\\n\", \"0\\n\", \"25\\n\", \"0\\n\", \"58\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3643"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 2\", \"0 2 2\", \"0 2 4\", \"9 7 2\", \"1 3 4\", \"4 8 2\", \"9 9 2\", \"0 5 1\"], \"outputs\": [\"3\\n\", \"2\\n\", \"1\\n\", \"-1\\n\", \"0\\n\", \"3\", \"0\", \"6\"]}"
} | {
"index": "code_r1_train_3644"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nr\\n\", \"1\\nr\\n\", \"1\\ns\\n\", \"2\\ntj\\n\", \"2\\ntj\\n\", \"2\\nti\\n\", \"2\\nit\\n\", \"5\\nabcde\\n\"], \"outputs\": [\"1\\n1 \\n\", \"1\\n1 \\n\", \"1\\n1 \\n\", \"2\\n1 2 \\n\", \"2\\n1 2 \\n\", \"2\\n1 2 \\n\", \"1\\n1 1 \\n\", \"1\\n1 1 1 1 1 \... | {
"index": "code_r1_train_3645"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n\", \"1 1\\n2\\n\", \"1 1\\n4\\n\", \"1 4\\n9\\n\", \"1 2\\n9\\n\", \"1 2\\n9\\n\", \"1 1\\n4\\n\", \"1 1\\n3\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\", \"1\", \"1\"]}"
} | {
"index": "code_r1_train_3646"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n\", \"1\\n5\\n4\\n\", \"1\\n8\\n4\\n\", \"1\\n8\\n1\\n\", \"1\\n7\\n1\\n\", \"1\\n5\\n1\\n\", \"1\\n5\\n2\\n\", \"1\\n8\\n2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3647"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nfile10\\nfi2el0\\nfile3\", \"2\\nfjle10\\nfi2el0\\niele3\", \"2\\n01eljf\\nfi2el0\\niele3\", \"2\\nflje10\\nif3el0\\n2elei\", \"2\\nfile10\\nfi2el0\\neile3\", \"2\\nfjle10\\nfi2el0\\neile3\", \"2\\n01eljf\\nfi2el0\\niele2\", \"2\\n01ejlf\\nfi2el0\\niele2\"], ... | {
"index": "code_r1_train_3648"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\\n4 5\\n0 4\", \"2 2\\n5 8\\n2 7\", \"0 9\\n4 5\\n0 6\", \"2 20\\n5 9\\n1 8\", \"2 20\\n4 5\\n0 4\", \"0 20\\n4 5\\n1 2\", \"1 34\\n3 9\\n1 8\", \"1 5\\n27 4\\n0 1\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"6\\n\", \"4\\n\", \"0\\n\", \"3\\n\", \"27\\n... | {
"index": "code_r1_train_3649"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n3 3 1\\n\", \"3\\n3 4 1\\n\", \"3\\n6 4 1\\n\", \"3\\n6 6 1\\n\", \"3\\n2 4 1\\n\", \"3\\n4 3 2\\n\", \"3\\n2 6 1\\n\", \"3\\n6 9 1\\n\"], \"outputs\": [\"12\\n\", \"7\\n\", \"14\\n\", \"24\\n\", \"10\\n\", \"13\\n\", \"12\\n\", \"21\\n\"]}"
} | {
"index": "code_r1_train_3650"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n\", \"1\\n1\\n3\\n3\\n\", \"1\\n1\\n5\\n3\\n\", \"1\\n1\\n5\\n2\\n\", \"1\\n1\\n2\\n7\\n\", \"2\\n1 2\\n1 2\\n4\\n\", \"2\\n1 2\\n2 2\\n4\\n\", \"2\\n2 2\\n1 2\\n4\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"... | {
"index": "code_r1_train_3651"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"0 0\\n\", \"1 0\\n\", \"0 1\\n\", \"0 6\\n\", \"1 1\\n\", \"0 6\\n\", \"1 1\\n\", \"2 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"2\\n\", \"22\\n\", \"1\\n\", \"22\\n\", \"1\\n\", \"5\\n\"]}"
} | {
"index": "code_r1_train_3652"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n\", \"1 1\\n\", \"1 4\\n\", \"1 4\\n\", \"1 1\\n\", \"1 7\\n\", \"2 1\\n\", \"4 5\\n\"], \"outputs\": [\"10\\n\", \"15\\n\", \"5\\n\", \"5\\n\", \"15\\n\", \"4\\n\", \"30\\n\", \"13\\n\"]}"
} | {
"index": "code_r1_train_3653"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\nonxoo\", \"5 2 1\\nooxno\", \"5 2 2\\nonoox\", \"5 2 1\\nonxoo\", \"5 2 2\\nonxoo\", \"5 2 3\\nooxoo\", \"5 2 3\\nooxoo\\n\", \"5 1 0\\nooooo\\n\"], \"outputs\": [\"1\\n5\\n\", \"5\\n\", \"1\\n4\\n\", \"1\\n\", \"1\\n\", \"1\\n5\", \"1\\n5\\n\", \"\"]}"
} | {
"index": "code_r1_train_3654"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n1 2\", \"2\\n1 2\\n\", \"3\\n2 3\\n1 3\", \"3\\n1 2\\n2 3\", \"3\\n1 2\\n1 3\", \"3\\n1 2\\n1 3\\n\", \"5\\n1 2\\n1 3\\n3 4\\n3 5\"], \"outputs\": [\"1\\n1\\n\", \"1\\n1\", \"1\\n1\\n\", \"1\\n1\\n2\\n\", \"1\\n2\\n1\\n\", \"2\\n1\\n1\", \"2\\n1\... | {
"index": "code_r1_train_3655"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nwabalabadubdu\\nw\\n\", \"1\\nasdfghjklqwertyuiop\\ne\\n\", \"1\\nasdfghjklqwertyuiop\\nf\\n\", \"1\\nadsfdxvxvsdfdgxcvsdfd\\nc\\n\", \"1\\nhghjhgvdvkhbgtftfvgvp\\nj\\n\", \"1\\nqwertyuioppoiuytrewqplkmnjiuhbs\\nz\\n\", \"5\\nabcde\\nc\\nabcde\\nb\\nx\\ny\\na... | {
"index": "code_r1_train_3656"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n0\\n\", \"2\\n1 2\\n\", \"2\\n1 2\\n\", \"2\\n3 2\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_3657"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\", \"1 1\\n0\", \"3 3\\n0 1 0\\n1 0 1\\n0 0 0\", \"4 2\\n0 3 0 0\\n0 0 1 1\\n0 0 1 1\\n1 0 0 0\", \"4 2\\n0 1 0 0\\n0 0 1 1\\n0 0 0 1\\n1 0 0 0\", \"4 2\\n0 1 0 0\\n0 -1 1 1\\n0 0 0 1\\n1 0 0 0\", \"4 2\\n0 1 0 0\\n0 -1 1 1\\n0 1 0 1\\n1 0 0 0\", \"4 2\\n... | {
"index": "code_r1_train_3658"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nA\\nUn\\nB\\nUn\", \"4\\n@\\nUn\\nB\\nUn\", \"4\\n@\\nUn\\nB\\nnU\", \"4\\n@\\nUn\\nB\\noU\", \"4\\n@\\nUn\\nA\\noU\", \"4\\n@\\nUn\\nA\\nUo\", \"4\\n@\\nTn\\nA\\nUo\", \"4\\n@\\nTn\\nA\\nVo\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\... | {
"index": "code_r1_train_3659"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n3\\n7\\n6 5\\n2\\n9\\n7\\n2\\n3\\n3\\n24\\n2\\n7\\n3\\n5\\n4 5\\n4\\n0\\n2\\n8\\n1\\n9\\n6\\n0\\n6\\n7 4\\n1\\n1\\n2\\n1\\n2\\n1\\n4\\n2\\n2\\n4\\n6\\n2 3\\n1\\n1\\n2\\n2\\n2\\n0 0\", \"2 2\\n1\\n6\\n3\\n24\\n6 5\\n3\\n9\\n0\\n2\\n6\\n3\\n3\\n3\\n3\... | {
"index": "code_r1_train_3660"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n1 5\\n4 3\", \"2\\n1 5\\n3 3\", \"2\\n1 5\\n3 3\\n\", \"3\\n6 5\\n-1 7\\n3 3\", \"3\\n0 5\\n-1 7\\n3 3\", \"3\\n6 8\\n-1 10\\n3 3\", \"3\\n6 5\\n-1 10\\n3 3\", \"3\\n6 5\\n-1 10\\n3 3\\n\"], \"outputs\": [\"3\\n\", \"3\", \"3\\n\", \"6\\n\", \"4\\n\", \"5\\n\... | {
"index": "code_r1_train_3661"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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*\\n1\\na\\n\", \"1\\n*\\n1\\nz\\n\", \"1\\n*\\n1\\na\\n\", \"1\\n*\\n1\\nz\\n\", \"1\\n*\\n1\\ny\\n\", \"1\\n*\\n1\\nb\\n\", \"1\\n*\\n2\\na\\nz\\n\", \"2\\n**\\n1\\naa\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\"... | {
"index": "code_r1_train_3662"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n01010\\n0\\n\", \"2\\n01010\\n0\\n\", \"2\\n01110\\n0\\n\", \"2\\n01011\\n1\\n\", \"2\\n10011\\n1\\n\", \"2\\n01110\\n1\\n\", \"2\\n01111\\n1\\n\", \"2\\n11011\\n1\\n\"], \"outputs\": [\"1\\n0\\n\", \"1\\n0\\n\", \"0\\n0\\n\", \"1\\n0\\n\", \"2\\n0\\n\", \"0\... | {
"index": "code_r1_train_3663"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6 4\\n100111\\n3 2\\n1?1\\n3 2\\n0?1\\n4 4\\n????\\n7 4\\n?1??0?1\\n10 8\\n11???11?11\\n4 2\\n1??1\\n4 4\\n0??0\\n6 2\\n00????\\n\", \"9\\n6 4\\n100110\\n3 2\\n1?1\\n3 2\\n0?1\\n4 4\\n????\\n7 4\\n1?0??1?\\n10 6\\n11???11?11\\n4 2\\n1??1\\n4 4\\n?0?0\\n6 2\\n... | {
"index": "code_r1_train_3664"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"1\\n1\\n\", \"1\\n3\\n\", \"2\\n2 1\\n\", \"2\\n1 1\\n\", \"2\\n1 3\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"3\\n\", \"2\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_3665"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 2\\n3 3\\n\", \"2 2\\n3 2\\n\", \"2 3\\n1 2\\n\", \"4 2\\n1 1 3 4\\n\", \"4 2\\n1 2 3 4\\n\", \"5 2\\n2 4 1 1 3\\n\", \"5 2\\n2 4 1 1 1\\n\", \"5 3\\n5 5 7 5 1\\n\"], \"outputs\": [\"6\\n\", \"4\\n\", \"0\\n\", \"6\\n\", \"8\\n\", \"8\\n\", \"6\\n\", \"20\\n\"]... | {
"index": "code_r1_train_3666"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nh\\n\", \"1\\na\\n\", \"1\\na\\n\", \"1\\nh\\n\", \"1\\nb\\n\", \"1\\ni\\n\", \"1\\nc\\n\", \"2\\na\\na\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_3667"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n2\", \"1\\n7\", \"1\\n3\", \"1\\n6\", \"1\\n1\", \"1\\n5\", \"1\\n8\"], \"outputs\": [\"4\\n\", \"2\\n\", \"7\\n\", \"3\\n\", \"6\\n\", \"1\\n\", \"5\\n\", \"8\\n\"]}"
} | {
"index": "code_r1_train_3668"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\\n\", \"1\\n\", \"4\\n\", \"0\\n\", \"7\\n\", \"6\\n\", \"2\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3669"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n228 1337 3\\n\", \"1\\n1\\n228 1512 3\\n\", \"1\\n1\\n228 2063 3\\n\", \"1\\n1\\n228 2063 2\\n\", \"1\\n1\\n342 1512 3\\n\", \"1\\n1\\n228 2063 0\\n\", \"1\\n1\\n228 4021 2\\n\", \"1\\n3\\n40 270 228\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\... | {
"index": "code_r1_train_3670"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\\n\", \"1\\n6\\n\", \"1\\n3\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3671"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1 1\\n1\\n\", \"1 2\\n1\\n\", \"1 4\\n1\\n\", \"1 7\\n1\\n\", \"1 3\\n1\\n\", \"2 1\\n1\\n2\\n\", \"2 1\\n2\\n1\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3672"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n0\\n\", \"1\\n1\\n0\\n\", \"2\\n1 1\\n0 0\\n\", \"2\\n1 1\\n0 0\\n\", \"2\\n0 1\\n0 0\\n\", \"4\\n1 0 0 0\\n2 3 4 2\\n\", \"4\\n1 0 0 0\\n2 3 4 2\\n\", \"5\\n0 0 0 0 1\\n0 1 2 3 4\\n\"], \"outputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\"... | {
"index": "code_r1_train_3673"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n1 1\\n1 1\\n\", \"2\\n1 1\\n1 1\\n\", \"2\\n1 0\\n1 1\\n\", \"2\\n1 0\\n1 0\\n\", \"2\\n1 1\\n1 0\\n\", \"2\\n2 1\\n1 0\\n\", \"2\\n2 1\\n1 1\\n\", \"2\\n2 2\\n1 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\... | {
"index": "code_r1_train_3674"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na\\n\", \"a\\nb\\n\", \"a\\na\\n\", \"a\\nb\\n\", \"a\\naa\\n\", \"a\\nab\\n\", \"a\\nab\\n\", \"a\\naa\\n\"], \"outputs\": [\"1 0\\n\", \"0 0\\n\", \"1 0 \\n\", \"0 0 \\n\", \"0 0\\n\", \"0 0\\n\", \"0 0 \\n\", \"0 0 \\n\"]}"
} | {
"index": "code_r1_train_3675"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5\\n\", \"4\\n\", \"2\\n\", \"2\\n\", \"6\\n\", \"7\\n\", \"8\\n\", \"4\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \"4\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_3676"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 1\\n1 3 1\\n2 4 1\\n3 5 2\\n3 1\\n2 4\\n2 3\\n4 5\", \"5\\n1 2 1\\n1 3 1\\n2 4 1\\n3 5 1\\n3 1\\n2 3\\n2 3\\n4 5\", \"5\\n1 2 1\\n1 3 2\\n2 4 1\\n3 5 1\\n3 1\\n2 3\\n2 3\\n4 4\", \"5\\n1 2 1\\n2 3 2\\n2 4 1\\n3 5 1\\n3 1\\n2 3\\n2 3\\n4 4\", \"5\\n1 2 2\\... | {
"index": "code_r1_train_3677"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n0 5\\n3 9\\n7 8\", \"3\\n0 8\\n3 9\\n7 8\", \"3\\n0 8\\n3 9\\n9 8\", \"3\\n1 5\\n3 9\\n7 8\", \"3\\n0 8\\n3 9\\n16 8\", \"3\\n0 4\\n3 9\\n16 8\", \"3\\n0 4\\n3 9\\n3 10\", \"3\\n0 0\\n22 26\\n6 0\"], \"outputs\": [\"4\\n\", \"1\\n\", \"1\\n\", \"3\", \"1\\n\"... | {
"index": "code_r1_train_3678"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\", \"5\", \"4\", \"3\", \"8\", \"7\", \"2\"], \"outputs\": [\"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"3\\n\", \"3\\n\", \"1\"]}"
} | {
"index": "code_r1_train_3679"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n1\\n\", \"1 1\\n1\\n1\\n1\\n\", \"1 1\\n1\\n2\\n1\\n\", \"1 1\\n1\\n1\\n1\\n\", \"1 1\\n1\\n4\\n1\\n\", \"1 1\\n1\\n7\\n1\\n\", \"1 1\\n1\\n7\\n2\\n\", \"1 1\\n1\\n7\\n3\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\"... | {
"index": "code_r1_train_3680"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n10:00\\n09:00\\n6\\n10:00\\n09:00\\n48\\n10:00\\n09:00\\n60\", \"3\\n10:00\\n09:00\\n6\\n10:00\\n09:00\\n56\\n10:00\\n09:00\\n60\", \"3\\n10:00\\n09:00\\n6\\n10:00\\n09:00\\n56\\n10:00\\n09:00\\n54\", \"3\\n10:01\\n09:00\\n7\\n10:00\\n09:00\\n48\\n10:00\\n09:... | {
"index": "code_r1_train_3681"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n17 6 4 4 4\\n7\\n19 5 13 11 12 13 5\\n1\\n213567876\\n\", \"3\\n5\\n17 6 4 4 4\\n7\\n19 5 13 11 12 13 5\\n1\\n213567876\\n\", \"3\\n5\\n27 6 4 4 4\\n7\\n19 5 13 11 12 13 5\\n1\\n213567876\\n\", \"3\\n5\\n27 6 4 4 4\\n7\\n36 2 13 11 12 13 8\\n1\\n213567876... | {
"index": "code_r1_train_3682"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 111\\n1111\\n00111\\n10010\", \"3 111\\n0111\\n00111\\n10010\", \"3 111\\n1111\\n00011\\n11000\", \"3 101\\n0111\\n00011\\n10000\", \"3 111\\n0111\\n00011\\n10010\", \"3 111\\n0111\\n00011\\n10000\", \"3 111\\n1111\\n00011\\n10000\", \"3 111\\n1011\\n00011\\n11... | {
"index": "code_r1_train_3683"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\", \"5\", \"9\", \"6\", \"4\", \"7\"], \"outputs\": [\"2\\n\", \"1\\n2\\n\", \"1\\n3\\n4\\n\", \"2\\n3\\n\", \"2\\n3\\n4\\n\", \"1\\n2\\n3\\n\", \"1\\n3\", \"1\\n2\\n4\"]}"
} | {
"index": "code_r1_train_3684"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 2 2\", \"2 2 4\", \"2 2 7\", \"9 9 3\", \"2 2 15\", \"2 1 15\", \"1 4 56\", \"1 4 85\"], \"outputs\": [\"329420637\\n\", \"159719097\\n\", \"903411140\\n\", \"184782344\\n\", \"224604980\\n\", \"1\\n\", \"701294609\\n\", \"808453146\\n\"]}"
} | {
"index": "code_r1_train_3685"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabc\\naba\", \"2\\nabd\\naba\", \"2\\nabc\\naaa\", \"2\\ncca\\naaa\", \"2\\nccb\\naab\", \"2\\nccb\\ncba\", \"2\\nbbb\\nbaa\", \"2\\nbbb\\naaa\"], \"outputs\": [\"3\\n2\", \"3\\n2\\n\", \"3\\n1\\n\", \"2\\n1\\n\", \"2\\n2\\n\", \"2\\n3\\n\", \"1\\n2\\n\", \"1... | {
"index": "code_r1_train_3686"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n56\\n\", \"1\\n6942\\n\", \"1\\n10241\\n\", \"1\\n22812\\n\", \"1\\n99999\\n\", \"1\\n507348\\n\", \"1\\n123451\\n\", \"4\\n1\\n3\\n4\\n12\\n\"], \"outputs\": [\"19\\n\", \"2314\\n\", \"3414\\n\", \"7604\\n\", \"33333\\n\", \"169116\\n\", \"41151\\n\", \"2\\n... | {
"index": "code_r1_train_3687"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n\", \"2 1\\n\", \"1 1\\n\", \"2 1\\n\", \"8 5\\n\", \"11 3\\n\", \"11 6\\n\", \"14 5\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"5\\n\", \"4\\n\", \"6\\n\"]}"
} | {
"index": "code_r1_train_3688"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n2 1\\n\", \"2\\n1 1\\n\", \"2\\n1 2\\n\", \"2\\n1 2\\n\", \"2\\n2 2\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"2\\n1 1\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"2\\n\", \"3\\n\", \"2\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_3689"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n5 1\\n\", \"2\\n2 1\\n5 6\\n\", \"2\\n2 1\\n5 2\\n\", \"2\\n1 4\\n5 1\\n\", \"2\\n2 1\\n5 6\\n\", \"3\\n100 100 100\\n100 100 100\\n\", \"3\\n100 100 100\\n100 100 101\\n\", \"3\\n100 100 100\\n100 100 100\\n\"], \"outputs\": [\"0\", \"-3\", \"0\\n\", \... | {
"index": "code_r1_train_3690"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\", \"1 2\\n0\", \"1 1\\n0\", \"2 4\\n0 2\", \"2 4\\n0 4\", \"2 6\\n0 3\", \"2 8\\n0 5\", \"2 9\\n0 1\"], \"outputs\": [\"0\\n\", \"2\\n\", \"1\", \"6\\n\", \"8\\n\", \"9\\n\", \"13\\n\", \"10\\n\"]}"
} | {
"index": "code_r1_train_3691"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\\n3\", \"3\\n0\", \"3\\n1\", \"3\\n6\", \"3\\n5\", \"3\\n7\", \"3\\n9\"], \"outputs\": [\"7\\n\", \"6\\n\", \"9\\n\", \"8\\n\", \"3\\n\", \"4\\n\", \"2\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3692"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"...QK...\\n........\\n........\\n........\\n........\\n........\\n........\\n...rk...\\n\", \"rnbqkbnr\\npppppppp\\n........\\n........\\n........\\n........\\nPPPPPPPP\\nRNBQKBNR\\n\", \"rppppppr\\n...k....\\n........\\n........\\n........\\n........\\nK...Q...\... | {
"index": "code_r1_train_3693"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"40\", \"41\", \"000\", \"010\", \"110\", \"111\", \"011\", \"581\"], \"outputs\": [\"3\\n\", \"4\\n\", \"0\\n\", \"1\\n\", \"5\\n\", \"6\\n\", \"2\\n\", \"25\\n\"]}"
} | {
"index": "code_r1_train_3694"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1 2 3\\n3\\n\", \"1 2 3\\n3\\n\", \"1 1 1\\n1\\n\", \"1 2 1\\n1\\n\", \"1 1 3\\n3\\n\", \"1 2 1\\n2\\n\", \"1 3 1\\n2\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_3695"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n9\\n\", \"1\\n1\\n\", \"1\\n0\\n\", \"1\\n10\\n\", \"1\\n11\\n\", \"2\\n5 6\\n\", \"2\\n1 6\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\", \"1\\n\", \"2\", \"2\\n\"]}"
} | {
"index": "code_r1_train_3696"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n64\\n\", \"1\\n64\\n\", \"1\\n33\\n\", \"1\\n42\\n\", \"1\\n69\\n\", \"2\\n15 4\\n\", \"2\\n15 5\\n\", \"2\\n70 70\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_3697"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 16\\n\", \"1\\n7 16\\n\", \"1\\n4 16\\n\", \"1\\n17 81\\n\", \"1\\n17 81\\n\", \"1\\n23 28\\n\", \"1\\n11 81\\n\", \"1\\n40 28\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_3698"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n0\", \"2\\n1\\n1\", \"2\\n2\\n1\", \"2\\n2\\n2\", \"2\\n2\\n3\", \"2\\n1\\n3\", \"2\\n1\\n6\"], \"outputs\": [\"second\\n\", \"first\\n\", \"first\\n\", \"first\\n\", \"second\\n\", \"first\\n\", \"first\\n\", \"first\\n\"]}"
} | {
"index": "code_r1_train_3699"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.