Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
---|---|---|---|---|---|---|
653 | IndiaHacks 2016 - Online Edition (Div. 1 + Div. 2) | FINISHED | False | 7200 | 273446699 | March 19, 2016, 8:35 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 557 ) | G | Move by Prime | PROGRAMMING | combinatorics math number theory | 3000 |
B"Pussycat Sonya has an array consisting of n positive integers. There are 2n possible subsequences of the array. For each subsequence she counts the minimum number of operations to make all its elements equal. Each operation must be one of two: What is the sum of minimum number of operations for all 2n possible subsequences? Find and print this sum modulo 109 xe2 x80 x89+ xe2 x80 x897. The first line of the input contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89300 xe2 x80 x89000) -- the size of the array. The second line contains n integers t1, xe2 x80 x89t2, xe2 x80 x89..., xe2 x80 x89tn (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ti xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89300 xe2 x80 x89000) -- elements of the array. Print the sum of minimum number of operation for all possible subsequences of the given array modulo 109 xe2 x80 x89+ xe2 x80 x897. In the first sample, there are 8 possible subsequences: (60, xe2 x80 x8960, xe2 x80 x8940), (60, xe2 x80 x8960), (60, xe2 x80 x8940), (60, xe2 x80 x8940), (60), (60), (40) and () (empty subsequence). For a subsequence (60, xe2 x80 x8960, xe2 x80 x8940) we can make all elements equal by two operations -- divide 40 by 2 to get 20, and then multiply 20 by 3 to get 60. It's impossible to achieve the goal using less operations and thus we add 2 to the answer. There are two subsequences equal to (60, xe2 x80 x8940) and for each of them the also need to make at least 2 operations. In each of other subsequences all numbers are already equal, so we need 0 operations for each of them. The sum is equal to 2 xe2 x80 x89+ xe2 x80 x892 xe2 x80 x89+ xe2 x80 x892 xe2 x80 x89= xe2 x80 x896. "... |
IndiaHacks Finals 2016 — Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
23391721 | AkaneSasu | G | Dec. 29, 2016, 6:56 a.m. | OK | GNU C++ | TESTS | 27 | 46 | 11366400 | 3000 | |
40984689 | ReaLNero1 | G | July 30, 2018, 7:31 p.m. | OK | GNU C++ | TESTS | 27 | 93 | 34713600 | 3000 | |
20794263 | jiyutian | G | Sept. 21, 2016, 12:25 p.m. | OK | GNU C++ | TESTS | 27 | 93 | 34713600 | 3000 | |
28350773 | laofudasuan | G | July 7, 2017, 1:58 p.m. | OK | GNU C++ | TESTS | 27 | 108 | 22732800 | 3000 | |
27765937 | WHzy | G | June 14, 2017, 2:10 a.m. | OK | GNU C++ | TESTS | 27 | 109 | 8192000 | 3000 | |
41513953 | Scut82 | G | Aug. 12, 2018, 4:37 a.m. | OK | GNU C++ | TESTS | 27 | 124 | 16384000 | 3000 | |
17521703 | wumaodang | G | April 26, 2016, 12:58 p.m. | OK | GNU C++ | TESTS | 27 | 139 | 14131200 | 3000 | |
27733957 | whfym | G | June 12, 2017, 8:28 a.m. | OK | GNU C++ | TESTS | 27 | 140 | 10956800 | 3000 | |
28366452 | Scut82 | G | July 8, 2017, 10:13 a.m. | OK | GNU C++ | TESTS | 27 | 140 | 18432000 | 3000 | |
27721323 | apt123 | G | June 11, 2017, 1:04 p.m. | OK | GNU C++ | TESTS | 27 | 156 | 17510400 | 3000 | |
48570039 | cxcxccx | G | Jan. 19, 2019, 11:33 a.m. | OK | GNU C++11 | TESTS | 27 | 93 | 18944000 | 3000 | |
44907248 | emoairx | G | Oct. 26, 2018, 12:03 p.m. | OK | GNU C++11 | TESTS | 27 | 109 | 13004800 | 3000 | |
34352283 | snowflake | G | Jan. 20, 2018, 12:21 p.m. | OK | GNU C++11 | TESTS | 27 | 109 | 32460800 | 3000 | |
54511617 | dyxg | G | May 23, 2019, 7:26 a.m. | OK | GNU C++11 | TESTS | 27 | 109 | 33792000 | 3000 | |
47680316 | samjia2000 | G | Dec. 29, 2018, 11:44 a.m. | OK | GNU C++11 | TESTS | 27 | 109 | 40038400 | 3000 | |
55941719 | KMAASZRAA | G | June 22, 2019, 5:03 p.m. | OK | GNU C++11 | TESTS | 27 | 140 | 15052800 | 3000 | |
45373956 | daklqw | G | Nov. 6, 2018, 11:25 a.m. | OK | GNU C++11 | TESTS | 27 | 140 | 18636800 | 3000 | |
17380308 | ershov.stanislav | G | April 18, 2016, 7:03 p.m. | OK | GNU C++11 | TESTS | 27 | 140 | 21401600 | 3000 | |
55478202 | _twilight | G | June 12, 2019, 2:38 a.m. | OK | GNU C++11 | TESTS | 27 | 140 | 22323200 | 3000 | |
16951196 | dreamoon_love_AA | G | March 26, 2016, 9:34 a.m. | OK | GNU C++11 | TESTS | 27 | 156 | 14540800 | 3000 | |
35784038 | cyz666 | G | Feb. 28, 2018, 12:25 p.m. | OK | GNU C++14 | TESTS | 27 | 140 | 18124800 | 3000 | |
27716977 | whzzt | G | June 11, 2017, 7:47 a.m. | OK | GNU C++14 | TESTS | 27 | 155 | 9932800 | 3000 | |
27722880 | whjhr | G | June 11, 2017, 2:58 p.m. | OK | GNU C++14 | TESTS | 27 | 156 | 8499200 | 3000 | |
44819967 | vjudge3 | G | Oct. 25, 2018, 1:11 a.m. | OK | GNU C++14 | TESTS | 27 | 156 | 12083200 | 3000 | |
32514468 | NiroBC | G | Nov. 21, 2017, 2:35 a.m. | OK | GNU C++14 | TESTS | 27 | 171 | 26112000 | 3000 | |
23491608 | ZYQN | G | Jan. 2, 2017, 12:39 a.m. | OK | GNU C++14 | TESTS | 27 | 187 | 37990400 | 3000 | |
45317741 | skylee | G | Nov. 5, 2018, 8:56 a.m. | OK | GNU C++14 | TESTS | 27 | 202 | 13516800 | 3000 | |
46707708 | Hamzqq9 | G | Dec. 7, 2018, 8:16 a.m. | OK | GNU C++14 | TESTS | 27 | 202 | 15155200 | 3000 | |
23391683 | xehoth | G | Dec. 29, 2016, 6:54 a.m. | OK | GNU C++14 | TESTS | 27 | 202 | 20889600 | 3000 | |
45314961 | dwt | G | Nov. 5, 2018, 7:28 a.m. | OK | GNU C++14 | TESTS | 27 | 202 | 29900800 | 3000 | |
54435582 | Romeolong | G | May 21, 2019, 5:10 a.m. | OK | GNU C++17 | TESTS | 27 | 77 | 46182400 | 3000 | |
62070493 | AliShahali1382 | G | Oct. 7, 2019, 4:36 p.m. | OK | GNU C++17 | TESTS | 27 | 171 | 36044800 | 3000 | |
52597496 | Isonan | G | April 11, 2019, 9:58 a.m. | OK | GNU C++17 | TESTS | 27 | 218 | 15257600 | 3000 | |
66531770 | HyscereXD | G | Dec. 9, 2019, 7:44 a.m. | OK | GNU C++17 | TESTS | 27 | 249 | 30105600 | 3000 | |
47439984 | kefaa2 | G | Dec. 23, 2018, 11:06 p.m. | OK | GNU C++17 | TESTS | 27 | 249 | 48332800 | 3000 | |
68749209 | AM. | G | Jan. 14, 2020, 6:03 a.m. | OK | GNU C++17 | TESTS | 27 | 296 | 57753600 | 3000 | |
63719406 | animeFORever | G | Oct. 29, 2019, 10:54 a.m. | OK | GNU C++17 | TESTS | 27 | 374 | 73523200 | 3000 | |
57914749 | Benq | G | July 29, 2019, 12:10 a.m. | OK | GNU C++17 | TESTS | 27 | 405 | 20684800 | 3000 | |
43801251 | KATATONIA | G | Oct. 4, 2018, 5:29 p.m. | OK | GNU C++17 | TESTS | 27 | 420 | 14028800 | 3000 | |
69886632 | egekabas | G | Jan. 31, 2020, 8:27 a.m. | OK | GNU C++17 | TESTS | 27 | 468 | 20070400 | 3000 | |
16814254 | qwerty787788 | G | March 19, 2016, 10:25 a.m. | OK | Java 7 | TESTS | 27 | 452 | 93798400 | 3000 | |
16816743 | mmaxio | G | March 19, 2016, 11:32 a.m. | OK | Java 8 | TESTS | 27 | 420 | 37376000 | 3000 | |
44317505 | vjudge1 | G | Oct. 14, 2018, 1:13 p.m. | OK | MS C++ | TESTS | 27 | 140 | 12390400 | 3000 | |
27720685 | qwsin | G | June 11, 2017, 12:18 p.m. | OK | MS C++ | TESTS | 27 | 202 | 55296000 | 3000 | |
44362074 | vjudge5 | G | Oct. 15, 2018, 3 p.m. | OK | MS C++ | TESTS | 27 | 468 | 13312000 | 3000 | |
44362617 | vjudge1 | G | Oct. 15, 2018, 3:14 p.m. | OK | MS C++ | TESTS | 27 | 468 | 14950400 | 3000 | |
44363679 | vjudge1 | G | Oct. 15, 2018, 3:39 p.m. | OK | MS C++ | TESTS | 27 | 607 | 20787200 | 3000 | |
16813251 | gnomina007 | G | March 19, 2016, 10:10 a.m. | OK | MS C++ | TESTS | 27 | 3104 | 44134400 | 3000 |
Back to search problems