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\": [\"100,20\\n50,10\\n80,35\", \"100,20\\n01,05\\n80,35\", \"100,20\\n01,05\\n80,36\", \"100,20\\n01,05\\n81,35\", \"000,20\\n01,05\\n80,36\", \"100,20\\n50,10\\n81,35\", \"000,10\\n01,05\\n80,36\", \"100,20\\n50,01\\n81,35\"], \"outputs\": [\"5300\\n22\\n\", \"4805\\... | {
"index": "code_r1_train_4200"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5 4\", \"5 7\", \"5 9\", \"8 9\", \"8 7\", \"3 8\", \"4 0\", \"2 2\"], \"outputs\": [\"26\\n\", \"38\\n\", \"46\\n\", \"91\\n\", \"77\\n\", \"19\\n\", \"6\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_4201"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"aaa aaaaaa\\n\", \"aaa aaaaaa\\n\", \"aaa aabaaa\\n\", \"aaa aaabaa\\n\", \"aaa aaabab\\n\", \"aaa baaaab\\n\", \"'co-co-co, codeforces?!'\\n\", \"'co-co-co, '!?secrofedoc\\n\"], \"outputs\": [\"10\\n\", \"10\\n\", \"11\\n\", \"10\\n\", \"10\\n\", \"11\\n\", \"25... | {
"index": "code_r1_train_4202"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n1\\n2\\n\", \"1\\n1\\n1\\n2\\n\", \"1\\n2\\n1\\n2\\n\", \"1\\n2\\n1\\n0\\n\", \"1\\n5\\n2\\n3 2\\n\", \"2\\n1 1\\n1\\n1\\n\", \"1\\n5\\n2\\n5 5\\n\", \"1\\n2\\n2\\n2 3\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"1\\n\", \"-1\\n\", \"1\\n\", \"-1\\n\", \"... | {
"index": "code_r1_train_4203"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"30\\n1\", \"30\\n2\", \"30\\n8\", \"30\\n4\", \"1000000009\\n2\", \"1000000009\\n4\", \"1000000009\\n5\", \"1000000009\\n9\"], \"outputs\": [\"30\\n\", \"14\\n\", \"3\\n\", \"6\", \"500000004\\n\", \"250000009\\n\", \"200000001\\n\", \"111111112\\n\"]}"
} | {
"index": "code_r1_train_4204"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"100 1\\n6\\n\", \"2 2\\n2 2\\n\", \"2 2\\n2 2\\n\", \"100 1\\n6\\n\", \"3 3\\n3 1 2\\n\", \"3 3\\n2 2 3\\n\", \"2 3\\n1 1 2\\n\", \"3 3\\n1 1 3\\n\"], \"outputs\": [\"1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 ... | {
"index": "code_r1_train_4205"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n3\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n3\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n0\\n\", \"4\\n4 1 2 10\\n\"], \"outputs\": [\"3 0\\n\", \"1 0\\n\", \"1 0\\n\", \"3 0\\n\", \"2 0\\n\", \"4 0\\n\", \"0 0\\n\", \"12 5\\n\"]}"
} | {
"index": "code_r1_train_4206"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nben likes bananas the best among many fruits because bananas are sweet and cheap\\nb\\n1\\nwinners get to visit aizu and the university of aizu and make many friends as well\\na\\n3\\nask alex about\\nthe answer for the\\nassignment on android apps\\na\\n2\\n... | {
"index": "code_r1_train_4207"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabcxyx\\ncyx\\nabb\", \"3\\nabxxyc\\ncyx\\nabb\", \"6\\nb\\na\\nabb\\nc\\nd\\nab\", \"6\\nb\\na\\nabb\\nc\\nd\\nba\", \"3\\naxxbyc\\ncyx\\nabb\", \"3\\naxxbyc\\ncyx\\naab\", \"3\\naxxbyc\\ncyw\\naab\", \"3\\naxxbyc\\ncyw\\nbaa\"], \"outputs\": [\"1\\n\", \"0\... | {
"index": "code_r1_train_4208"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n02:15\\n05:01\\n11:55\\n10:40\", \"4\\n02:15\\n05:01\\n11:54\\n10:40\", \"4\\n12:15\\n05:01\\n11:54\\n10:40\", \"4\\n02:15\\n05:01\\n11:55\\n11:40\", \"4\\n12:05\\n05:01\\n11:44\\n00:41\", \"4\\n02:15\\n10:50\\n11:54\\n10:40\", \"4\\n03:05\\n06:11\\n11:55\\n1... | {
"index": "code_r1_train_4209"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8\\n\", \"2\\n1 1\\n\", \"2\\n1 1\\n\", \"2\\n2 1\\n\", \"2\\n2 0\\n\", \"2\\n8 8\\n\", \"2\\n15 8\\n\", \"4\\n3 1 4 1\\n\"], \"outputs\": [\"Bob\\n\", \"Bob\\n\", \"Bob\\n\", \"Alice\\n\", \"Alice\\n\", \"Bob\\n\", \"Alice\\n\", \"Alice\\n\"]}"
} | {
"index": "code_r1_train_4210"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n0\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"2\\n0 0\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_4211"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n1101\\n0110\\n1101\\n1 1 3 4\\n1 1 3 1\\n2 2 3 4\\n1 2 3 4\", \"3 4 4\\n1101\\n0110\\n1101\\n1 1 3 4\\n2 1 3 1\\n2 2 3 4\\n1 2 2 4\", \"3 4 4\\n1101\\n0110\\n1101\\n1 1 3 4\\n1 1 3 1\\n2 2 3 4\\n2 2 3 4\", \"3 4 4\\n1101\\n0110\\n1101\\n2 1 3 4\\n2 1 3 1\... | {
"index": "code_r1_train_4212"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4\\n2 2 1\\n2 2 3\\n2 2 2\\n2 2 4\\n\", \"4\\n2 2 1\\n2 2 1\\n2 2 2\\n2 2 4\\n\", \"4\\n2 2 2\\n2 2 1\\n2 2 2\\n2 2 4\\n\", \"4\\n2 2 4\\n2 2 1\\n2 2 2\\n2 2 4\\n\", \"4\\n2 1 1\\n2 2 3\\n2 2 2\\n2 2 4\\n\", \"4\\n2 1 1\\n2 2 3\\n2 2 2\\n4 2 4\\n\", \"4\\n2 2 2\\... | {
"index": "code_r1_train_4213"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n1 3\", \"3 2\\n1 3\", \"8 1\\n2 2 7\", \"8 3\\n2 2 7\", \"2 1\\n2 2 8\", \"2 1\\n2 2 3\", \"2 2\\n2 2 3\", \"0 1\\n1 3 3\"], \"outputs\": [\"3\\n\", \"1\", \"6\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_4214"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n1 2\", \"2\\n2 2\", \"2\\n2 1\", \"2\\n2 -1\", \"2\\n-1 2\", \"2\\n1 -1\", \"2\\n-1 1\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_4215"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n0\\n\", \"1 1\\n1\\n\", \"1 1\\n1\\n\", \"1 1\\n0\\n\", \"1 4\\n-3\\n\", \"1 1\\n-1\\n\", \"1 4\\n-3\\n\", \"1 1\\n-1\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_4216"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nyu\\n\", \"1 2\\nyu\\n\", \"1 3\\nvts\\n\", \"1 3\\nvts\\n\", \"2 2\\nnm\\nnm\\n\", \"2 2\\nab\\ncd\\n\", \"2 2\\nac\\nca\\n\", \"2 2\\nnm\\nnm\\n\"], \"outputs\": [\"uy\\n\", \"uy\\n\", \"tvs\\n\", \"tvs\\n\", \"mn\\n\", \"-1\\n\", \"-1\\n\", \"mn\\n\"]}"
... | {
"index": "code_r1_train_4217"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nA\\n\", \"3 2\\nABC\", \"3 2\\nACC\", \"3 2\\nBCC\", \"3 2\\nCBA\", \"3 2\\nBDC\", \"6 2\\nCCA\", \"3 2\\nCDB\"], \"outputs\": [\"a\\n\", \"AbC\\n\", \"AcC\\n\", \"BcC\\n\", \"CbA\\n\", \"BdC\\n\", \"CcA\\n\", \"CdB\\n\"]}"
} | {
"index": "code_r1_train_4218"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nL\\n\", \"1\\nL\\n\", \"2\\nLR\\n\", \"2\\nLR\\n\", \"2\\nRL\\n\", \"3\\nRRR\\n\", \"3\\nRRR\\n\", \"4\\nRRRL\\n\"], \"outputs\": [\"1000000000\", \"1000000000\\n\", \"1000000001\", \"1000000001\\n\", \"1000000001\\n\", \"0000000111\", \"0000000111\\n\", \"10... | {
"index": "code_r1_train_4219"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1000000 1000000 1 1000000\\n\", \"1\\n1000000 1000000 1 1000000\\n\", \"2\\n87919 5307 1238257 92720\\n142341 2487 170761 384692\\n\", \"2\\n87919 5307 2310887 103474\\n13822 2535 170761 384692\\n\", \"2\\n87919 5307 1238257 58064\\n142341 2487 170761 384692\... | {
"index": "code_r1_train_4220"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n3\\n3\\n2\\n1\\n1\\n2\\n2\\n2\\n1\\n0\", \"1\\n1\\n1\\n2\\n1\\n1\\n2\\n2\\n2\\n1\\n0\", \"1\\n2\\n3\\n2\\n1\\n1\\n1\\n2\\n2\\n1\\n0\", \"1\\n2\\n2\\n2\\n1\\n1\\n1\\n2\\n2\\n1\\n0\", \"1\\n2\\n3\\n2\\n1\\n1\\n2\\n2\\n2\\n2\\n0\", \"1\\n3\\n1\\n2\\n1\\n1\\n2\\n... | {
"index": "code_r1_train_4221"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\", \"2\\n2\\n0\", \"2\\n4\\n0\", \"2\\n8\\n0\", \"2\\n0\\n0\", \"2\\n6\\n1\", \"2\\n0\\n2\", \"2\\n6\\n2\"], \"outputs\": [\"2\\n4\", \"2\\n0\\n\", \"4\\n0\\n\", \"8\\n0\\n\", \"0\\n0\\n\", \"6\\n0\\n\", \"0\\n2\\n\", \"6\\n2\\n\"]}"
} | {
"index": "code_r1_train_4222"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 8\\n1 5 1 4\", \"4 8\\n1 5 1 5\", \"1 8\\n1 5 2 1\", \"4 6\\n0 5 1 4\", \"4 6\\n2 3 2 1\", \"2 8\\n1 5 1 5\", \"2 8\\n1 5 1 0\", \"2 8\\n1 5 1 1\"], \"outputs\": [\"7\\n\", \"6\\n\", \"0\\n\", \"5\\n\", \"4\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_4223"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n1 1 2 3\\n0 1 2 2\\n1 2 0 3\\n7\\n1 2 2 1\\n0 2 3 2\\n0 1 3 1\\n2 1 1 2\\n5 3 4 2\\n4 3 6 1\\n4 2 5 1\\n0\", \"3\\n1 2 2 3\\n0 1 2 2\\n1 2 0 3\\n7\\n1 2 0 1\\n0 2 3 2\\n0 0 3 2\\n2 2 1 2\\n5 3 4 2\\n4 3 6 1\\n4 0 5 1\\n0\", \"3\\n1 1 2 3\\n0 0 2 2\\n1 2 0 3\\... | {
"index": "code_r1_train_4224"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8\\n\", \"1\\n100\\n\", \"2\\n1 1\\n\", \"2\\n2 7\\n\", \"2\\n5 8\\n\", \"2\\n3 1\\n\", \"2\\n2 5\\n\", \"2\\n3 8\\n\"], \"outputs\": [\"3\\n\", \"0\\n\", \"0\\n\", \"5\\n\", \"3\\n\", \"1\\n\", \"3\\n\", \"5\\n\"]}"
} | {
"index": "code_r1_train_4225"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n1\\n\", \"1 1\\n0\\n\", \"1 6\\n1\\n\", \"1 2\\n1\\n\", \"2 1\\n1 3\\n\", \"2 8\\n1 2\\n\", \"2 6\\n1 2\\n\"], \"outputs\": [\"0\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\", \"0\", \"0\\n\"]}"
} | {
"index": "code_r1_train_4226"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"3\\n2 3 1\\n\", \"3\\n1 2 3\\n\", \"3\\n1 3 2\\n\", \"3\\n2 1 3\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_4227"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1\\n1\\n\", \"2\\n1 0\\n4 2\\n56\", \"2\\n1 0\\n1 2\\n56\", \"2\\n1 0\\n21 50\\n2\", \"2\\n1 0\\n22 77\\n2\", \"2\\n1 0\\n37 77\\n2\", \"2\\n1 0\\n50 50\\n50\", \"2\\n1 0\\n50 74\\n56\"], \"outputs\": [\"2\\n\", \"6\\n\", \"3\\n\", \"71\\n\", \"99\\n\... | {
"index": "code_r1_train_4228"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n2 3\\n\", \"2\\n2 5\\n\", \"2\\n2 2\\n\", \"2\\n3 2\\n\", \"2\\n3 3\\n\", \"2\\n3 5\\n\", \"2\\n5 5\\n\", \"2\\n5 3\\n\"], \"outputs\": [\"36\\n\", \"100\\n\", \"8\\n\", \"36\\n\", \"27\\n\", \"225\\n\", \"125\\n\", \"225\\n\"]}"
} | {
"index": "code_r1_train_4229"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"02.05.90\\n08.03.50\\n\", \"29.02.80\\n29.02.60\\n\", \"15.12.62\\n17.12.21\\n\", \"08.07.20\\n27.01.01\\n\", \"09.05.55\\n25.09.42\\n\", \"28.02.20\\n11.01.29\\n\", \"06.08.91\\n05.12.73\\n\", \"31.05.20\\n02.12.04\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"... | {
"index": "code_r1_train_4230"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n0 0\\n\", \"1\\n0 1\\n\", \"1\\n0 2\\n\", \"1\\n-1 2\\n\", \"1\\n-1 0\\n\", \"1\\n-1 1\\n\", \"1\\n-2 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_4231"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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-1000000000\\n\", \"3\\n1 1\\n3\\n4 4\\n2 12 6 10\\n3 15 16 4\\n1 13 8 11\\n14 7 9 5\\n2 3\\n-7 5 2\\n0 8 -3\\n\", \"1\\n3 2\\n-1000000000 -999999999\\n-999999998 -999999995\\n-999999996 -999999997\\n\", \"1\\n3 3\\n-1000000000 -999999999 -999999998\\n-... | {
"index": "code_r1_train_4232"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n\", \"2 4\\n\", \"7 1\\n\", \"3 7\\n\", \"1 2\\n\", \"6 1\\n\", \"2 2\\n\"], \"outputs\": [\"0\", \"-1\", \"-1\", \"2\", \"-1\", \"-1\", \"1\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_4233"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 25 18 55\\n4\\n2\\n8\", \"1 2\\n4 25 18 55\\n4\\n4\\n6\", \"2 1\\n0 3 59 55\\n4\\n1\\n13\", \"2 1\\n0 1 59 55\\n4\\n1\\n13\", \"2 1\\n0 43 68 85\\n4\\n0\\n3\", \"4 3\\n0 16 30 40\\n2\\n33\\n8\", \"4 3\\n1 20 30 46\\n2\\n33\\n8\", \"4 3\\n1 20 37 40\\n2\\n... | {
"index": "code_r1_train_4234"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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- 1\\n+\\n\", \"1\\n+\\n- 1\\n\", \"1\\n+\\n- 1\\n\", \"1\\n- 1\\n+\\n\", \"3\\n+\\n+\\n+\\n- 2\\n- 1\\n- 3\\n\", \"3\\n+\\n+\\n+\\n- 2\\n- 1\\n- 2\\n\", \"3\\n+\\n+\\n+\\n- 2\\n- 1\\n- 3\\n\", \"4\\n+\\n+\\n- 2\\n+\\n- 3\\n+\\n- 1\\n- 4\\n\"], \"outputs\": [... | {
"index": "code_r1_train_4235"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"b\\n\", \"c\\n\", \"d\\n\", \"e\\n\", \"f\\n\", \"g\\n\", \"h\\n\"], \"outputs\": [\"a\\n\", \"b\\n\", \"c\\n\", \"d\\n\", \"e\\n\", \"f\\n\", \"g\\n\", \"h\\n\"]}"
} | {
"index": "code_r1_train_4236"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n0\\n\", \"2\\n0 0\\n\", \"2\\n0 0\\n\", \"3\\n0 0 1\\n\", \"3\\n0 0 0\\n\"], \"outputs\": [\"EASY\\n\", \"HARD\\n\", \"HARD\\n\", \"EASY\\n\", \"EASY\\n\", \"EASY\\n\", \"HARD\\n\", \"EASY\\n\"]}"
} | {
"index": "code_r1_train_4237"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 4\\n2 5\\n1 3\\n3 4\\n2 7\", \"3 5\\n1 4\\n2 3\\n1 3\\n3 6\\n2 7\", \"3 5\\n1 4\\n2 3\\n1 3\\n3 6\\n2 1\", \"3 5\\n1 4\\n2 3\\n2 3\\n3 6\\n2 1\", \"3 5\\n1 4\\n2 0\\n2 3\\n3 6\\n2 1\", \"3 5\\n1 4\\n2 5\\n2 3\\n3 4\\n2 7\", \"3 5\\n1 2\\n2 3\\n1 3\\n3 6\\... | {
"index": "code_r1_train_4238"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 3\\n\", \"1 2\\n\", \"3 2\\n\", \"3 1\\n\", \"6 3\\n\", \"2 3\\n\", \"3 4\\n\", \"2 1\\n\"], \"outputs\": [\"1\\n1 3 1 1\\n1 1\\n1 2\\n1 3\\n1 1\\n\", \"0\\n1 1\\n1 2\\n1 1\\n\", \"0\\n1 1\\n2 1\\n3 1\\n3 2\\n2 2\\n1 2\\n1 1\\n\", \"1\\n3 1 1 1\\n1 1\\n2 1\\n3 ... | {
"index": "code_r1_train_4239"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 2 5\\n4\\n10000\", \"2 2 6\\n3 2\\n5 4\", \"1 2 7\\n4\\n10000\", \"1 1 5\\n6\\n10000\", \"2 1 8\\n6\\n10000\", \"1 2 5\\n6\\n10000\", \"2 2 5\\n3 2\\n5 4\", \"2 3 5\\n4 5\\n6 3\\n8 6\"], \"outputs\": [\"10001\\n\", \"12\\n\", \"10003\\n\", \"5\\n\", \"8\\n\", \... | {
"index": "code_r1_train_4240"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1 1\\n\", \"1 1\\n\", \"1 3\\n\", \"1 3\\n\", \"1 2\\n\", \"1 1\\n\", \"8 16\\n\"], \"outputs\": [\"3\\n\", \"0\\n\", \"0\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"0\\n\", \"31\\n\"]}"
} | {
"index": "code_r1_train_4241"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"10 2 1\\n1 1000 4\\n9 1000 4\\n\", \"10 2 1\\n1 1000 4\\n9 1000 4\\n\", \"50 3 1\\n49 1 1\\n26 1 4\\n6 1 6\\n\", \"50 3 1\\n49 1 1\\n26 1 4\\n8 1 6\\n\", \"50 3 1\\n49 1 1\\n26 1 4\\n4 1 6\\n\", \"50 3 2\\n49 1 1\\n26 1 4\\n6 1 6\\n\", \"50 3 2\\n49 1 1\\n26 1 4\... | {
"index": "code_r1_train_4242"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1\\n3\\n\", \"1\\n3\\n\", \"1\\n1\\n\", \"1\\n4\\n\", \"1\\n8\\n\", \"1\\n2\\n\"], \"outputs\": [\"1/2\\n\", \"0/1\\n\", \"1/4\\n\", \"1/4\", \"0/1\", \"3/8\\n\", \"43/128\\n\", \"1/2\"]}"
} | {
"index": "code_r1_train_4243"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"23\\n1 1 1\\n2 2 1\", \"23\\n1 2 1\\n2 1 1\", \"23\\n1 2 1\\n2 0 1\", \"23\\n0 2 1\\n2 0 1\", \"23\\n1 1 2\\n1 1 0\", \"23\\n1 1 1\\n2 0 1\", \"23\\n1 4 1\\n2 1 1\", \"23\\n1 1 2\\n2 3 0\"], \"outputs\": [\"46\\n\", \"92\\n\", \"48\\n\", \"27\\n\", \"25\\n\", \"4... | {
"index": "code_r1_train_4244"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\nA\\n\", \"1\\ng\\n\", \"1\\nA\\n\", \"1\\ng\\n\", \"1\\nh\\n\", \"1\\ni\\n\", \"1\\nf\\n\", \"1\\ne\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\", \"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_4245"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 6\\n7\\n2\\n3\\n5\", \"4 6\\n4\\n1\\n3\\n5\", \"1 6\\n4\\n2\\n3\\n1\", \"4 5\\n4\\n2\\n3\\n1\", \"1 6\\n3\\n2\\n3\\n1\", \"1 6\\n2\\n2\\n3\\n1\", \"4 9\\n7\\n2\\n3\\n5\", \"1 6\\n1\\n0\\n1\\n1\"], \"outputs\": [\"8\\n\", \"9\\n\", \"2\\n\", \"6\\n\", \"3\\n\", ... | {
"index": "code_r1_train_4246"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n1 3\\n2 8\\n4 5\", \"10 3\\n1 3\\n2 8\\n4 2\", \"14 1\\n1 3\\n2 8\\n5 5\", \"14 3\\n2 1\\n2 8\\n5 7\", \"10 3\\n1 3\\n2 8\\n5 5\", \"10 3\\n1 3\\n2 8\\n4 1\", \"14 3\\n1 3\\n2 8\\n5 5\", \"14 1\\n1 3\\n4 8\\n5 5\"], \"outputs\": [\"5\\n\", \"4\\n\", \"3\\n... | {
"index": "code_r1_train_4247"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n1 1\\n\", \"2\\n1 2\\n\", \"2\\n1 4\\n\", \"2\\n1 100\\n\", \"3\\n2 1 2\\n\", \"3\\n1 1 1\\n\", \"3\\n2 2 2\\n\", \"3\\n2 1 4\\n\"], \"outputs\": [\"YES\\nAA\\n\", \"YES\\nAB\", \"YES\\nAB\\n\", \"YES\\nAB\", \"NO\\n\", \"YES\\nAAA\\n\", \"YES\\nAAA\\n\", \"N... | {
"index": "code_r1_train_4248"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 1\\n0 0\", \"3 0\\n5 1\\n0 0\", \"1 0\\n5 1\\n0 0\", \"3 6\\n3 0\\n0 0\", \"2 5\\n1 1\\n0 0\", \"2 0\\n1 1\\n0 0\", \"3 2\\n0 0\\n0 0\", \"2 2\\n0 0\\n0 0\"], \"outputs\": [\"2\\n0\\n\", \"0\\n0\\n\", \"1\\n0\\n\", \"3\\n0\\n\", \"3\\n1\\n\", \"0\\n1\\n\"... | {
"index": "code_r1_train_4249"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n1 1 1\\n\", \"1\\n0\\n1\\n1 1 1\\n\", \"3\\n010\\n3\\n1 3 1\\n1 3 1\\n3 2 1\\n\", \"3\\n010\\n3\\n1 3 1\\n1 3 1\\n3 2 1\\n\", \"5\\n11011\\n3\\n1 3 3\\n1 4 2\\n1 2 3\\n\", \"5\\n11011\\n3\\n1 3 3\\n1 4 2\\n1 2 3\\n\", \"5\\n00010\\n5\\n5 3 1\\n2 1 2\\... | {
"index": "code_r1_train_4250"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\", \"1 2\", \"1 2\\n\", \"3 54\", \"3 34\", \"5 34\", \"5 -1\", \"51 1\"], \"outputs\": [\"5\\n\", \"2\\n\", \"2\\n\", \"30\\n\", \"20\\n\", \"22\\n\", \"4\\n\", \"51\\n\"]}"
} | {
"index": "code_r1_train_4251"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2\\n1\\n\", \"2\\n2\\n\", \"2\\n3\\n\", \"3\\n1 2\\n\", \"3\\n1 1\\n\", \"3\\n1 1\\n\", \"3\\n2 1\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"3\\n\", \"4\\n\", \"-1\\n-1\\n\", \"-1\\n-1\\n\", \"-1\\n-1\\n\", \"3\\n5\\n\"]}"
} | {
"index": "code_r1_train_4252"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nSS\\n\", \"2\\nSG\\n\", \"2\\nGS\\n\", \"2\\nGG\\n\", \"2\\nSG\\n\", \"2\\nGG\\n\", \"2\\nGS\\n\", \"2\\nSS\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"2\", \"1\\n\", \"0\"]}"
} | {
"index": "code_r1_train_4253"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4\\n3 2 3 2\", \"4\\n4 1 3 2\", \"4\\n4 1 3 0\", \"4\\n4 1 3 1\", \"4\\n4 1 6 1\", \"4\\n4 0 6 1\", \"4\\n4 0 9 1\", \"4\\n8 0 9 1\"], \"outputs\": [\"0\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_4254"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n1 2\\n1 3\\n1 4\\n2 5\\n2 6\\n4 7\\n6\\n1 2\\n1 3\\n2 4\\n2 5\\n3 6\\n2\\n1 2\\n7\\n7 3\\n1 5\\n1 3\\n4 6\\n4 7\\n2 1\\n6\\n2 1\\n2 3\\n4 5\\n3 4\\n3 6\\n\", \"5\\n7\\n1 2\\n1 3\\n1 4\\n2 5\\n2 6\\n4 7\\n6\\n1 2\\n1 3\\n2 4\\n2 5\\n3 6\\n2\\n1 2\\n7\\n6 3... | {
"index": "code_r1_train_4255"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\", \"1010\\n1110\", \"1010\\n1111\", \"1010\\n0000\", \"1010\\n1010\", \"1010\\n1011\", \"1010\\n1001\"], \"outputs\": [\"0\\n\", \"-1\", \"1\\n\", \"2\\n\", \"-1\\n\", \"0\\n\", \"1\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_4256"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nB.B\\nB..\\n.BB\", \"2 3\\nB.B\\nB..\\n.BB\", \"1 3\\nB-B\\n..B\\n.BA\", \"1 1\\nB-B\\n..B\\n.BA\", \"1 3\\nBB.\\nB..\\n.AA\", \"3 3\\nB.B\\nB..\\nBB.\", \"3 3\\nB.B\\nC..\\nBB.\", \"3 3\\nB/B\\nC..\\nBB.\"], \"outputs\": [\"4\\n\", \"3\\n\", \"2\\n\", \"0\... | {
"index": "code_r1_train_4257"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n1 0 100\", \"3\\n2 0 100\", \"3\\n1 1 100\", \"4\\n11 15 58 1\", \"7\\n2 0 4 2 2 0 0\", \"7\\n2 1 4 2 2 0 0\", \"7\\n2 1 4 2 4 0 0\", \"7\\n2 1 2 2 4 0 0\"], \"outputs\": [\"1\\n\", \"2\\n\", \"1\", \"3\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_4258"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 4\\n1 2 1 1 0 3\\n1 6\\n3 5\\n\", \"6 2 3\\n1 4 1 1 0 3\\n1 6\\n3 5\\n\", \"6 2 4\\n1 2 1 1 1 5\\n1 6\\n3 5\\n\", \"6 2 3\\n1 2 0 1 0 3\\n1 6\\n3 5\\n\", \"6 2 3\\n1 4 1 2 0 3\\n1 6\\n2 5\\n\", \"6 2 7\\n1 2 1 1 1 5\\n1 6\\n3 5\\n\", \"6 2 1\\n1 2 0 1 0 3\\n1... | {
"index": "code_r1_train_4259"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n\", \"1 1\\n*\\n\", \"1 1\\n8\\n\", \"1 1\\n.\\n\", \"1 1\\n*\\n\", \"1 1\\n.\\n\", \"1 1\\n4\\n\", \"1 1\\n8\\n\"], \"outputs\": [\"NO\", \"YES\", \"NO\", \"YES\", \"YES\", \"YES\", \"NO\", \"NO\"]}"
} | {
"index": "code_r1_train_4260"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"0 0\", \"8 0\", \"1 7\", \"2 2\", \"0 -1\", \"54 8\", \"60 4\"], \"outputs\": [\"0\\n\", \"4\\n\", \"-12\\n\", \"5\", \"0\", \"6\\n\", \"312\\n\", \"116\\n\"]}"
} | {
"index": "code_r1_train_4261"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n2\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n1\\n\", \"1\\n4\\n\", \"1\\n7\\n\", \"2\\n2 3\\n\", \"2\\n2 3\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_4262"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n2 3\\n10 1\\n20 2\\n5 2\\n5 2\\n4 1\\n5 5\\n73 87\\n69 13\\n36 36\\n77 46\\n52 93\\n49 46\\n36 93\\n6 87\\n99 13\\n59 36\", \"2\\n2 3\\n8 1\\n20 2\\n5 2\\n2 2\\n18 1\\n5 5\\n73 87\\n69 13\\n58 36\\n77 46\\n6 93\\n19 46\\n74 93\\n78 87\\n29 13\\n59 36\", \"2\\... | {
"index": "code_r1_train_4263"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9\\n>>>>>>>><\\n\", \"1\\n9\\n>>>>>>>><\\n\", \"1\\n9\\n<>>>>>>>>\\n\", \"3\\n2\\n<>\\n3\\n><<\\n1\\n>\\n\", \"3\\n2\\n<>\\n3\\n><<\\n1\\n>\\n\", \"3\\n2\\n><\\n3\\n><<\\n1\\n>\\n\", \"3\\n2\\n><\\n3\\n<<>\\n1\\n>\\n\", \"3\\n2\\n<>\\n3\\n<<>\\n1\\n>\\n\"], \... | {
"index": "code_r1_train_4264"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n1 1\\n\", \"3\\n3 3\\n0 2\\n1 1\\n\", \"3\\n1 1\\n4 2\\n3 3\\n\", \"3\\n2 3\\n0 2\\n1 1\\n\", \"3\\n1 1\\n4 3\\n3 3\\n\", \"3\\n2 3\\n0 2\\n2 1\\n\", \"3\\n1 1\\n5 2\\n3 3\\n\", \"3\\n2 3\\n0 0\\n2 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n... | {
"index": "code_r1_train_4265"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n0 1\\n0 1\\n\", \"2\\n0 4\\n0 4\\n\", \"2\\n0 2\\n0 6\\n\", \"2\\n2 5\\n0 5\\n\", \"2\\n0 2\\n0 6\\n\", \"2\\n0 1\\n0 1\\n\", \"2\\n0 4\\n0 4\\n\", \"2\\n2 5\\n0 5\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"... | {
"index": "code_r1_train_4266"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5 1 1\", \"4 4 6\", \"5 2 2\", \"5 2 3\", \"7 1 2\", \"6 2 3\", \"3 1 2\", \"4 1 1\"], \"outputs\": [\"4\\n\", \"0\\n\", \"8\\n\", \"7\\n\", \"6\\n\", \"12\\n\", \"2\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_4267"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n)(\\n\", \"1\\n()\\n\", \"1\\n)(\\n\", \"1\\n()\\n\", \"1\\n((\\n\", \"1\\n))\\n\", \"2\\n()\\n()\\n\", \"2\\n((\\n))\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"4\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_4268"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na\\na\\n\", \"1 1\\na\\nz\\n\", \"1 1\\nz\\nz\\n\", \"1 1\\na\\nz\\n\", \"1 1\\nz\\nz\\n\", \"1 1\\na\\na\\n\", \"1 1\\n{\\nz\\n\", \"1 1\\n|\\nz\\n\"], \"outputs\": [\"0\\n\\n\", \"1\\n1 \\n\", \"0\\n\\n\", \"1\\n1 \\n\", \"0\\n\\n\", \"0\\n\\n\", \"1\\n1\... | {
"index": "code_r1_train_4269"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n1\\n\", \"1\\n1\\n1\\n\", \"2\\n5\\n5\\n10\\n\", \"2\\n5\\n5\\n10\\n\", \"3\\n5\\n2\\n1\\n3\\n\", \"3\\n6\\n2\\n3\\n2\\n\", \"3\\n5\\n2\\n1\\n5\\n\", \"2\\n5\\n10\\n10\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"1\\n... | {
"index": "code_r1_train_4270"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n\", \"8\\n\", \"3\\n\", \"1\\n\", \"7\\n\", \"9\\n\", \"6\\n\"], \"outputs\": [\"0 1\\n\", \"0 1\\n\", \"0 3\\n\", \"0 1\\n\", \"0 0\\n\", \"0 2\\n\", \"0 3\\n\", \"0 2\\n\"]}"
} | {
"index": "code_r1_train_4271"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n2\\n\", \"2\\n1\\n\", \"2\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"3\\n7\\n\", \"3\\n4\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\", \"1\", \"4\\n\", \"6\\n\", \"1\"]}"
} | {
"index": "code_r1_train_4272"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8 3\\n1 5\\n22 5\\n987 5\\n\", \"4\\n8 3\\n1 5\\n22 5\\n859 5\\n\", \"4\\n8 3\\n1 5\\n29 5\\n859 5\\n\", \"4\\n8 3\\n1 5\\n11 5\\n859 5\\n\", \"4\\n8 3\\n1 5\\n29 5\\n859 7\\n\", \"4\\n6 3\\n1 5\\n29 5\\n859 6\\n\", \"4\\n8 3\\n1 5\\n37 5\\n859 7\\n\", \"4\\n... | {
"index": "code_r1_train_4273"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 5\\n1 0 5\\n5 3 2\\n\", \"3\\n3 4 5\\n1 0 5\\n7 3 2\\n\", \"3\\n0 4 5\\n1 0 5\\n7 3 2\\n\", \"3\\n0 8 5\\n1 0 5\\n7 3 2\\n\", \"3\\n0 8 5\\n0 0 5\\n7 3 2\\n\", \"3\\n3 4 5\\n1 0 5\\n5 3 2\\n\", \"3\\n0 8 5\\n0 0 5\\n12 3 1\\n\", \"3\\n0 8 5\\n0 0 5\\n12 3... | {
"index": "code_r1_train_4274"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1\\n1 2\\n\", \"4 1\\n1 2\\n\", \"4 1\\n1 2\\n\", \"2 1\\n1 2\\n\", \"8 1\\n1 2\\n\", \"4 2\\n1 2\\n3 4\\n\", \"4 2\\n1 2\\n2 3\\n\", \"4 2\\n1 2\\n2 3\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\", \"YES\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\"]}"... | {
"index": "code_r1_train_4275"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n4\\n\", \"1\\n9\\n\", \"1\\n6\\n\", \"1\\n2\\n\", \"1\\n9\\n\", \"1\\n2\\n\", \"1\\n6\\n\", \"1\\n4\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_4276"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"v\\n\", \"o\\n\", \"o\\n\", \"v\\n\", \"n\\n\", \"u\\n\", \"p\\n\", \"t\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_4277"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6 1 1\\n9 2 9\\n1000000 1 1000000\\n\", \"3\\n6 1 2\\n9 2 9\\n1000000 1 1000000\\n\", \"3\\n5 1 2\\n9 1 4\\n1000001 1 1000100\\n\", \"3\\n5 1 2\\n9 2 4\\n1000001 1 1000100\\n\", \"3\\n5 1 1\\n9 2 4\\n1000000 1 1000000\\n\", \"3\\n4 1 1\\n8 6 6\\n1000001 2 100... | {
"index": "code_r1_train_4278"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5\\n\", \"7\\n\", \"9\\n\", \"5\\n\", \"7\\n\", \"3\\n\", \"11\\n\"], \"outputs\": [\"*D*\\nDDD\\n*D*\\n\", \"**D**\\n*DDD*\\nDDDDD\\n*DDD*\\n**D**\\n\", \"***D***\\n**DDD**\\n*DDDDD*\\nDDDDDDD\\n*DDDDD*\\n**DDD**\\n***D***\\n\", \"****D****\\n***DDD***... | {
"index": "code_r1_train_4279"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n3 1\\n4 2\", \"3\\n0 2\\n1 0\\n3 4\", \"3\\n2 7\\n3 1\\n4 1\", \"3\\n0 0\\n1 0\\n3 4\", \"3\\n3 7\\n3 1\\n4 1\", \"3\\n0 0\\n1 0\\n6 4\", \"3\\n3 7\\n3 2\\n4 1\", \"3\\n0 0\\n1 0\\n6 3\"], \"outputs\": [\"2\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", ... | {
"index": "code_r1_train_4280"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"1 0 10\\n\", \"1 0 11\\n\", \"1 0 14\\n\", \"3 0 110\\n\", \"3 0 100\\n\", \"1 0 10000\\n\", \"1 0 10001\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_4281"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\", \"2\\n0\\n8\", \"2\\n0\\n6\", \"2\\n0\\n1\", \"2\\n0\\n0\", \"2\\n1\\n0\", \"2\\n1\\n1\", \"2\\n0\\n2\"], \"outputs\": [\"Chef\\nChef\", \"Misha\\nChef\\n\", \"Misha\\nMisha\\n\", \"Misha\\nChef\\n\", \"Misha\\nMisha\\n\", \"Chef\\nMisha\\n\", \"Chef... | {
"index": "code_r1_train_4282"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"4\\n\"], \"outputs\": [\"24\", \"1\", \"210\", \"1120\", \"4410\", \"14112\", \"38808\", \"1120\"]}"
} | {
"index": "code_r1_train_4283"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 -1 U\\n3 0 D\", \"2\\n10 -1 U\\n2 0 D\", \"2\\n20 1 U\\n11 47 D\", \"2\\n20 1 U\\n11 37 D\", \"2\\n20 0 U\\n11 37 D\", \"2\\n20 0 U\\n12 37 D\", \"2\\n20 0 U\\n12 70 D\", \"2\\n10 0 U\\n3 103 D\"], \"outputs\": [\"SAFE\\n\", \"SAFE\\n\", \"SAFE\\n\", \"SAF... | {
"index": "code_r1_train_4284"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n0 1\\n\", \"2\\n0 1\\n0 1\\n\", \"2\\n1 0\\n1 0\\n\", \"2\\n1 0\\n1 0\\n\", \"2\\n0 1\\n0 1\\n\", \"2\\n1 0\\n0 1\\n\", \"3\\n1 0 2\\n2 0 1\\n\", \"3\\n0 2 1\\n1 2 0\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\", \"YES\", \"YES\", \"Y... | {
"index": "code_r1_train_4285"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1 2 1\\n\", \"2 0 0\\n\", \"2 1 1\\n\", \"0 2 1\\n\", \"5 4 5\\n\", \"2 0 2\\n\", \"2 1 2\\n\"], \"outputs\": [\"32\", \"32\", \"30\", \"32\", \"32\", \"38\", \"32\", \"32\"]}"
} | {
"index": "code_r1_train_4286"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n2 2\\n3 4\\n5 6\", \"3\\n1 2\\n3 4\\n5 6\", \"3\\n2 2\\n3 4\\n10 6\", \"3\\n3 2\\n3 4\\n20 6\", \"3\\n3 4\\n3 4\\n20 6\", \"3\\n3 4\\n3 4\\n28 6\", \"3\\n3 2\\n3 4\\n14 6\", \"3\\n1 4\\n3 4\\n48 6\"], \"outputs\": [\"12\\n\", \"12\", \"22\\n\", \"42\\n\", \"4... | {
"index": "code_r1_train_4287"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 4\\n2 1\\n3 5\\n3\\n2 3\\n2 2\\n2 6\\n4\\n1 7\\n3 3\\n2 6\\n1000000000 2\\n\", \"3\\n3\\n2 4\\n2 0\\n3 5\\n3\\n2 3\\n2 2\\n2 6\\n4\\n1 7\\n3 3\\n2 6\\n1000000000 4\\n\", \"3\\n3\\n2 4\\n2 1\\n0 5\\n3\\n2 3\\n2 2\\n1 6\\n4\\n1 7\\n3 3\\n2 6\\n1000000000 ... | {
"index": "code_r1_train_4288"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n5\\n\", \"1\\n1 5\\n5\\n\", \"1\\n1 9\\n5\\n\", \"1\\n1 5\\n7\\n\", \"1\\n1 0\\n7\\n\", \"1\\n1 6\\n5\\n\", \"1\\n1 6\\n7\\n\", \"1\\n1 10\\n5\\n\"], \"outputs\": [\"10\\n\", \"10\\n\", \"14\\n\", \"12\\n\", \"7\\n\", \"11\\n\", \"13\\n\", \"15\\n\"]}"
... | {
"index": "code_r1_train_4289"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2 2\\n\", \"3 2\\n\", \"2 1\\n\", \"5 3\\n\", \"5 2\\n\", \"8 5\\n\", \"1 3\\n\"], \"outputs\": [\"3B\\n\", \"Impossible\\n\", \"1A1B\\n\", \"1A\\n\", \"1A1B1A\\n\", \"2A1B\\n\", \"1A1B1A1B\\n\", \"2B\\n\"]}"
} | {
"index": "code_r1_train_4290"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\naizualgorithm\\n9\\ncomp 1 1 4 5\\ncomp 2 6 1 5\\nset 9 12 b\\ncomp 9 9 6 10\\ncomp 5 8 1 3\\nset 1 10 z\\nset 11 6 x\\ncomp 8 10 1 5\\ncomp 1 5 2 5\", \"13\\naozualgirithm\\n9\\ncomp 1 1 4 5\\ncomp 2 6 1 5\\nset 9 12 b\\ncomp 9 9 6 10\\ncomp 5 8 1 3\\nset 1... | {
"index": "code_r1_train_4291"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3 0\", \"2 5\", \"3 4\", \"4 5\", \"2 3\", \"2 3\\n\", \"1 1\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"6\\n\", \"2\\n\", \"3\\n\", \"3\", \"3\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_4292"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 2\\n0 0 1 1\\n1 0 0 1\", \"1 1 2\\n0 0 1 1\\n1 0 0 1\\n\", \"4 3 3\\n0 1 3 1\\n1 1 4 1\\n2 0 2 2\", \"4 3 3\\n0 1 3 1\\n1 1 4 1\\n0 0 2 2\", \"4 2 3\\n0 1 3 1\\n1 1 4 1\\n2 0 4 2\", \"4 3 3\\n0 1 1 1\\n1 1 4 1\\n0 0 2 2\", \"4 2 3\\n0 1 3 1\\n1 1 4 1\\n2 0 4 ... | {
"index": "code_r1_train_4293"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 1 2\\n\", \"8 2 6\\n\", \"8 7 5\\n\", \"2 1 2\\n\", \"2 2 1\\n\", \"4 1 3\\n\", \"4 1 4\\n\", \"4 2 1\\n\"], \"outputs\": [\"1\\n\", \"Final!\\n\", \"2\\n\", \"Final!\\n\", \"Final!\\n\", \"Final!\\n\", \"Final!\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_4294"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n10\\n\", \"1 2\\n10\\n\", \"1 1\\n10\\n\", \"2 1\\n2 5\\n\", \"2 2\\n2 3\\n\", \"2 2\\n2 3\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"10\\n\", \"10\\n\", \"10\\n\", \"7\\n\", \"3\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_4295"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 3\\n\", \"1 1\\n\", \"1 2\\n\", \"2 2\\n\", \"7 8\\n\", \"4 7\\n\", \"1 7\\n\", \"1 3\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"4\\n\", \"7\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_4296"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n1 1 1\\n\", \"3\\n1 1 1\\n\", \"3\\n2 1 1\\n\", \"3\\n3 1 1\\n\", \"3\\n3 1 2\\n\", \"3\\n1 1 2\\n\", \"3\\n1 1 3\\n\", \"3\\n1 1 4\\n\"], \"outputs\": [\"1\\n1 3\\n\", \"1\\n1 3\\n\", \"1\\n1 3\\n\", \"1\\n1 3\\n\", \"-1\\n\", \"1\\n1 3\\n\", \"1\\n1 3\\n\",... | {
"index": "code_r1_train_4297"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n\", \"2\\n0 6\\n\", \"2\\n4 9\\n\", \"2\\n5 2\\n\", \"2\\n6 16\\n\", \"2\\n6 16\\n\", \"2\\n5 16\\n\", \"2\\n1 12\\n\"], \"outputs\": [\"8\\n\", \"6\\n\", \"13\\n\", \"3\\n\", \"22\", \"22\", \"21\\n\", \"13\\n\"]}"
} | {
"index": "code_r1_train_4298"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1,2,3,4,1\\n2,3,1,3,12\\n12,13,11,12,12\\n7,6,7,6,7\\n3,3,2,3,3\\n6,7,8,9,10\\n11,12,10,1,13\\n11,12,13,1,2\", \"1,2,3,4,1\\n2,3,1,3,12\\n12,13,11,12,12\\n7,6,7,6,7\\n3,3,2,3,3\\n6,7,8,9,10\\n11,13,10,1,13\\n11,12,13,1,2\", \"1,2,3,4,1\\n2,3,1,3,12\\n13,13,11,12,... | {
"index": "code_r1_train_4299"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.