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\": [\"4\\n0 0\\n3 1\\n2 3\\n0 3\\n3\\n2 1\\n0 2\\n0 2\", \"4\\n0 0\\n3 0\\n2 3\\n0 1\\n3\\n2 1\\n0 2\\n0 2\", \"4\\n0 0\\n3 0\\n2 3\\n0 3\\n3\\n2 0\\n0 2\\n0 2\", \"4\\n0 0\\n3 1\\n4 3\\n0 3\\n3\\n2 0\\n0 3\\n0 2\", \"4\\n0 0\\n2 1\\n2 2\\n0 3\\n3\\n2 1\\n0 1\\n3 2\", ... | {
"index": "code_r1_train_5000"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n000 0\", \"2\\n1 0\\n000 0\", \"2\\n2 0\\n100 0\", \"2\\n1 0\\n010 0\", \"2\\n1 0\\n011 0\", \"2\\n3 0\\n000 3\", \"2\\n4 1\\n010 0\", \"2\\n6 0\\n100 1\"], \"outputs\": [\"0 2\\n0 0\\n\", \"0 1\\n0 0\\n\", \"0 2\\n0 100\\n\", \"0 1\\n0 10\\n\", \"0 1\\... | {
"index": "code_r1_train_5001"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n4 5\\n1 0 3 2\\n2 2\\n100 1\\n1 8\\n0\\n\", \"3\\n4 5\\n1 0 1 2\\n2 2\\n100 1\\n1 8\\n0\\n\", \"3\\n4 5\\n1 0 1 2\\n2 2\\n100 2\\n1 8\\n0\\n\", \"3\\n4 5\\n0 0 1 2\\n2 2\\n100 2\\n1 7\\n0\\n\", \"3\\n4 5\\n0 0 1 2\\n2 2\\n000 2\\n1 7\\n0\\n\", \"3\\n4 5\\n1 0... | {
"index": "code_r1_train_5002"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"3 5\\n\", \"2 2\\n\", \"3 3\\n\", \"2 3\\n\", \"3 3\\n\", \"2 2\\n\", \"2 3\\n\"], \"outputs\": [\"6\\n\", \"10\\n\", \"0\\n\", \"3\\n\", \"0\\n\", \"3\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_5003"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 8 1\", \"2 100\\n10 9\", \"2 100\\n7 10\", \"2 100\\n17 9\", \"2 101\\n3 21\", \"3 1\\n0 20 10\", \"3 1\\n9 20 10\", \"3 1\\n1 20 10\"], \"outputs\": [\"11\\n\", \"1\\n\", \"3\\n\", \"8\\n\", \"18\\n\", \"30\\n\", \"21\\n\", \"29\\n\"]}"
} | {
"index": "code_r1_train_5004"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"2\\n2 1\\n\", \"2\\n1 2\\n\", \"3\\n3 2 1\\n\", \"3\\n1 2 3\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"1\\n1 2\\n\", \"1\\n1 2\\n\", \"0\\n\", \"1\\n1 3\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_5005"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 4\\n2 2\\n\", \"1 4\\n2 2\\n\", \"1 4\\n0 2\\n\", \"1 4\\n-1 2\\n\", \"2 2\\n6 4\\n9 5\\n\", \"2 5\\n4 3\\n3 3\\n\", \"2 7\\n4 3\\n3 3\\n\", \"2 7\\n4 4\\n3 3\\n\"], \"outputs\": [\"1\\n\", \"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_5006"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\", \"4\", \"5\", \"4\", \"1\", \"5\", \"3\", \"2\"], \"outputs\": [\"1\\n\", \"1 2 3 4\\n1 2 4 3\\n1 3 2 4\\n1 3 4 2\\n1 4 2 3\\n1 4 3 2\\n2 1 3 4\\n2 1 4 3\\n2 3 1 4\\n2 3 4 1\\n2 4 1 3\\n2 4 3 1\\n3 1 2 4\\n3 1 4 2\\n3 2 1 4\\n3 2 4 1\\n3 4 1 2\\n3 4 2 1\\n4 ... | {
"index": "code_r1_train_5007"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\", \"0 2\", \"2 4\", \"1 4\", \"3 4\", \"1 1\", \"1 6\"], \"outputs\": [\"2\\n\", \"630\\n\", \"1\\n\", \"84\\n\", \"12\\n\", \"264\\n\", \"0\\n\", \"30\\n\"]}"
} | {
"index": "code_r1_train_5008"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"7\\n\", \"9\\n\", \"8\\n\", \"3\\n\", \"6\\n\", \"1\\n\", \"5\\n\", \"4\\n\"], \"outputs\": [\"-1\", \"2 9 4 7 5 3 6 1 8 \", \"2 8 4 6 3 5 1 7 \", \"-1\", \"-1\", \"1 \", \"2 5 3 1 4 \", \"2 4 1 3 \"]}"
} | {
"index": "code_r1_train_5009"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 5\\n4\\n\", \"1 2\\n1\\n\", \"1 1\\n2\\n\", \"1 5\\n1\\n\", \"1 4\\n2\\n\", \"1 1\\n1\\n\", \"1 6\\n3\\n\", \"1 5\\n5\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_5010"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n30 5\\n\", \"1\\n30 8\\n\", \"1\\n4 14\\n\", \"1\\n762 5\\n\", \"1\\n762 3\\n\", \"1\\n214 3\\n\", \"1\\n214 4\\n\", \"1\\n214 2\\n\"], \"outputs\": [\"166781\\n\", \"108520964\\n\", \"81853\\n\", \"202351486\\n\", \"290704\\n\", \"23006\\n\", \"3266925\\n\",... | {
"index": "code_r1_train_5011"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 4 4 7\\n\", \"1 2 3 3\\n\", \"3 3 1 2\\n\", \"1 2 3 6\\n\", \"2 2 6 6\\n\", \"4 7 1 4\\n\", \"1 3 5 7\\n\", \"5 7 1 3\\n\"], \"outputs\": [\"3\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_5012"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n10:28\\n\", \"4 1\\n5 4\\n18:40\\n\", \"8 8\\n1 1\\n13:24\\n\", \"1 1\\n1 1\\n23:59\\n\", \"3 1\\n2 3\\n05:03\\n\", \"1 1\\n3 2\\n08:44\\n\", \"1 3\\n1 2\\n21:43\\n\", \"1 1\\n3 2\\n08:44\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"8\\n\", \"1\\n\", \"... | {
"index": "code_r1_train_5013"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 3\", \"4\\n1 3 1 3\", \"4\\n1 5 1 3\", \"4\\n1 4 1 3\", \"4\\n2 4 1 2\", \"4\\n1 7 1 8\", \"4\\n0 0 0 0\", \"4\\n0 1 0 0\"], \"outputs\": [\"7\\n\", \"9\\n\", \"11\\n\", \"10\\n\", \"8\\n\", \"22\\n\", \"0\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_5014"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 4 2\\n1 2 2 3\\n5\\n2 3 4 5 1\\n1 2 3 4 5\\n8\\n7 4 5 6 1 8 3 2\\n5 3 6 4 7 5 8 4\\n\", \"3\\n4\\n1 3 4 2\\n1 2 2 3\\n5\\n2 3 4 5 1\\n1 2 3 4 5\\n8\\n7 4 5 6 1 8 3 2\\n5 3 6 8 7 5 8 4\\n\", \"3\\n4\\n1 3 4 2\\n1 2 2 3\\n5\\n2 3 4 5 1\\n1 2 5 4 5\\n8\\... | {
"index": "code_r1_train_5015"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n10\\n\", \"1\\n20\\n\", \"1\\n25\\n\", \"2\\n3 5\\n\", \"2\\n3 7\\n\", \"3\\n1 10 1\\n\", \"3\\n1 10 0\\n\", \"3\\n2 10 0\\n\"], \"outputs\": [\"10\\n1\\n\", \"20\\n1\\n\", \"25\\n1\\n\", \"5\\n1 2\\n\", \"7\\n1 2\\n\", \"11\\n1 2\\n3\\n\", \"10\\n1 2\\n3\\n\... | {
"index": "code_r1_train_5016"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n39 4 1\", \"4 1\\n5 4 0 1\", \"3 1\\n5 4 0 1\", \"3 2\\n39 19 1\", \"3 2\\n39 14 1\", \"3 2\\n39 18 1\", \"3 1\\n39 18 1\", \"3 1\\n39 16 1\"], \"outputs\": [\"No\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\"]}"
} | {
"index": "code_r1_train_5017"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"3 3\\n1 3 1\\n\", \"3 3\\n1 3 1\\n\", \"5 5\\n1 1 4 2 2\\n\", \"5 5\\n1 1 0 2 2\\n\", \"5 5\\n1 1 0 3 2\\n\", \"5 5\\n2 1 0 3 2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"9\\n\", \"9\\n\", \"1000\\n\", \"1000\\n\", \"1075\\n\", \"1... | {
"index": "code_r1_train_5018"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\\n1 99 9\\n1 49 1\\n2 1 149\\n\", \"3 12\\n1 99 9\\n1 49 1\\n2 1 149\\n\", \"3 12\\n1 99 9\\n1 49 1\\n2 1 149\\n\", \"3 9\\n1 134 9\\n1 49 1\\n2 1 149\\n\", \"3 9\\n1 134 8\\n1 49 1\\n2 1 149\\n\", \"3 9\\n1 134 8\\n1 49 0\\n2 1 149\\n\", \"3 9\\n1 134 8\\n1 ... | {
"index": "code_r1_train_5019"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nXX\\n\", \"2\\nXx\\n\", \"2\\nxx\\n\", \"2\\nXx\\n\", \"2\\nxX\\n\", \"2\\nxX\\n\", \"2\\nXx\\n\", \"2\\nxx\\n\"], \"outputs\": [\"1\\nxX\\n\", \"0\\nXx\\n\", \"1\\nXx\\n\", \"0\\nXx\\n\", \"0\\nxX\\n\", \"0\\nxX\\n\", \"0\\nXx\\n\", \"1\\nXx\\n\"]}"
} | {
"index": "code_r1_train_5020"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nnorth\\n0\\nnorth\\neast\\nsouth\\n0\", \"1\\nnorth\\n3\\nnorth\\neasu\\nsouth\\n0\", \"1\\nnorth\\n0\\nnorth\\ntsae\\nsouth\\n0\", \"1\\nnorth\\n0\\nnorth\\ntsae\\ntoush\\n0\", \"1\\nnorth\\n0\\nnorth\\ntsae\\ntoush\\n1\", \"1\\nnorth\\n0\\nnorth\\ntase\\nto... | {
"index": "code_r1_train_5021"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabababababbb\\nab\\n\", \"1\\nabababababbb\\nab\\n\", \"1\\nabababababbb\\naa\\n\", \"1\\nabababacabbb\\naa\\n\", \"1\\nabababacabbb\\nba\\n\", \"1\\nabababacabbb\\nab\\n\", \"1\\nbbbacabababa\\naa\\n\", \"1\\nbbbacbbababa\\naa\\n\"], \"outputs\": [\"-1\\n\",... | {
"index": "code_r1_train_5022"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n+ 200\\n+ 15\\n- 200\\n? 0\\n\", \"4\\n+ 200\\n+ 200\\n- 200\\n? 0\\n\", \"10\\n+ 2\\n- 2\\n+ 778\\n+ 3\\n+ 4\\n- 4\\n+ 1\\n+ 617\\n? 011\\n? 011\\n\", \"10\\n+ 2\\n- 2\\n+ 778\\n+ 2\\n+ 4\\n- 4\\n+ 1\\n+ 617\\n? 011\\n? 011\\n\", \"10\\n+ 2\\n- 2\\n+ 778\\n+... | {
"index": "code_r1_train_5023"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n\", \"2\\n\", \"01\\n\", \"010\\n\", \"110\\n\", \"100\\n\", \"000001\\n\", \"010001\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_5024"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 0 3\", \"7 1 3\", \"4 0 4\", \"7 2 3\", \"3 2 3\", \"4 1 3\", \"4 1 3\\n\", \"2 1 2\\n\"], \"outputs\": [\"10\\n\", \"85\\n\", \"13\\n\", \"71\\n\", \"3\\n\", \"7\", \"7\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_5025"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1111\\n\", \"1\\n1111\\n\", \"1\\n0111\\n\", \"1\\n0011\\n\", \"1\\n0101\\n\", \"1\\n0001\\n\", \"1\\n1101\\n\", \"1\\n1001\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_5026"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"ddc\", \"aaa\", \"dec\", \"aa`\", \"eec\", \"aa_\", \"cee\", \"ba_\"], \"outputs\": [\"1\\n1\\n\", \"3\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\"]}"
} | {
"index": "code_r1_train_5027"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\naaaaaaa\\nb\\n\", \"7 1\\naaaaaba\\nb\\n\", \"7 1\\naaaaaba\\na\\n\", \"7 1\\naaaaaba\\nc\\n\", \"7 1\\naaaaaaa\\nb\\n\", \"7 2\\nabacaba\\na b\\n\", \"7 2\\nabacaba\\na c\\n\", \"7 2\\nabacaba\\na d\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"16\\n\", \"0\\... | {
"index": "code_r1_train_5028"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"4\\n\", \"5\\n\", \"1\\n\", \"9\\n\", \"8\\n\", \"7\\n\", \"2\\n\"], \"outputs\": [\"10 2\\n1 2\", \"6 2\\n1 2\", \"8 2\\n1 2\\n\", \"1 1\\n1\\n\", \"16 2\\n1 2\\n\", \"14 2\\n1 2\", \"12 2\\n1 2\\n\", \"2 2\\n1 2\"]}"
} | {
"index": "code_r1_train_5029"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 2\\n3 2 1\\n7 2\\n2 1 7 3 4 5 6\\n3 1\\n\", \"2\\n3 3\\n3 1 2\\n3 2 1\\n7 2\\n4 1 7 3 4 5 6\\n3 1\\n\", \"2\\n3 3\\n3 1 2\\n3 2 1\\n7 2\\n2 1 7 3 4 5 6\\n6 1\\n\", \"2\\n3 3\\n3 1 2\\n3 2 1\\n7 2\\n2 1 7 3 4 5 6\\n4 1\\n\", \"2\\n3 3\\n3 1 2\\n3 2 1... | {
"index": "code_r1_train_5030"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1\\n1 0\\n2 2\\n3 1\\n\", \"2 1\\n1 0\\n2 2\\n6 1\\n\", \"2 1\\n1 0\\n2 2\\n3 1\\n\", \"1 1\\n3686 510\\n-7485 5112\\n\", \"1 1\\n3686 4362\\n-7485 5112\\n\", \"1 1\\n3686 4362\\n-7485 5112\\n\", \"3 3\\n0 0\\n2 0\\n3 1\\n-2 1\\n0 3\\n2 2\\n\", \"3 3\\n0 0\\n2 ... | {
"index": "code_r1_train_5031"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n99988\\n\", \"1\\n99990\\n\", \"1\\n99992\\n\", \"1\\n99994\\n\", \"1\\n99996\\n\", \"1\\n99998\\n\", \"1\\n31704\\n\", \"1\\n100000\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_5032"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 1 1\\n\\n1\\n1\\n1 2 2 2\\n\", \"2 5 1 0 1\\n2\\n\\n1\\n1 4 1 5\\n\", \"4 4 1 0 1\\n1\\n\\n1\\n1 2 1 4\\n\", \"4 4 1 0 1\\n1\\n\\n1\\n1 2 1 4\\n\", \"2 5 1 0 1\\n2\\n\\n1\\n1 4 1 5\\n\", \"2 2 0 1 1\\n\\n1\\n1\\n1 2 2 2\\n\", \"8 4 1 0 1\\n1\\n\\n1\\n1 2 1 ... | {
"index": "code_r1_train_5033"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 1\\n1 1 3 4 1\\n9 3\\n-9 -6 -6 6 5 8 3 7 4\\n5 3\\n1 1 6 3 4\\n4 2\\n1000000000 1000000000 1000000000 1010100000\\n\", \"4\\n5 1\\n1 1 3 4 1\\n9 3\\n-9 -18 -6 6 6 8 3 7 4\\n5 3\\n1 2 6 3 4\\n4 2\\n1000000010 1000000000 1000000000 1000000000\\n\", \"4\\n5 1\... | {
"index": "code_r1_train_5034"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n1 1\\n\", \"2\\n1 000\\n2 1 4\\n\", \"2\\n1 100\\n2 1 4\\n\", \"2\\n1 100\\n2 1 10\\n\", \"2\\n1 100\\n2 1 20\\n\", \"2\\n1 000\\n2 1 20\\n\", \"2\\n1 110\\n2 1 10\\n\"], \"outputs\": [\"1 0\\n\", \"1 0\\n\", \"1 4\\n\", \"101 4\\n\", \"101 10... | {
"index": "code_r1_train_5035"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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.0 70.0\\n72.5 140.51\", \"40.0 70.15273874709118\\n72.5 140.51\", \"40.0 70.15273874709118\\n73.39358812211353 140.51\", \"40.0 70.26540141125885\\n73.39358812211353 140.51\", \"40.991466890252646 70.26540141125885\\n73.39358812211353 140.51\", \"40.9914668902... | {
"index": "code_r1_train_5036"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5\\n6\\n3\\n\", \"5\\n3\\n5\\n\", \"1\\n1\\n1\\n\", \"1\\n1\\n2\\n\", \"3\\n3\\n4\\n\", \"4\\n4\\n5\\n\", \"4\\n4\\n7\\n\", \"3\\n3\\n5\\n\"], \"outputs\": [\"4\\n\", \"4\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"4\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_5037"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n2\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"1\\n-1\\n\", \"1\\n-2\\n\", \"1\\n-4\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_5038"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1001\", \"1000\", \"1010\", \"0010\", \"0001\", \"0000\", \"1110\", \"1011\"], \"outputs\": [\"5\\n\", \"4\\n\", \"6\\n\", \"3\\n\", \"2\\n\", \"0\\n\", \"6\\n\", \"6\\n\"]}"
} | {
"index": "code_r1_train_5039"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n\", \"1\\n\", \"3\\n\", \"5\\n\", \"3\\n\", \"5\\n\", \"1\\n\", \"6\\n\"], \"outputs\": [\"6\", \"2\", \"14\", \"62\", \"14\\n\", \"62\\n\", \"2\\n\", \"126\\n\"]}"
} | {
"index": "code_r1_train_5040"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n119\\n395\\n\", \"1 1\\n511\\n511\\n\", \"1 1\\n119\\n395\\n\", \"1 1\\n511\\n511\\n\", \"4 2\\n2 6 4 0\\n2 4\\n\", \"4 2\\n2 6 4 0\\n2 4\\n\", \"3 2\\n5 7 99\\n23 162\\n\", \"3 2\\n3 7 227\\n23 137\\n\"], \"outputs\": [\"3\", \"511\", \"3\", \"511\", \"2\"... | {
"index": "code_r1_train_5041"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n\", \"2\\n5 0\\n\", \"2\\n1 0\\n\", \"2\\n0 0\\n\", \"2\\n1 1\\n\", \"2\\n0 7\\n\", \"2\\n0 1\\n\", \"2\\n0 2\\n\"], \"outputs\": [\"2\\n\", \"4\\n\", \"2\\n\", \"3\\n\", \"1\\n\", \"6\\n\", \"2\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_5042"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\\nabc\\n\", \"3\\nabc\\n\", \"3\\n???\\n\", \"3\\ncba\\n\", \"3\\nbac\\n\", \"3\\naac\\n\", \"3\\nabb\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_5043"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 0 0 1\\n\", \"1\\n114514 1 1 1 1\\n\", \"1\\n114515 1 1 114515 2\\n\", \"1\\n114515 0 0 114514 0\\n\", \"2\\n2 3 5 4 4\\n2 3 5 4 4\\n\", \"2\\n2 3 4 4 4\\n2 3 4 4 4\\n\", \"1\\n55555 55555 55555 55555 55555\\n\", \"1\\n114514 114514 114514 114514 114514\\... | {
"index": "code_r1_train_5044"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 1 5\\n\", \"1\\n0 0 1 1\\n\", \"1\\n0 0 1 4\\n\", \"1\\n0 0 1 7\\n\", \"1\\n0 0 1 1\\n\", \"1\\n0 0 1 4\\n\", \"1\\n0 0 1 5\\n\", \"1\\n0 0 1 7\\n\"], \"outputs\": [\"NO\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}... | {
"index": "code_r1_train_5045"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"12\\n1\", \"12\\n0\", \"12\\n3\", \"12\\n4\", \"12\\n5\", \"12\\n7\", \"12\\n9\", \"12\\n6\"], \"outputs\": [\"13\\n1\\n\", \"13\\n0\\n\", \"13\\n3\\n\", \"13\\n4\\n\", \"13\\n5\\n\", \"13\\n7\\n\", \"13\\n9\\n\", \"13\\n6\\n\"]}"
} | {
"index": "code_r1_train_5046"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"20\\n2\\n6\\n3\\n1\", \"20\\n4\\n0\\n6\\n1\", \"20\\n8\\n9\\n7\\n1\", \"20\\n4\\n6\\n3\\n1\", \"20\\n4\\n6\\n6\\n1\", \"20\\n1\\n4\\n6\\n6\", \"20\\n4\\n0\\n6\\n2\", \"20\\n1\\n4\\n6\\n2\"], \"outputs\": [\"14\\n\", \"19\\n\", \"11\\n\", \"14\\n\", \"14\\n\", \"1... | {
"index": "code_r1_train_5047"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6 5\\n\", \"3\\n2 4 8\\n\", \"3\\n2 4 8\\n\", \"3\\n3 6 5\\n\", \"1\\n83930578\\n\", \"1\\n83930578\\n\", \"1\\n26428407\\n\", \"1\\n34042729\\n\"], \"outputs\": [\"-1\\n\", \"1\\n\", \"1\\n\", \"-1\", \"1\\n\", \"1\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_5048"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n1 1\\n\", \"2\\n1 1\\n2 1\\n\", \"2\\n1 1\\n4 1\\n\", \"2\\n1 1\\n4 2\\n\", \"2\\n1 1\\n4 4\\n\", \"2\\n1 2\\n4 6\\n\", \"2\\n2 3\\n4 9\\n\"], \"outputs\": [\"2 1\\n\", \"2 1\", \"3 1\\n\", \"5 1\\n\", \"6 2\\n\", \"8 4\\n\", \"10 6\\n\", \"14... | {
"index": "code_r1_train_5049"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"bc\", \"cb\", \"cc\", \"dc\", \"cd\", \"ec\", \"fc\", \"cf\"], \"outputs\": [\"bc\\n\", \"cb\\n\", \"cc\\n\", \"dc\\n\", \"cd\\n\", \"ec\\n\", \"fc\\n\", \"cf\\n\"]}"
} | {
"index": "code_r1_train_5050"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1.0\", \"0.(2)\", \"1.(3)\", \"1.(2)\", \"0.(3)\", \"0.0739\", \"3.2(145)\", \"3.3(145)\"], \"outputs\": [\"1/1\", \"2/9\\n\", \"4/3\\n\", \"11/9\\n\", \"1/3\", \"739/10000\", \"32113/9990\\n\", \"16556/4995\\n\"]}"
} | {
"index": "code_r1_train_5051"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1000000000 1000000000 1000000000 1000000000 0\\n\", \"1\\n5\\n1000000000 1000000000 1000000000 1000000000 0\\n\", \"1\\n5\\n1000000000 1000000000 1000000000 1000000000 1\\n\", \"1\\n5\\n1000000000 1000000010 1000000000 1000000000 1\\n\", \"1\\n5\\n1000000... | {
"index": "code_r1_train_5052"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nab\\n1\\na\\n\", \"a\\na\\n1\\nab\\n\", \"b\\naa\\n1\\na\\n\", \"c\\na\\n1\\nab\\n\", \"a\\na\\n1\\nab\\n\", \"b\\naa\\n1\\na\\n\", \"c\\na\\n1\\nab\\n\", \"a\\nab\\n1\\na\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", ... | {
"index": "code_r1_train_5053"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8\\n100 7 21\", \"3 8\\n100 8 21\", \"3 2\\n100 8 21\", \"3 8\\n100 4 21\", \"3 2\\n100 2 21\", \"3 8\\n100 7 200\", \"3 0\\n100 0 200\", \"3 2\\n100 12 21\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_5054"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"142\\n0\\n\", \"142\\n5\\n\", \"638\\n33\\n\", \"142\\n41\\n\", \"638\\n29\\n\", \"142\\n69\\n\", \"638\\n93\\n\", \"142\\n49\\n\"], \"outputs\": [\"71 71\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_5055"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n5\\n\", \"3 1\\n1 1 1\\n\", \"2 2\\n97 197\\n\", \"2 1\\n97 197\\n\", \"2 2\\n193 193\\n\", \"4 2\\n0 2 1 2\\n\", \"4 2\\n0 2 2 2\\n\", \"4 2\\n1 2 1 2\\n\"], \"outputs\": [\" 1\\n\", \" ... | {
"index": "code_r1_train_5056"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n35 34\\n3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 1\\n\", \"1\\n38 37\\n3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 1\\n\", \"1\\n34 33\\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25... | {
"index": "code_r1_train_5057"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nba\\n\", \"3 1\\nabc\\n\", \"3 3\\nabc\\n\", \"3 5\\nabc\\n\", \"3 7\\nabc\\n\", \"3 0\\ncaa\\n\", \"3 -7\\nabc\\n\", \"3 -3\\nabc\\n\"], \"outputs\": [\"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_5058"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n5 2\\n3 3 3 3 3\\n1 2\\n2 3\\n3 4\\n4 5\\n\", \"1\\n5 3\\n1 1 1 1 3\\n1 2\\n2 3\\n3 4\\n4 5\\n\", \"1\\n5 5\\n2 1 2 3 1\\n1 2\\n1 3\\n2 4\\n2 5\\n\", \"1\\n5 3\\n1 1 1 1 2\\n1 2\\n2 3\\n3 4\\n4 5\\n\", \"2\\n3 2\\n1 1 1\\n1 2\\n1 3\\n3 3\\n3 3 1\\n1 2\\n2 3\\... | {
"index": "code_r1_train_5059"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n18\\n2\", \"1\\n23\\n1\", \"1\\n23\\n0\", \"1\\n10\\n3\", \"1\\n15\\n8\", \"1\\n17\\n9\", \"1\\n0\\n-8\", \"1\\n0\\n-7\"], \"outputs\": [\"4\\n\", \"2\\n\", \"0\\n\", \"6\\n\", \"14\\n\", \"16\\n\", \"-16\\n\", \"-14\\n\"]}"
} | {
"index": "code_r1_train_5060"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 4\\n3 4\\n2 1\\n1 3\\n5\\n1 5\\n2 4\\n3 3\\n4 2\\n5 1\\n\", \"2\\n4\\n2 4\\n3 4\\n2 1\\n2 3\\n5\\n1 5\\n2 4\\n3 3\\n4 2\\n5 1\\n\", \"2\\n4\\n2 4\\n3 3\\n2 2\\n1 3\\n5\\n1 5\\n2 4\\n3 3\\n4 2\\n5 1\\n\", \"2\\n4\\n4 4\\n3 3\\n2 2\\n2 3\\n5\\n1 5\\n2 4\\... | {
"index": "code_r1_train_5061"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 3\\n3\", \"1 3\\n3 2\\n3\", \"1 2\\n3 0\\n3\", \"1 0\\n3 6\\n3\", \"0 3\\n3 2\\n3\", \"1 2\\n5 0\\n3\", \"1 0\\n3 8\\n3\", \"0 2\\n5 0\\n3\"], \"outputs\": [\"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_5062"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 5\\n1 1 3 4 8\\n2 2 2 4 5\\n3 3 0 1 1\\n2 3 4 4 6\", \"4 5\\n1 1 3 4 8\\n2 2 2 4 5\\n3 3 0 1 1\\n2 3 4 8 6\", \"4 5\\n1 1 3 4 8\\n2 2 2 4 5\\n3 3 0 1 1\\n2 6 4 8 6\", \"4 5\\n1 1 3 4 8\\n2 2 2 4 5\\n3 3 0 1 2\\n2 6 4 8 6\", \"4 5\\n2 1 3 4 8\\n2 2 2 4 5\\n3 3 0... | {
"index": "code_r1_train_5063"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 1\\n1 2 3\\n3 2 1\", \"3 6\\n1 2 3\\n3 2 1\", \"3 9\\n2 1 3\\n3 2 1\", \"3 4\\n1 2 3\\n3 2 1\", \"3 2\\n1 2 3\\n3 2 1\", \"3 9\\n1 2 3\\n3 2 1\", \"3 8\\n1 2 3\\n3 2 1\", \"3 7\\n1 2 3\\n3 2 1\"], \"outputs\": [\"1 2 3\", \"3 2 1\", \"2 3 1\", \"1 2 3\", \"3 2 ... | {
"index": "code_r1_train_5064"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\", \"2\\n4 1\", \"2\\n3 0\", \"2\\n4 0\", \"2\\n3 2\", \"2\\n7 1\", \"2\\n4 2\", \"2\\n3 1\"], \"outputs\": [\"2\", \"3\\n\", \"2\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"3\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_5065"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"1 1 1\\n1 1\\n\", \"1 2 1\\n1 1\\n\", \"2 2 4\\n1 1\\n1 2\\n2 1\\n2 2\\n\", \"2 2 4\\n1 1\\n1 2\\n2 1\\n2 2\\n\", \"2 2 5\\n1 1\\n2 1\\n2 1\\n1 2\\n2 2\\n\", \"1 1 5\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n\", \"1 5 5\\n1 1\\n1 2\\n1 3\\n1 4\\n1 5\\n\... | {
"index": "code_r1_train_5066"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n\", \"1\\n5\\n\", \"1\\n0\\n\", \"1\\n10\\n\", \"2\\n1 2\\n\"], \"outputs\": [\"yes\\n1 1\\n\", \"yes\\n1 1\\n\", \"yes\\n1 1\\n\", \"yes\\n1 1\\n\", \"yes\\n1 1\\n\", \"yes\\n1 1\\n\", \"yes\\n1 1\\n\", \"yes\\n1... | {
"index": "code_r1_train_5067"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nZ\\n\", \"1\\nX\\nX\\n\", \"2\\nrT\\nrT\\n\", \"2\\nxj\\nxj\\n\", \"2\\nEE\\nCC\\n\", \"3\\naab\\nccb\\n\", \"3\\nGxx\\nGYY\\n\", \"3\\nYLm\\nYLm\\n\"], \"outputs\": [\"3\\n\", \"3\\n\", \"6\\n\", \"6\\n\", \"6\\n\", \"6\\n\", \"6\\n\", \"12\\n\"]}"
} | {
"index": "code_r1_train_5068"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 4\\n\", \"2\\n3 2\\n1 4\\n\", \"2\\n4 2\\n1 4\\n\", \"3\\n1 6\\n3 4\\n2 5\\n\", \"3\\n1 3\\n4 6\\n5 2\\n\", \"3\\n1 3\\n4 6\\n5 2\\n\", \"3\\n1 6\\n6 4\\n2 5\\n\", \"3\\n1 6\\n6 8\\n2 5\\n\"], \"outputs\": [\"4\\n\", \"6\\n\", \"4\", \"15\\n\", \"7\\n... | {
"index": "code_r1_train_5069"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8\\n\", \"1\\n1 6\\n\", \"1\\n1 3\\n\", \"1\\n1 5\\n\", \"1\\n1 1\\n\", \"1\\n1 4\\n\", \"1\\n1 9\\n\", \"1\\n1 2\\n\"], \"outputs\": [\"8\", \"6\", \"3\", \"5\", \"1\", \"4\", \"9\", \"2\"]}"
} | {
"index": "code_r1_train_5070"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 100\\n79\\n\", \"2 2\\n49 100\\n\", \"2 2\\n50 100\\n\", \"4 2\\n32 100 33 1\\n\", \"5 2\\n3 13 33 45 53\\n\", \"10 2\\n69 4 43 36 33 27 59 5 86 55\\n\", \"10 3\\n12 21 26 32 40 51 56 57 67 75\\n\", \"11 4\\n28 31 12 19 3 26 15 25 47 19 6\\n\"], \"outputs\": [\... | {
"index": "code_r1_train_5071"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n11\\n\", \"2 2\\n80\\n\", \"2 2\\n09\\n\", \"2 2\\n10\\n\", \"2 2\\n85\\n\", \"2 2\\n15\\n\", \"2 2\\n24\\n\", \"2 1\\n24\\n\"], \"outputs\": [\"0\\n11\\n\", \"8\\n00\\n\", \"9\\n00\\n\", \"1\\n00\\n\", \"3\\n55\\n\", \"4\\n11\\n\", \"2\\n22\\n\", \"0\\n24\... | {
"index": "code_r1_train_5072"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"5 1\\n1 5\\n\", \"10 1\\n2 3\\n\", \"6 2\\n1 5\\n6 6\\n\", \"5 2\\n1 1\\n3 3\\n\", \"5 2\\n2 1\\n3 3\\n\", \"5 2\\n1 1\\n3 5\\n\", \"5 2\\n1 2\\n3 5\\n\"], \"outputs\": [\"OK\\n\", \"OK\\n\", \"1 0\\n\", \"OK\\n\", \"2 0\\n\", \"1 0\\n\", \"2 0\... | {
"index": "code_r1_train_5073"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 2 8\\n8 1 5\", \"1 2 3\\n5 1 8\\n8 1 5\", \"1 2 3\\n8 2 9\\n8 2 6\", \"1 2 3\\n6 2 8\\n8 1 5\", \"1 2 3\\n6 2 8\\n8 1 4\", \"1 2 3\\n6 2 8\\n4 1 5\", \"1 2 3\\n5 1 8\\n8 1 9\", \"1 2 3\\n6 1 8\\n5 2 8\"], \"outputs\": [\"YES\\nYES\\nYES\\n\", \"YES\\nYE... | {
"index": "code_r1_train_5074"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n4 2\\n6 3\", \"3\\n1 5\\n4 4\\n6 3\", \"3\\n1 5\\n4 2\\n6 3\", \"4\\n1 5\\n2 6\\n0 7\\n4 8\", \"4\\n1 5\\n0 6\\n0 7\\n4 8\", \"4\\n1 3\\n0 6\\n0 7\\n4 8\", \"4\\n1 5\\n2 6\\n3 7\\n4 8\", \"4\\n1 3\\n0 6\\n-1 7\\n4 8\"], \"outputs\": [\"8\\n\", \"9\\n\",... | {
"index": "code_r1_train_5075"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\", \"3\", \"6\", \"5\", \"7\", \"1\", \"2\"], \"outputs\": [\"8\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_5076"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1 1\\n0\\n\", \"3 5\\n1 2 3\\n\", \"3 5\\n1 2 3\\n\", \"7 2\\n2 3 6 4 5 7 1\\n\", \"7 2\\n2 2 6 4 5 7 1\\n\", \"7 2\\n2 3 6 4 5 7 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"6\\n\", \"6\\n\", \"17\\n\", \"16\\n\", \"17\\... | {
"index": "code_r1_train_5077"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n0\\n11\\n1111\", \"3 0\\n1\\n3\\n1111\\n01000110\", \"3 2\\n1\\n2\\n1011\\n01001110\", \"3 2\\n1\\n2\\n1011\\n01000110\", \"3 2\\n1\\n2\\n1111\\n01000110\", \"3 2\\n1\\n3\\n1111\\n01000110\", \"3 0\\n1\\n3\\n1111\\n00000110\", \"3 2\\n1\\n2\\n1111\\n0100111... | {
"index": "code_r1_train_5078"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\", \"1 5\", \"2 3\", \"5 3\", \"5 5\", \"3 5\", \"4 8\", \"6 6\"], \"outputs\": [\"13\\n13\\n4\\n13\\n13\\n\", \"0\\n\", \"2\\n2\\n2\\n\", \"30\\n30\\n25\\n25\\n20\\n25\\n25\\n30\\n30\\n\", \"91\\n91\\n61\\n61\\n36\\n61\\n61\\n91\\n91\\n\", \"11\\n11\\n4\\n11... | {
"index": "code_r1_train_5079"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"13 1\\n183 188468232\", \"13 1\\n183 218395056\", \"13 1\\n183 158763340\", \"13 2\\n183 158763340\", \"11 2\\n183 158763340\", \"8 1\\n21473 188468232\", \"8 1\\n32366 188468232\", \"0 8\\n3041947 11770363\"], \"outputs\": [\"1 13\\n3 11496562152\\n\", \"1 13\\n... | {
"index": "code_r1_train_5080"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"111 0\\n-608\", \"111 0\\n-624\", \"110 0\\n-4833\", \"010 1\\n-4464\", \"100 1\\n-4199\", \"111 0\\n-3124\", \"110 0\\n-3872\", \"111 0\\n-4743\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_5081"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4 4\\n\", \"1 4\\n\", \"1 1\\n\", \"8 8\\n\", \"7 2\\n\", \"1 2\\n\", \"2 1\\n\"], \"outputs\": [\"6\\n\", \"5\\n\", \"2\\n\", \"0\\n\", \"13\\n\", \"7\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_5082"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.