Dataset Viewer
Auto-converted to Parquet Duplicate
question_id
stringlengths
8
10
question
stringlengths
265
8.2k
starter_code
stringclasses
1 value
inputs
large_stringlengths
2
2k
outputs
large_stringlengths
2
78.4M
seed_15504
John gave Jack a very hard problem. He wrote a very big positive integer A0 on a piece of paper. The number is less than 10200000 . In each step, Jack is allowed to put ' + ' signs in between some of the digits (maybe none) of the current number and calculate the sum of the expression. He can perform the same procedure...
["4\r\n5806\r\n", "23\r\n99999999999991999999999\r\n", "3\r\n199\r\n", "3\r\n289\r\n", "1\r\n1\r\n"]
["5+8+0+6\r\n1+9\r\n1+0\r\n", "9+9+9+9+9+9+9+9+9+9+9+9+9+1+9+9+9+9+9+9+9+9+9\r\n1+99\r\n1+0+0\r\n", "1+9+9\r\n1+9\r\n1+0\r\n", "2+8+9\r\n1+9\r\n1+0\r\n", "1\r\n1\r\n1\r\n"]
seed_8115
Due to the recent popularity of the Deep learning new countries are starting to look like Neural Networks. That is, the countries are being built deep with many layers, each layer possibly having many cities. They also have one entry, and one exit point. There are exactly L layers, each having N cities. Let us look at...
["5 4 3\r\n2 1 0 1 2\r\n0 1 2 1 0\r\n1 2 1 0 2\r\n", "3 2 2\r\n0 1 0\r\n0 0 1\r\n1 1 0\r\n", "2 4 5\r\n1 1\r\n1 1\r\n1 1\r\n", "1 1234 5\r\n1\r\n1\r\n1\r\n", "2 3 13\r\n4 6\r\n2 1\r\n3 4\r\n"]
["209", "3", "16", "1", "2"]
seed_5697
Bill is a famous mathematician in BubbleLand. Thanks to his revolutionary math discoveries he was able to make enough money to build a beautiful house. Unfortunately, for not paying property tax on time, court decided to punish Bill by making him lose a part of his property. Bill’s property can be observed as a convex...
["5\r\n1 2 3 0 4\r\n", "10\r\n4 9 7 2 3 5 6 1 8 0\r\n", "3\r\n0 1 2\r\n", "10\r\n0 1 2 3 4 5 6 7 8 9\r\n", "17\r\n0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16\r\n", "2\r\n1 0\r\n", "17\r\n7 10 12 11 13 0 9 6 4 2 15 3 5 8 14 16 1\r\n", "17\r\n5 13 12 8 4 7 15 6 0 1 2 10 9 14 3 16 11\r\n", "10\r\n1 7 3 6 8 2 4 5 0 9\r\n"]
["1 3 0 2 4\r\n", "8 9 6 1 4 7 2 5 3 0\r\n", "0 2 1\r\n", "0 1 2 3 5 6 7 8 9 4\r\n", "0 1 2 3 4 5 6 7 9 10 11 12 13 14 15 16 8\r\n", "1 0\r\n", "8 12 14 15 6 3 7 4 0 9 11 2 5 13 16 10 1\r\n", "8 15 11 5 3 13 12 2 0 1 4 9 14 7 10 16 6\r\n", "2 6 5 9 7 1 4 0 3 8\r\n"]
seed_25322
The competitors of Bubble Cup X gathered after the competition and discussed what is the best way to get to know the host country and its cities. After exploring the map of Serbia for a while, the competitors came up with the following facts: the country has V cities which are indexed with numbers from 1 to V, and the...
["6 7 5 4\r\n5 5 2 2 5\r\n1 3 3\r\n1 5 2\r\n1 6 5\r\n2 5 4\r\n2 6 7\r\n3 4 11\r\n3 5 3\r\n", "5 6 4 1\r\n4 4 4 4\r\n5 4 40\r\n3 2 989\r\n1 2 29\r\n4 3 18\r\n2 5 697\r\n4 3 51\r\n", "15 6 9 8\r\n3 4 2 7 7 4 3 3 2\r\n13 2 9569\r\n15 1 8936\r\n12 5 3842\r\n13 4 5637\r\n12 2 8406\r\n7 2 667\r\n", "15 1 2 2\r\n5 5\r\n15 14 ...
["3", "0", "-1", "-1"]
seed_15509
John has just bought a new car and is planning a journey around the country. Country has N cities, some of which are connected by bidirectional roads. There are N - 1 roads and every city is reachable from any other city. Cities are labeled from 1 to N. John first has to select from which city he will start his journe...
["2\r\n1 2\r\n"]
["4\r\n"]
seed_7199
"Consider an array A with N elements, all being the same integer a.\n\nDefine the product transforma(...TRUNCATED)
"[\"2 2 2 7\\r\\n\", \"1 1 19 1877058\\r\\n\", \"5 10 19 1877058\\r\\n\", \"10 5 16 7215895\\r\\n\",(...TRUNCATED)
"[\"1 2 \", \"19 \", \"19 1 19 1 19 \", \"4058941 4058941 4058941 4058941 4058941 2508651 65536 1048(...TRUNCATED)
seed_23609
"Smith wakes up at the side of a dirty, disused bathroom, his ankle chained to pipes. Next to him is(...TRUNCATED)
[]
[]
seed_25279
"The citizens of BubbleLand are celebrating their 10th anniversary so they decided to organize a big(...TRUNCATED)
"[\"3 3\\r\\n5 5\\r\\n3 7\\r\\n0 0\\r\\n\", \"4 3\\r\\n1000 500\\r\\n1000 1500\\r\\n999 1501\\r\\n20(...TRUNCATED)
["10.00\r\n", "500000.00\r\n", "12.50\r\n", "0.00\r\n"]
seed_28911
"This story is happening in a town named BubbleLand. There are n houses in BubbleLand. In each of th(...TRUNCATED)
"[\"4\\r\\n0 1 1 1\\r\\n2 5 8 4\\r\\n1 4\\r\\n2 4\\r\\n3 4\\r\\n6\\r\\n2 3\\r\\n1 3\\r\\n3 4\\r\\n1 (...TRUNCATED)
["0\r\n0\r\n0\r\n0\r\n0\r\n0\r\n"]
seed_34609
"You are given an integer $$$x$$$ of $$$n$$$ digits $$$a_1, a_2, \\ldots, a_n$$$, which make up its (...TRUNCATED)
"[\"4 2\\r\\n1011\\r\\n\", \"8 4\\r\\n11891198\\r\\n\", \"4 2\\r\\n2829\\r\\n\", \"6 3\\r\\n989999\\(...TRUNCATED)
"[\"4\\r\\n1111\\r\\n\", \"8\\r\\n11901190\\r\\n\", \"4\\r\\n2929\\r\\n\", \"6\\r\\n990990\\r\\n\", (...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
58