messages
listlengths
1
1
ground_truth
stringlengths
88
726k
dataset
stringclasses
2 values
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nCaptain Jack Sparrow and Davy Jo...
[{"type": "stdin_stdout", "input": "100\nlwvaneiwcugzlsreuxzpfyqmdkwvakuulwgmyfyonuvwfkpsohudvsnybxgxdpxnikrqpdrqpnrjewmshjsmhfixfbvlynoraktntxvjesvtrcchyjllqjttdjkizyzkryllzkstiileuwokennltseskfhqexxigmadpdtyyfbfikoqgqljhuktfbcoeyedgsesxaopbejmidsanwhsemsmcfjrekzcilpbombjqhqsovvyfgkemeegkdvqmfsroftjgrqasaghmwdncymavzu...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nPanda is fond of numbers. Given ...
[{"type": "stdin_stdout", "input": "1000\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n10\n12\n23\n14\n15\n16\n26\n33\n19\n20\n21\n22\n23\n24\n25\n26\n26\n28\n29\n30\n31\n32\n16\n34\n35\n36\n37\n38\n39\n40\n41\n42\n43\n44\n45\n46\n47\n48\n49\n50\n51\n52\n53\n54\n55\n56\n57\n58\n24\n60\n61\n62\n63\n64\n65\n77\n77\n68\n5\n70\n71\n72\n...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nA positive integer X is said to ...
[{"type": "stdin_stdout", "input": "100000", "output": "3234566667"}, {"type": "stdin_stdout", "input": "333", "output": "10100\n"}, {"type": "stdin_stdout", "input": "139", "output": "2122\n"}, {"type": "stdin_stdout", "input": "183", "output": "3454\n"}, {"type": "stdin_stdout", "input": "174", "output": "3343\n"}, {...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nGiven is a tree G with N vertice...
[{"type": "stdin_stdout", "input": "8\n1 2\n2 3\n2 4\n2 5\n4 7\n5 6\n2 8", "output": "5\n1\n2\n3\n4\n1\n1\n5\n"}, {"type": "stdin_stdout", "input": "8\n1 2\n2 3\n2 4\n4 5\n4 7\n5 6\n2 8", "output": "4\n1\n2\n3\n1\n2\n2\n4\n"}, {"type": "stdin_stdout", "input": "8\n1 2\n2 3\n2 4\n2 5\n4 7\n3 6\n6 8", "output": "4\n1\n2\...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given a 4-character stri...
[{"type": "stdin_stdout", "input": "EEFF", "output": "Yes\n"}, {"type": "stdin_stdout", "input": "SOOS", "output": "Yes\n"}, {"type": "stdin_stdout", "input": "FFEE", "output": "Yes"}, {"type": "stdin_stdout", "input": "ASSA", "output": "Yes"}, {"type": "stdin_stdout", "input": "FQEE", "output": "No\n"}, {"type": "stdi...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given a permutation of 1...
[{"type": "stdin_stdout", "input": "7\n4\n2\n1\n6\n5\n4\n14", "output": "No\n"}, {"type": "stdin_stdout", "input": "7\n4\n2\n1\n11\n5\n4\n7", "output": "No\n"}, {"type": "stdin_stdout", "input": "7\n3\n2\n1\n6\n5\n4\n7", "output": "Yes"}, {"type": "stdin_stdout", "input": "7\n4\n2\n1\n6\n5\n4\n7", "output": "No\n"}, {"...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThere are N holes in a two-dimen...
[{"type": "stdin_stdout", "input": "5\n0 0\n2 8\n4 5\n2 6\n3 10", "output": "0.43160120892732328768\n0.03480224363653196956\n0.13880483535586193855\n0.00000000000000000000\n0.39479171208028279727"}, {"type": "stdin_stdout", "input": "5\n1 0\n2 13\n-1 1\n4 10\n3 10", "output": "0.277405019286\n0.367426913906\n0.21519775...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are in charge of controlling...
[{"type": "stdin_stdout", "input": "4 15\n1000000000 15\n9 5\n13 6\n7 4", "output": "1000000000.000000000000\n666666669.666666626930\n400000007.000000000000\n293333340.333333313465\n"}, {"type": "stdin_stdout", "input": "4 15\n1100000000 15\n9 10\n8 6\n2 4", "output": "1100000000.000000000000\n366666672.666666686535\n2...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nA prime number n (11, 19, 23, et...
[{"type": "stdin_stdout", "input": "11\n173\n0", "output": "4\n4\n4\n4\n4\n84\n86\n86\n84\n86\n84\n86\n86\n84\n84\n86\n86\n84\n84\n84\n84\n86\n86\n86\n86\n84\n84\n84\n84\n84\n86\n86\n86\n84\n86\n84\n86\n84\n84\n84\n84\n84\n84\n86\n84\n84\n86\n84\n86\n86\n86\n84\n86\n84\n86\n84\n84\n86\n84\n84\n84\n84\n86\n86\n84\n86\n8...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nOne of the games that uses the H...
[{"type": "stdin_stdout", "input": "2\nSSSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM\n9\nSSSSSSSSSSSSSSLLLLLLLLLMLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMSL\n6\nMMMMMMSMSLLMMMSMMSLMMMLMMMMLSLLLLMMSMMLMMLLMSSSLMMMMLMLSMLMSMMMMMMMSMMM...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nproblem\n\nYou are playing with ...
[{"type": "stdin_stdout", "input": "4 5 12 2\n20\n80\n100\n50\n1 1\n2 6\n2 2\n1 5\n3 1\n2 0 5 1\n10\n20\n1 1\n1 0\n0 0 0 0", "output": "100\n10\n0\n"}, {"type": "stdin_stdout", "input": "4 5 12 2\n20\n80\n101\n50\n1 1\n2 6\n2 2\n1 5\n3 1\n2 0 5 1\n10\n20\n1 1\n1 0\n0 0 0 0", "output": "100\n10\n0\n"}, {"type": "stdin_s...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nHonestly, a rabbit does not matt...
[{"type": "stdin_stdout", "input": "15 11\n35\n15\n4\n-4\n0", "output": "454041516\n"}, {"type": "stdin_stdout", "input": "14 15\n61\n10\n7\n-4\n0", "output": "227020758\n"}, {"type": "stdin_stdout", "input": "16 11\n29\n10\n7\n-4\n0", "output": "496068260\n"}, {"type": "stdin_stdout", "input": "14 27\n33\n6\n7\n-4\n1"...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nD - Medical Inspection\n\nProble...
[{"type": "stdin_stdout", "input": "10 3 1\n1 3\n2 6\n4 1", "output": "Impossible\n"}, {"type": "stdin_stdout", "input": "10 3 1\n1 6\n2 6\n4 1", "output": "Impossible\n"}, {"type": "stdin_stdout", "input": "10 3 1\n2 6\n2 6\n4 1", "output": "Impossible\n"}, {"type": "stdin_stdout", "input": "6 1 0\n1 5\n-1 6\n4 1", "o...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nA pitch-black room\n\nWhen I wok...
[{"type": "stdin_stdout", "input": "4 0 2\n2 4\n2 2\n1 1\n4 -1\n6 -1", "output": "0\n"}, {"type": "stdin_stdout", "input": "4 0 2\n2 4\n2 1\n1 1\n4 -1\n6 -1", "output": "0\n"}, {"type": "stdin_stdout", "input": "8 0 1\n2 4\n2 2\n-1 1\n4 0\n6 -1", "output": "0\n"}, {"type": "stdin_stdout", "input": "5 0 2\n2 7\n2 2\n1 1...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThe goal of the matrix-chain mul...
[{"type": "stdin_stdout", "input": "6\n30 35\n35 15\n15 5\n5 10\n10 20\n20 29", "output": "16125\n"}, {"type": "stdin_stdout", "input": "6\n30 35\n35 15\n15 5\n5 10\n10 20\n20 27", "output": "15625\n"}, {"type": "stdin_stdout", "input": "6\n30 35\n35 15\n15 5\n5 10\n10 20\n20 47", "output": "20625\n"}, {"type": "stdin_...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nFor given two sides of a triangl...
[{"type": "stdin_stdout", "input": "1 2 -1", "output": "-0.0174524064373\n4.00030456331\n-0.0349048128746\n"}, {"type": "stdin_stdout", "input": "2 1 -2", "output": "-0.0348994967025\n4.00121760468\n-0.0348994967025\n"}, {"type": "stdin_stdout", "input": "1 1 -2", "output": "-0.0174497483513\n2.03490481287\n-0.03489949...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThe [BFS](https://en.wikipedia.o...
[{"type": "stdin_stdout", "input": "11\n1 2\n2 8\n3 7\n4 9\n5 10\n5 11\n6 4\n6 5\n7 1\n1 6\n1 6 7 2 5 4 3 8 11 10 9\n", "output": "Yes\n"}, {"type": "stdin_stdout", "input": "11\n1 2\n2 8\n3 7\n4 9\n5 10\n5 11\n11 4\n6 5\n7 1\n1 6\n1 6 7 2 5 4 3 8 11 10 9\n", "output": "No\n"}, {"type": "stdin_stdout", "input": "11\n1 ...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nIn Morse code, an letter of Engl...
[{"type": "stdin_stdout", "input": "100\n1\n0\n0\n1\n0\n0\n1\n1\n0\n0\n1\n0\n0\n0\n0\n0\n1\n1\n0\n0\n0\n1\n1\n1\n1\n0\n0\n1\n1\n0\n1\n1\n0\n1\n1\n1\n1\n0\n0\n0\n0\n0\n0\n1\n1\n0\n0\n1\n1\n1\n1\n0\n1\n0\n0\n0\n1\n0\n0\n1\n0\n1\n1\n1\n1\n1\n0\n1\n0\n0\n1\n1\n0\n0\n1\n0\n0\n1\n1\n0\n0\n0\n1\n0\n0\n0\n0\n0\n0\n1\n1\n0\n0\n...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nCodefortia is a small island cou...
[{"type": "stdin_stdout", "input": "6 7 13 22\n1 2 13\n2 3 13\n1 4 22\n3 4 13\n4 5 13\n5 6 13\n6 1 13\n", "output": "0 13 26 39 26 13\n"}, {"type": "stdin_stdout", "input": "6 7 13 22\n1 2 13\n2 3 13\n1 4 22\n3 4 13\n4 1 13\n5 6 13\n6 1 13\n", "output": "0 13 26 13 26 13 "}, {"type": "stdin_stdout", "input": "6 7 13 22...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nConsider a sequence of digits of...
[{"type": "stdin_stdout", "input": "20\n4 8 6 6 3 0 1 8 3 6 1 4 3 2 1 3 6 4 5 4\n15\n16 19\n3 10\n9 9\n3 18\n6 7\n15 18\n12 19\n17 18\n12 12\n6 9\n3 10\n1 2\n2 3\n4 19\n16 16\n", "output": "1\n3\n0\n5\n0\n1\n2\n1\n0\n1\n3\n1\n1\n5\n0\n"}, {"type": "stdin_stdout", "input": "20\n4 8 6 6 3 0 1 8 3 6 1 4 3 2 1 2 6 4 5 4\n1...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nLet us define a magic grid to be...
[{"type": "stdin_stdout", "input": "136\n", "output": "0 1 2 3 16 17 18 19 32 33 34 35 48 49 50 51 64 65 66 67 80 81 82 83 96 97 98 99 112 113 114 115 128 129 130 131 144 145 146 147 160 161 162 163 176 177 178 179 192 193 194 195 208 209 210 211 224 225 226 227 240 241 242 243 256 257 258 259 272 273 274 275 288 289 2...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nLet's call two strings s and t a...
[{"type": "stdin_stdout", "input": "aabbbbbbc\n6\n1 1\n2 4\n2 2\n1 9\n5 7\n3 5\n", "output": "YES\nYES\nYES\nYES\nNO\nNO\n"}, {"type": "stdin_stdout", "input": "aabbbbbbc\n6\n1 1\n2 4\n2 2\n1 9\n5 7\n3 8\n", "output": "YES\nYES\nYES\nYES\nNO\nNO\n"}, {"type": "stdin_stdout", "input": "aabbbbbbc\n6\n1 1\n2 7\n2 2\n1 9\n...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given two integers n and...
[{"type": "stdin_stdout", "input": "9\n6 9\n5 7\n4 6\n4 4\n612 4624\n53 311\n8 25\n3 3\n6 11\n", "output": "YES\n1 1 2 2 4 \nYES\n1 1 2 4 \nYES\n1 2 3 \nYES\n1 1 2 \nYES\n1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are playing another computer...
[{"type": "stdin_stdout", "input": "10\n8\n7 4\n9 10\n4 8\n3 1\n1 7\n9 5\n1 4\n2 5\n8\n9 8\n4 7\n7 7\n3 6\n14 9\n2 5\n4 9\n2 8\n7\n2 2\n2 7\n2 10\n8 6\n1 4\n2 6\n3 10\n4\n4 10\n7 5\n6 10\n9 5\n7\n8 9\n8 1\n3 4\n5 1\n3 10\n9 3\n5 5\n5\n6 1\n7 3\n6 5\n6 1\n1 8\n2\n7 8\n7 10\n4\n6 8\n9 3\n8 1\n9 7\n4\n13 7\n5 7\n10 10\n8 ...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given an undirected grap...
[{"type": "stdin_stdout", "input": "5000 1\n0 1 4999\n3801 107\n", "output": "YES\n333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333323333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given an array a consist...
[{"type": "stdin_stdout", "input": "5\n4 3\n1 2 1 3\n10 6\n8 7 1 8 3 7 1 10 8 9\n5 13\n20 100 74 20 100500\n10 25\n24 39 19 24 24 87 24 24 24 10\n8 8\n1 2 3 4 5 7 7 12\n", "output": "6\n24\n20\n127\n13\n"}, {"type": "stdin_stdout", "input": "5\n4 3\n1 2 1 3\n10 6\n8 7 1 8 3 7 0 10 8 9\n5 13\n20 100 50 20 100500\n10 25\...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nZiota found a video game called ...
[{"type": "stdin_stdout", "input": "100 5 5 9 3\n3 4 2 3 4 3 8 5 2 1 1 4 1 1 10 10 7 5 2 9 4 2 10 10 8 2 4 9 6 2 6 7 7 5 7 7 1 8 10 9 9 3 10 3 10 1 1 8 3 6 4 5 5 4 9 5 9 4 8 2 10 8 9 1 5 9 7 2 1 7 9 3 2 9 1 5 4 2 3 10 6 7 8 2 10 1 6 2 1 6 10 9 1 2 2 7 2 8 4 4\n", "output": "1597\n"}, {"type": "stdin_stdout", "input": "...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nIn order to celebrate Twice's 5t...
[{"type": "stdin_stdout", "input": "6\n6 12\n8 4\n90 1219\n55 14\n6484 2912\n2 1\n", "output": "10\n12\n1177\n57\n4660\n3\n"}, {"type": "stdin_stdout", "input": "6\n6 12\n13 4\n90 1219\n55 14\n6484 2912\n2 1\n", "output": "10\n9\n1177\n57\n4660\n3\n"}, {"type": "stdin_stdout", "input": "6\n6 12\n8 6\n90 1219\n55 14\n64...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nOnly a few know that Pan and Apo...
[{"type": "stdin_stdout", "input": "8\n2\n1 7\n3\n1 2 4\n4\n5 5 5 5\n5\n6 2 2 1 0\n1\n0\n1\n1\n6\n1 12 123 1234 12345 123456\n5\n536870912 536870911 1152921504606846975 1152921504606846974 1152921504606846973\n", "output": "\n128\n91\n1600\n505\n0\n1\n502811676\n264880351\n"}, {"type": "stdin_stdout", "input": "8\n2\n1...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nPolycarp was gifted an array a o...
[{"type": "stdin_stdout", "input": "1\n36\n1 2 2 3 3 11 14 4 4 10 5 5 6 8 6 10 7 2 7 7 13 8 8 15 9 9 9 9 10 17 10 10 12 12 12 19\n", "output": "16\n"}, {"type": "stdin_stdout", "input": "1\n36\n1 2 2 3 2 38 14 4 1 10 5 2 2 8 6 6 16 4 7 7 13 8 5 9 9 2 2 9 10 17 10 10 24 12 29 37\n", "output": "17\n"}, {"type": "stdin_st...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nA sequence of n non-negative int...
[{"type": "stdin_stdout", "input": "4\n3\n2 1 1\n5\n1 0 2 0 27\n5\n1 2 1 16 0\n2\n3 8 18 2\n", "output": "0\n12\n0\n0\n"}, {"type": "stdin_stdout", "input": "4\n3\n2 0 0\n5\n0 3 2 0 51\n5\n1 2 1 16 0\n2\n3 8 21 2\n", "output": "2\n12\n0\n0\n"}, {"type": "stdin_stdout", "input": "4\n3\n2 1 1\n5\n0 4 2 0 21\n5\n0 4 2 8 0...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThe new operating system BerOS h...
[{"type": "stdin_stdout", "input": "/zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\n", "output": "/zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\n"}, {"type": "stdin_stdout", "input": "/a/a/a/a/a/a/a/a/a/a/a/a/a/...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThe cows have just learned what ...
[{"type": "stdin_stdout", "input": "1619\n", "output": "808\n"}, {"type": "stdin_stdout", "input": "1193\n", "output": "592\n"}, {"type": "stdin_stdout", "input": "1327\n", "output": "384\n"}, {"type": "stdin_stdout", "input": "1217\n", "output": "576\n"}, {"type": "stdin_stdout", "input": "1549\n", "output": "504\n"},...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nPetya wrote a programme on C++ t...
[{"type": "stdin_stdout", "input": "32657\nint f(int n){if (n < 7) return 1; return f(n-1)+f(n-2)+f(n-3)+f(n-4)+f(n-5)-f(n-6)-f(n-7);}\n", "output": "32308"}, {"type": "stdin_stdout", "input": "1\nint f(int n){if (n < 1) return 1;if (n < 2) return 0;return f(f(f(f(f(f(f(f(f(f(n-1))))))))));}\n", "output": "32766"}, {"t...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nIndian summer is such a beautifu...
[{"type": "stdin_stdout", "input": "17\njtbctslqq tosqzw\njtbctslqq tosqzw\njtbctslqq tosqzw\njtbctslqq tosqzw\njtbctslqq tosqzw\njtbctslqq tosqzw\njtbctslqq tosqzw\njtbctslqq tosqzw\njtbctslqq tosqzw\njtbctslqq tosqzw\njtbctslqq tosqzw\njtbltscqq tosqzw\njtbctslqq tosqzw\njtbctslqq tosqzw\njtbctslqq tosqzw\njtbctslqq ...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nA and B are preparing themselves...
[{"type": "stdin_stdout", "input": "rppppppr\n...k....\n........\n........\n........\n........\nK...Q...\n........\n", "output": "Black\n"}, {"type": "stdin_stdout", "input": "...QK...\n........\n........\n........\n........\n........\n........\n...rk...\n", "output": "White\n"}, {"type": "stdin_stdout", "input": "P......
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nLittle Susie loves strings. Toda...
[{"type": "stdin_stdout", "input": "00001111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\n1111110000000000000000000000000000000000000000000000000000000000000000000000000000...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThe teacher gave Anton a large g...
[{"type": "stdin_stdout", "input": "10\n22290 75956\n-66905 -22602\n-88719 12654\n-191 -81032\n0 -26057\n-39609 0\n0 51194\n2648 88230\n90584 15544\n0 23060\n-29107 26878\n", "output": "NO\n"}, {"type": "stdin_stdout", "input": "10\n22290 75956\n-66905 -22602\n-88719 12654\n-191 -81032\n0 -26057\n-39609 0\n0 51194\n490...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nIvan wants to make a necklace as...
[{"type": "stdin_stdout", "input": "3\n33332 19151 47433\n", "output": "0\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nTwo positive integers a and b ha...
[{"type": "stdin_stdout", "input": "549755813887 549755813887\n", "output": "549755813886"}, {"type": "stdin_stdout", "input": "549755813888 549755813886\n", "output": "274877906944"}, {"type": "stdin_stdout", "input": "274861129991 274861129463\n", "output": "34359738368"}, {"type": "stdin_stdout", "input": "412182675...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nPari wants to buy an expensive c...
[{"type": "stdin_stdout", "input": "9 436\n1 2 4 8 14 32 27 128 256\n", "output": "160\n0 1 2 3 4 6 8 9 10 11 14 15 16 17 18 20 22 23 24 25 27 28 29 30 32 34 35 36 37 38 41 42 43 44 46 48 49 50 51 52 128 129 130 131 132 134 136 137 138 139 142 143 144 145 146 148 150 151 152 153 155 156 157 158 160 162 163 164 165 166 ...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nFangy the little walrus, as all ...
[{"type": "stdin_stdout", "input": "123\nOjg CVJm qfE RnHislFds nNKKt TCPLWukqNGAsVBplYbTfq? VeYKjfFGTzXWA ydpVZLIImNub yApKnAHv iXQmqv GjQvxrnAgtfTApiQyCKtg. GdmapGwvI udRqxTbnzgnOUNZx slAuEuLGCJycZJvtCczQ vommS xuuT eIK! DOJeFEaubbz HYLGlIIlNKfyaJQKVN eFNnUvKKCQLXvGhwX gjmRscMkedELUlHq? aTbyMGB EofzX wcAEjyRQpxghWvXh...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nA famous Berland's painter Kalev...
[{"type": "stdin_stdout", "input": "BBBBBBBB\nBBBBBBBB\nBBBBBBBB\nBBBBBBBB\nBBBBBBBB\nBBBBBBBB\nBBBBBBBB\nBWBBWBWB\n", "output": "12\n"}, {"type": "stdin_stdout", "input": "BWBBBWWB\nBWBBBWWB\nBBBBBBBB\nBBBBBBBB\nBWBBBWWB\nBBBBBBBB\nBBBBBBBB\nBBBBBBBB\n", "output": "10\n"}, {"type": "stdin_stdout", "input": "BBBBBBBB\n...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nSometimes Mister B has free even...
[{"type": "stdin_stdout", "input": "12 12 876543210 1000000000\n", "output": "13"}, {"type": "stdin_stdout", "input": "10 12 220000011 220000032\n", "output": "11"}, {"type": "stdin_stdout", "input": "3 10 498103029 1063506054\n", "output": "4\n"}, {"type": "stdin_stdout", "input": "13 8 654321109 654321126\n", "output...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nRecently Luba bought a monitor. ...
[{"type": "stdin_stdout", "input": "29 50 5 29\n21 42 1565821\n21 43 53275635\n21 44 2717830\n21 45 9579585\n21 46 20725775\n22 42 2568372\n22 43 9584662\n22 44 31411635\n22 45 5089311\n22 46 4960702\n23 42 11362237\n23 43 42200296\n23 44 18762146\n23 45 8553819\n23 46 4819516\n24 42 10226552\n24 43 21022685\n24 44 329...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nVova promised himself that he wo...
[{"type": "stdin_stdout", "input": "10 5\n1 6 2 11 3 8 4 9 5 10\n1 2\n3 5\n5 6\n7 10\n9 10\n", "output": "27\n"}, {"type": "stdin_stdout", "input": "10 3\n1 6 2 27 1 8 1 9 5 1\n1 2\n3 1\n10 6\n7 8\n17 10\n", "output": "45\n"}, {"type": "stdin_stdout", "input": "10 3\n1 6 2 17 1 8 1 9 5 1\n1 2\n3 1\n10 6\n7 8\n17 10\n",...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nVictor tries to write his own te...
[{"type": "stdin_stdout", "input": "90\nbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\n", "output": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\n"}, {"type": "stdin_stdout", "input": "90\nbabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nIt is lunch time at the Vibrant ...
[{"type": "stdin_stdout", "input": "31509019101", "output": "22280241075\n"}, {"type": "stdin_stdout", "input": "21\n\nSAMPLE", "output": "15\n"}, {"type": "stdin_stdout", "input": "21\n\nSAMELP", "output": "15\n"}, {"type": "stdin_stdout", "input": "21\n\nSAMEKP", "output": "15\n"}, {"type": "stdin_stdout", "input": "...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nMonk visits Biksy, the largest t...
[{"type": "stdin_stdout", "input": "2\n5 6\n1 2 2\n2 3 -2\n3 0 -7\n4 5 0\n2 3 -2\n3 5 6\n5 8\n1 0 10\n2 -2 -6\n5 2 5\n4 5 11\n1 5 1\n1 4 -10\n2 3 -2\n4 1 1\n\nSMAPLE", "output": "No\nYes\n"}, {"type": "stdin_stdout", "input": "2\n5 6\n1 2 2\n4 3 -2\n3 0 -7\n4 5 0\n2 3 -2\n3 5 6\n5 8\n1 0 10\n2 -2 -6\n5 2 5\n4 5 11\n1 5...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nDefinition:\nRoy's boolean funct...
[{"type": "stdin_stdout", "input": "10\n93937\n91678\n97274\n5\n90836\n94116\n91419\n91453\n96110\n95153", "output": "FALSE\nFALSE\nFALSE\nFALSE\nFALSE\nFALSE\nFALSE\nFALSE\nFALSE\nFALSE\n"}, {"type": "stdin_stdout", "input": "10\n93937\n91678\n97274\n5\n90836\n94116\n91419\n87816\n96110\n95153", "output": "FALSE\nFALS...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nWith the T20 world cup going on,...
[{"type": "stdin_stdout", "input": "5\n4 12\n2 1\n3 10\n2 7\n2 5\n\nSAMPLE", "output": "2 7\n2 5\n2 1\n3 10\n4 12\n"}, {"type": "stdin_stdout", "input": "5\n4 12\n2 1\n3 10\n2 6\n2 5\n\nSAMPLE", "output": "2 6\n2 5\n2 1\n3 10\n4 12\n"}, {"type": "stdin_stdout", "input": "5\n4 12\n2 1\n3 10\n2 6\n1 5\n\nSAMPLE", "output...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nWe will buy a product for N yen ...
[{"type": "stdin_stdout", "input": "5614", "output": "386\n"}, {"type": "stdin_stdout", "input": "2651", "output": "349\n"}, {"type": "stdin_stdout", "input": "1858", "output": "142\n"}, {"type": "stdin_stdout", "input": "1054", "output": "946\n"}, {"type": "stdin_stdout", "input": "1861", "output": "139\n"}, {"type": ...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nDoes \\sqrt{a} + \\sqrt{b} < \\s...
[{"type": "stdin_stdout", "input": "-10 -1 1", "output": "Yes\n"}, {"type": "stdin_stdout", "input": "-10 -1 0", "output": "Yes\n"}, {"type": "stdin_stdout", "input": "-16 -1 0", "output": "Yes\n"}, {"type": "stdin_stdout", "input": "110 -1 -3", "output": "No\n"}, {"type": "stdin_stdout", "input": "-1 -14 2", "output":...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nWe have two indistinguishable pi...
[{"type": "stdin_stdout", "input": "1010000 100000 200000", "output": "489638142\n"}, {"type": "stdin_stdout", "input": "1010000 100001 200000", "output": "645079609\n"}, {"type": "stdin_stdout", "input": "1011000 100001 200000", "output": "150445035\n"}, {"type": "stdin_stdout", "input": "1011001 100001 200000", "outp...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nWe have N weights indexed 1 to N...
[{"type": "stdin_stdout", "input": "8\n1 1 10 0 -1 -1 216 -1", "output": "201\n"}, {"type": "stdin_stdout", "input": "8\n1 1 10 1 -1 -1 216 -1", "output": "200\n"}, {"type": "stdin_stdout", "input": "8\n1 1 10 0 2 -1 190 -1", "output": "174\n"}, {"type": "stdin_stdout", "input": "8\n1 1 10 0 0 -1 359 -1", "output": "34...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nFor a positive integer n, let us...
[{"type": "stdin_stdout", "input": "112006", "output": "281515698\n"}, {"type": "stdin_stdout", "input": "124627", "output": "691899329\n"}, {"type": "stdin_stdout", "input": "136594", "output": "280082176\n"}, {"type": "stdin_stdout", "input": "133460", "output": "890005486\n"}, {"type": "stdin_stdout", "input": "2109...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given N points (x_i,y_i)...
[{"type": "stdin_stdout", "input": "5\n1 0\n-1 1\n0 2\n0 3\n1 2", "output": "16"}, {"type": "stdin_stdout", "input": "5\n0 0\n0 1\n0 2\n0 3\n1 1", "output": "11"}, {"type": "stdin_stdout", "input": "5\n0 0\n0 1\n0 2\n0 3\n1 2", "output": "11"}, {"type": "stdin_stdout", "input": "5\n1 0\n0 1\n0 2\n0 3\n1 2", "output": "...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nDolphin loves programming contes...
[{"type": "stdin_stdout", "input": "405 14", "output": "11\n"}, {"type": "stdin_stdout", "input": "17 -1", "output": "16\n"}, {"type": "stdin_stdout", "input": "62 -1", "output": "13\n"}, {"type": "stdin_stdout", "input": "45 -1", "output": "20\n"}, {"type": "stdin_stdout", "input": "45 -2", "output": "19\n"}, {"type":...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThere is a double-track line (up...
[{"type": "stdin_stdout", "input": "06,04,1,2,1,1,1,1,1,1,1,2\n1,1,1,1,1,4,3,3,3,3,505,0\n10,10,10,10,10,10,10,10,10,10,50,49", "output": "2\n10\n6\n"}, {"type": "stdin_stdout", "input": "06,14,1,1,0,1,1,1,1,1,1,0\n1,1,1,1,1,3,3,3,3,3,40,50\n10,10,10,10,10,10,10,20,10,10,59,40", "output": "10\n7\n7\n"}, {"type": "stdin...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nCreate a program that inputs the...
[{"type": "stdin_stdout", "input": "4\n30\n125\n75\n4\n30\n125\n75\n5\n30\n125\n149\n65\n4\n30\n125\n75\n4\n30\n125\n75\n6\n52\n50\n50\n25\n75\n0", "output": "0\n2\n2\n"}, {"type": "stdin_stdout", "input": "4\n30\n125\n75\n4\n30\n125\n75\n5\n30\n125\n149\n65\n4\n30\n125\n75\n4\n30\n125\n75\n6\n52\n79\n50\n25\n75\n0", "...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nAddition is easy to calculate by...
[{"type": "stdin_stdout", "input": "-1 -1 -1 -1 -1 -1 -1 -1 -1", "output": "168"}, {"type": "stdin_stdout", "input": "-1 -1 -1 -1 -1 -1 8 4 6", "output": "12"}, {"type": "stdin_stdout", "input": "-1 -1 -1 -1 -1 -1 3 4 6", "output": "0\n"}, {"type": "stdin_stdout", "input": "-1 -1 -1 -1 -1 -1 3 2 6", "output": "0\n"}, {...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nproblem\n\nThe JOI building is a...
[{"type": "stdin_stdout", "input": "11 1\n0 1 0 1 0 1 1 1\n0 1 1 -4 0 1 -1 1\n2 1 1 0 1 1 1 1\n0 1 1 1 1 0 -1 0", "output": "36\n"}, {"type": "stdin_stdout", "input": "8 0\n-1 1 0 2 0 2 2 0\n1 4 1 0 -1 1 0 -2\n1 0 1 0 2 1 1 2\n0 1 1 0 1 -1 2 1", "output": "0\n"}, {"type": "stdin_stdout", "input": "8 0\n-1 1 0 2 0 2 2 0...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYoko’s math homework today was t...
[{"type": "stdin_stdout", "input": "4\n5 -3\n-1 0\n1 7\n-7 -1\n3\n5 5\n27 6\n5 14\n3\n-7 -5\n-5 -10\n-18 -10\n5\n0 0\n20 2\n11 1\n21 2\n2 0\n0", "output": "49\n124\n43\n23\n"}, {"type": "stdin_stdout", "input": "4\n5 -3\n-1 0\n1 7\n-7 -1\n3\n4 5\n27 6\n5 14\n3\n-7 -5\n-5 -10\n-18 -10\n5\n0 0\n20 2\n11 1\n21 2\n2 0\n0",...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nExample\n\nInput\n\n6\n2\n3\n1\n...
[{"type": "stdin_stdout", "input": "6\n2\n3\n2\n1\n11\n2", "output": "Yes\nYes\nYes\nNo\nYes\nYes\n"}, {"type": "stdin_stdout", "input": "6\n2\n10\n0\n4\n4\n1", "output": "Yes\nYes\nNo\nYes\nYes\nYes\n"}, {"type": "stdin_stdout", "input": "6\n6\n8\n1\n2\n5\n3", "output": "Yes\nYes\nYes\nYes\nYes\nYes\n"}, {"type": "std...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nEntrance Examination\n\nThe Inte...
[{"type": "stdin_stdout", "input": "5 2 4\n100\n90\n82\n70\n65\n5 2 4\n100\n170\n80\n75\n65\n3 1 2\n5000\n6502\n3000\n4 2 3\n10000\n10100\n8000\n8000\n4 2 3\n10000\n10000\n10000\n8000\n5 2 3\n100\n80\n136\n60\n111\n0 0 0", "output": "3\n2\n2\n2\n3\n3\n"}, {"type": "stdin_stdout", "input": "5 2 3\n100\n161\n82\n70\n65\n...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nG --Derangement / Derangement\n\...
[{"type": "stdin_stdout", "input": "5\n4 0 0 10 12", "output": "0\n"}, {"type": "stdin_stdout", "input": "5\n4 1 0 10 12", "output": "0\n"}, {"type": "stdin_stdout", "input": "5\n4 1 0 10 19", "output": "0\n"}, {"type": "stdin_stdout", "input": "5\n4 1 0 10 38", "output": "0\n"}, {"type": "stdin_stdout", "input": "5\n4...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nWrite a program which reads a se...
[{"type": "stdin_stdout", "input": "8\n-2 0 0 32 -1 -2 153 26", "output": "26 153 -2 -1 32 0 0 -2\n"}, {"type": "stdin_stdout", "input": "8\n-2 0 0 32 -2 -2 153 26", "output": "26 153 -2 -2 32 0 0 -2\n"}, {"type": "stdin_stdout", "input": "8\n-2 1 0 32 -2 -2 153 26", "output": "26 153 -2 -2 32 0 1 -2\n"}, {"type": "std...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given two strings s and ...
[{"type": "stdin_stdout", "input": "lxuyspmieeuyxluv\naalbtcxzvavqxwfd\n", "output": "32\n"}, {"type": "stdin_stdout", "input": "kxuyspmieeuyxluv\naalbtcxzvavqxwfd\n", "output": "32\n"}, {"type": "stdin_stdout", "input": "vulxyueeimpsyuxk\naalbtcxzvavqxwfd\n", "output": "32\n"}, {"type": "stdin_stdout", "input": "vulxy...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given a string s consist...
[{"type": "stdin_stdout", "input": "100\naa\nb\ncbc\nc\nbab\nc\nbdb\ndd\nhfh\nebe\nb\nf\ngg\na\nm\nkkk\nqq\ni\noo\nss\ntt\nere\njgj\nqiq\nkk\nn\naaa\nb\naa\nb\nc\na\nf\ne\na\naa\nff\ne\na\nafa\no\nmom\nqq\nf\niii\nh\njj\njj\nkgk\nbb\nhih\nj\na\naaa\nbb\nbab\ne\naa\nd\nb\nfdf\nibi\nbb\nfhf\ncc\nf\ngig\nene\nbob\na\nrcr\...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nOne day Sasha visited the farmer...
[{"type": "stdin_stdout", "input": "166\n61 19 19 67 11 11 73 89 73 11 47 2 59 43 61 31 19 83 71 19 29 97 89 97 2 11 5 73 19 2 19 7 41 53 5 23 11 89 2 23 47 47 83 71 17 71 67 67 67 3 29 97 17 83 11 19 67 17 97 7 19 29 29 41 13 71 29 19 19 43 47 17 71 3 13 71 41 19 47 7 29 43 29 97 31 11 43 17 23 83 37 61 79 31 17 5 59 ...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nA superhero fights with a monste...
[{"type": "stdin_stdout", "input": "1000000000000 10\n-10 5 -2 -2 -10 -7 -5 -9 -3 -4\n", "output": "212765957448\n"}, {"type": "stdin_stdout", "input": "1000000000000 10\n-10 9 -2 -2 -10 -7 -5 -9 -3 -4\n", "output": "232558139536\n"}, {"type": "stdin_stdout", "input": "1000000000000 10\n-14 9 -2 -2 -10 -7 -5 -9 -3 -4\n...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are organizing a boxing tour...
[{"type": "stdin_stdout", "input": "128\n-1 37 147 12 24 35 86 39 20 27 86 95 51 8 33 32 55 35 8 75 74 79 64 51 66 32 34 45 39 89 19 11 86 31 69 58 40 58 62 11 99 54 31 10 4 70 88 22 94 23 46 20 65 97 61 39 31 65 23 31 95 78 40 25 51 14 12 55 8 63 18 57 91 75 31 26 22 84 29 22 32 64 20 12 49 92 50 4 97 17 26 88 10 56 7...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nLogical quantifiers are very use...
[{"type": "stdin_stdout", "input": "100 50\n55 13\n84 2\n22 63\n100 91\n2 18\n98 64\n1 86\n93 11\n17 12\n24 97\n14 35\n24 74\n22 3\n42 5\n63 79\n31 89\n81 22\n86 88\n77 51\n81 34\n19 55\n41 54\n34 57\n45 9\n55 72\n67 61\n41 84\n39 32\n51 89\n58 74\n32 79\n65 6\n86 64\n63 42\n100 57\n46 39\n100 9\n23 58\n26 81\n61 49\n7...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nPolycarp wrote on the board a st...
[{"type": "stdin_stdout", "input": "10\nvzsxyuyy\n3\n1 0 3\nwwvutuxsuxywut\n2\n0 0\nsuzvsvutvvstuz\n3\n3 1 0\nstyuwsutv\n4\n6 3 0 1\nzsustytvzsyw\n6\n0 9 5 7 7 5\nsvwxwwwyxuvszx\n1\n0\nxuyyvuztxwuuvsxwz\n5\n5 7 0 0 7\nuxuztuwsxz\n5\n4 2 2 0 10\nxystzstwtzwsz\n2\n1 0\nuuzss\n1\n0\n", "output": "yzx\nxx\nuvz\nuvyw\nztwtv...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nCaptain Fint is involved in anot...
[{"type": "stdin_stdout", "input": "10\n-18 -1 2 3 5 -2 -3 -1 2 -11\n-1 -1 2 2 -1 5 5 7 7 9\n", "output": "-17\n3 4 2 9 5 7 10 8 6 1 "}, {"type": "stdin_stdout", "input": "10\n-10 -1 2 1 5 -2 -3 -3 2 -6\n-1 -1 2 2 -1 5 5 10 7 9\n", "output": "-10\n3 4 2 9 5 7 10 8 6 1 "}, {"type": "stdin_stdout", "input": "10\n-18 -1 2...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given four integers a, b...
[{"type": "stdin_stdout", "input": "7\n10 10 8 5 3\n12 8 8 7 2\n12343 43 4543 39 123212\n1000000000 1000000000 1 1 1\n1000000000 1000000000 1 1 1000000000\n10 11 2 1 5\n10 11 9 1 10\n", "output": "70\n77\n177177\n999999999000000000\n999999999\n55\n10\n"}, {"type": "stdin_stdout", "input": "7\n10 10 8 5 3\n12 8 0 7 2\n1...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nGreg the Dwarf has been really b...
[{"type": "stdin_stdout", "input": "1000 1000\n-20.534295190826231 133.273184243935670 865.154166109953510\n-711.474516721095600 -638.507879949720520 44.024947657417599\n", "output": "1355.67674395639642\n"}, {"type": "stdin_stdout", "input": "1000 1000\n-865.729850457726000 -306.217565767793640 81.709538567284440\n891...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nGildong has an interesting machi...
[{"type": "stdin_stdout", "input": "7\n2\n0 1\n3\n-1 0 2\n4\n110 133 106 95\n4\n-3 -5 -2 1\n6\n1 8 3 8 4 1\n5\n5 0 0 0 5\n9\n-367741579 319422997 -415264583 -125558838 -300860379 721691728 294512916 -383235489 425814447\n", "output": "0\n1\n15\n4\n14\n5\n3449059550\n"}, {"type": "stdin_stdout", "input": "7\n2\n0 1\n3\n...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThere is a deck of n cards. The ...
[{"type": "stdin_stdout", "input": "20\n7 29\n4 34\n40 2\n39 10\n33 5\n1 37\n20 23\n14 21\n22 9\n8 28\n19 24\n26 13\n32 6\n30 16\n11 38\n36 3\n35 12\n15 31\n17 27\n18 25\n", "output": "-1\n"}, {"type": "stdin_stdout", "input": "20\n24 12\n37 1\n5 35\n36 19\n22 6\n25 4\n26 17\n15 31\n39 8\n28 16\n11 29\n21 18\n14 34\n30...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThe only difference between the ...
[{"type": "stdin_stdout", "input": "3\n3\n110\n2\n00\n4\n1010\n", "output": "\nALICE\nBOB\nALICE\n"}, {"type": "stdin_stdout", "input": "3\n3\n110\n2\n00\n4\n1011\n", "output": "ALICE\nBOB\nALICE\n"}, {"type": "stdin_stdout", "input": "3\n3\n110\n2\n00\n4\n0011\n", "output": "ALICE\nBOB\nALICE\n"}, {"type": "stdin_stdo...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nPolycarpus has a hobby — he deve...
[{"type": "stdin_stdout", "input": "10 2\nrclgdpxdefqu abrfhwigaihoqq 0\nabrfhwigaihoqq rclgdpxdefqu 1\nrclgdpxdefqu bvkfwutdtvxgvx 1\nrclgdpxdefqu abrfhwigaihoqq 1\nabrfhwigaihoqq bvkfwutdtvxgvx 2\nbvkfwutdtvxgvx abrfhwigaihoqq 2\nbvkfwutdtvxgvx abrfhwigaihoqq 3\nabrfhwigaihoqq rclgdpxdefqu 5\nabrfhwigaihoqq rclgdpxde...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThe Smart Beaver from ABBYY love...
[{"type": "stdin_stdout", "input": "4\n-71868244 -24941524 -24941524 -24941524 -24941524 -24941524 -24941524 -6170836 21985196 21985196 21985196 21985196 40755884 40755884 40755884 68911916\n", "output": "12858032\n-24941524 -71868244 68911916 40755884\n21985196 40755884 -24941524 -24941524\n40755884 21985196 -24941524...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nRecently, Valery have come acros...
[{"type": "stdin_stdout", "input": "5\n void 8os6s2b ( T )\n void 8os6s2b ( int, int, int,int, int ) \n void 8os6s2b ( int, int, T) \n void fow8dmm ( T,T, int, int ) \n void fow8dmm ( int) \n2\n int 2 \n double 9c9t0 \n7\n 8os6s2b ( 9c9t0 ) \n 8os6s2b (9c9t0,9c9t0,9c9t0 ) \n8os6s2b ( 9c9t0,...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nNowadays the one-way traffic is ...
[{"type": "stdin_stdout", "input": "50\n30 34 48\n11 30 15\n11 5 179\n4 5 57\n43 4 21\n14 43 74\n14 19 52\n45 19 60\n45 28 52\n24 28 94\n24 26 2\n48 26 34\n48 13 53\n13 42 7\n42 37 23\n37 17 70\n17 7 29\n20 7 93\n33 20 21\n33 2 53\n21 2 83\n49 21 33\n46 49 28\n18 46 1\n36 18 99\n47 36 52\n47 29 41\n41 29 40\n31 41 45\n...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThe employees of the R1 company ...
[{"type": "stdin_stdout", "input": "10 45\n10 5\n10 7\n6 1\n5 8\n3 5\n6 5\n1 2\n6 10\n2 9\n9 5\n4 1\n9 5\n1 8\n6 8\n10 9\n7 2\n7 9\n4 10\n7 3\n4 9\n10 3\n10 8\n2 10\n8 2\n3 2\n5 2\n9 1\n4 5\n1 3\n9 10\n3 8\n5 1\n6 4\n4 7\n8 7\n7 1\n9 3\n3 4\n6 3\n3 2\n6 7\n6 3\n4 9\n8 9\n1 10\n", "output": "10 4 3 7 8 5 9 2 1 6 "}, {"t...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nOne day Vasya decided to have a ...
[{"type": "stdin_stdout", "input": "89\nH\nVOCI\nVOCI\nH\nVOCI\nH\nH\nVOCI\nVOCI\nVOCI\nH\nH\nH\nVOCI\nVOCI\nVOCI\nH\nVOCI\nVOCI\nH\nVOCI\nVOCI\nVOCI\nH\nVOCI\nH\nVOCI\nH\nVOCI\nH\nVOCI\nVOCI\nH\nVOCI\nVOCI\nVOCI\nVOCI\nVOCI\nVOCI\nH\nVOCI\nVOCI\nVOCI\nVOCI\nH\nVOCI\nH\nH\nVOCI\nH\nVOCI\nH\nVOCI\nVOCI\nVOCI\nVOCI\nVOCI...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nMany computer strategy games req...
[{"type": "stdin_stdout", "input": "10\n-260530833 169589238\n-681955770 -35391010\n223450511 24504262\n479795061 -26191863\n-291344265 21153856\n714700263 -328447419\n-858655942 161086142\n-270884153 462537328\n-501424901 977460517\n115284904 -151626824\n", "output": "2475449747812002025\n"}, {"type": "stdin_stdout", ...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nAmr loves Chemistry, and special...
[{"type": "stdin_stdout", "input": "20\n1 2 3 4 6 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 100000\n", "output": "113\n"}, {"type": "stdin_stdout", "input": "20\n1 2 3 4 6 8 16 32 64 128 256 512 1024 2048 3647 8192 16384 32768 65536 100000\n", "output": "124\n"}, {"type": "stdin_stdout", "input": "20...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nCarl is a beginner magician. He ...
[{"type": "stdin_stdout", "input": "1000000 1000000 1000000\n1000000 1000000 1000000\n", "output": "Yes\n"}, {"type": "stdin_stdout", "input": "1000100 1000000 1000000\n1000000 1000000 1000000\n", "output": "Yes\n"}, {"type": "stdin_stdout", "input": "1000000 500000 1000000\n500000 1000000 500000\n", "output": "Yes\n"}...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThere are several days left befo...
[{"type": "stdin_stdout", "input": "55 1000\n2612 1306 4300 1790 3173 9493 7209 7763 8563 4534 7466 1281 4483 6863 3787 7292 3957 8775 7221 4016 5743 6556 2070 2119 4795 9094 1913 2077 8786 4520 1865 2357 7871 3288 8231 5808 9383 9820 9974 3056 5343 2169 5177 6299 5805 8132 9315 6747 5226 3531 1206 4073 8290 1423 6720\...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given a text consisting ...
[{"type": "stdin_stdout", "input": "4\n13 11 15 15\nto be or not to be that is the question\nwhether tis nobler in the mind to suffer\nthe slings and arrows of outrageous fortune\nor to take arms against a sea of troubles\n", "output": "YES\n"}, {"type": "stdin_stdout", "input": "4\n13 11 28 15\nto be or not to be that...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nVladik was bored on his way home...
[{"type": "stdin_stdout", "input": "120\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5\n", "output": "120\n"}, {"type": "stdin...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nFinally! Vasya have come of age ...
[{"type": "stdin_stdout", "input": "37 3813 32\n117\n1 1 4 5 6 8 10 13 13 16 18 19 20 23 30 32 33 38 49 59 66 69 96 157 160 183 205 292 301 320 349 360 370 372 384 400 410 413 423 434 434 445 451 463 464 490 494 496 497 517 528 532 556 572 607 647 668 689 708 729 748 806 819 879 905 905 915 925 928 931 959 970 1133 114...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nBear Limak wants to become the l...
[{"type": "stdin_stdout", "input": "10 10\n", "output": "1\n"}, {"type": "stdin_stdout", "input": "11 12\n", "output": "1\n"}, {"type": "stdin_stdout", "input": "1 43\n", "output": "10\n"}, {"type": "stdin_stdout", "input": "11 15\n", "output": "1\n"}, {"type": "stdin_stdout", "input": "11 16\n", "output": "1\n"}, {"ty...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nVladik often travels by trains. ...
[{"type": "stdin_stdout", "input": "100\n931 4584 2116 3004 3813 62 2819 2998 2080 4906 3198 2443 2952 3793 1958 3864 3985 3169 3134 4011 4525 995 4163 308 4362 1148 4906 3092 1647 244 1370 1424 2753 84 2997 1197 2606 425 3501 2606 683 4747 3884 4787 2166 3017 3080 4303 3352 1667 2636 3994 757 2388 870 1788 988 1303 0 ...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nVasya is studying number theory....
[{"type": "stdin_stdout", "input": "999999999989 999999999988\n", "output": "999999999988\n"}, {"type": "stdin_stdout", "input": "999999999958 999999999957\n", "output": "499999999979\n"}, {"type": "stdin_stdout", "input": "414654652183 366894205623\n", "output": "366894205623\n"}, {"type": "stdin_stdout", "input": "48...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nFor a given positive integer n d...
[{"type": "stdin_stdout", "input": "1005856822 8\n", "output": "50292841100000000\n"}, {"type": "stdin_stdout", "input": "1522186596 8\n", "output": "38054664900000000\n"}, {"type": "stdin_stdout", "input": "123456789 8\n", "output": "12345678900000000\n"}, {"type": "stdin_stdout", "input": "999999997 8\n", "output": "...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nVasya has a graph containing bot...
[{"type": "stdin_stdout", "input": "14 19 14\n2 5 7\n1 4 1\n2 9 8\n1 7 3\n2 14 2\n2 2 8\n2 6 7\n2 14 7\n1 7 8\n2 10 8\n2 11 10\n2 11 7\n2 3 13\n1 5 4\n1 14 8\n2 3 1\n2 6 1\n2 6 10\n2 8 1\n", "output": "13\n--++-+-+-+++++\n2\n-+-+--++-++++-"}, {"type": "stdin_stdout", "input": "14 19 14\n2 5 7\n1 4 1\n2 9 8\n1 7 3\n2 14...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nTwo bears are playing tic-tac-to...
[{"type": "stdin_stdout", "input": "xoo x.. x..\nooo ... ...\nooo ... ...\n\nx.. x.. x..\n... ... ...\n... ... ...\n\nx.. x.. x..\n... ... ...\n... ... ...\n7 4\n", "output": "xoo x!! x!! \nooo !!! !!! \nooo !!! !!! \n\nx!! x!! x!! \n!!! !!! !!! \n!!! !!! !!! \n\nx!! x!! x!! \n!!! !!! !!! \n!!! !!! !!! \n\n"}, {"type":...
code_stdio
[ { "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nPolycarp has a strict daily sche...
[{"type": "stdin_stdout", "input": "70\n03:33\n23:36\n03:16\n18:18\n06:36\n06:58\n17:27\n04:07\n14:39\n15:53\n17:09\n05:16\n20:28\n09:34\n02:41\n14:18\n20:00\n04:14\n00:25\n20:18\n16:34\n10:13\n21:45\n11:08\n16:19\n20:50\n03:08\n05:06\n02:08\n02:51\n15:16\n11:02\n18:13\n18:35\n00:04\n08:50\n06:12\n20:16\n12:05\n04:01\n...
code_stdio