Bubble Cup 11 - Finals [Online Mirror, Div. 2]

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
1046 Bubble Cup 11 - Finals [Online Mirror, Div. 2] FINISHED False 18000 194210699 Sept. 22, 2018, 10:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2795 ) F Splitting money PROGRAMMING implementation 1500

B'After finding and moving to the new planet that supports human life, discussions started on which currency should be used. After long negotiations, Bitcoin was ultimately chosen as the universal currency. These were the great news for Alice, whose grandfather got into Bitcoin mining in 2013, and accumulated a lot of them throughout the years. Unfortunately, when paying something in bitcoin everyone can see how many bitcoins you have in your public address wallet. This worried Alice, so she decided to split her bitcoins among multiple different addresses, so that every address has at most x satoshi (1 bitcoin = 10^8 satoshi). She can create new public address wallets for free and is willing to pay f fee in satoshi per transaction to ensure acceptable speed of transfer. The fee is deducted from the address the transaction was sent from. Tell Alice how much total fee in satoshi she will need to pay to achieve her goal. First line contains number N ( 1 <= q N <= q 200 ,000 ) representing total number of public addresses Alice has. Next line contains N integer numbers a_i ( 1 <= q a_i <= q 10^9 ) separated by a single space, representing how many satoshi Alice has in her public addresses. Last line contains two numbers x , f ( 1 <= q f < x <= q 10^9 ) representing maximum number of satoshies Alice can have in one address, as well as fee in satoshies she is willing to pay per transaction. Output one integer number representing total fee in satoshi Alice will need to pay to achieve her goal. Alice can make two transactions in a following way: 0. 13 7 6 (initial state) 1. 6 7 6 5 (create new address and transfer from first public address 5 satoshies) 2. 6 4 6 5 1 (create new address and transfer from second address 1 satoshi) Since cost per transaction is 2 satoshies, total fee is 4. '...

Tutorials

E

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
43319635 LeoPro F Sept. 23, 2018, 2:07 p.m. OK FPC TESTS 12 62 819200 1500
43376798 mohitsharma F Sept. 24, 2018, 4:51 p.m. OK GNU C11 TESTS 12 62 1638400 1500
43290142 Satnam_412 F Sept. 23, 2018, 10:21 a.m. OK GNU C11 TESTS 12 77 819200 1500
43255417 Subratacse F Sept. 22, 2018, 1:23 p.m. OK GNU C11 TESTS 12 77 1843200 1500
43257485 anmolldh F Sept. 22, 2018, 1:54 p.m. OK GNU C11 TESTS 12 109 1638400 1500
51891417 cloudzay F March 27, 2019, 9:20 a.m. OK GNU C11 TESTS 12 685 1638400 1500
43249840 yunlian F Sept. 22, 2018, 12:07 p.m. OK GNU C++11 TESTS 12 31 819200 1500
45580093 fbsham102 F Nov. 12, 2018, 3:12 a.m. OK GNU C++11 TESTS 12 31 819200 1500
43781988 CYJJJian F Oct. 4, 2018, 10:56 a.m. OK GNU C++11 TESTS 12 31 819200 1500
43781858 CYJJJian F Oct. 4, 2018, 10:53 a.m. OK GNU C++11 TESTS 12 31 819200 1500
43253426 Loi_tttty F Sept. 22, 2018, 12:54 p.m. OK GNU C++11 TESTS 12 31 819200 1500
43249959 huangchengyu F Sept. 22, 2018, 12:08 p.m. OK GNU C++11 TESTS 12 31 819200 1500
43339931 tokitsukaze F Sept. 23, 2018, 5:19 p.m. OK GNU C++11 TESTS 12 31 921600 1500
43488254 luogu_bot4 F Sept. 27, 2018, 11:28 a.m. OK GNU C++11 TESTS 12 31 921600 1500
43248122 CLT F Sept. 22, 2018, 11:46 a.m. OK GNU C++11 TESTS 12 31 921600 1500
43255950 DennyQi F Sept. 22, 2018, 1:31 p.m. OK GNU C++11 TESTS 12 31 1433600 1500
45508862 jslijin F Nov. 10, 2018, 12:01 p.m. OK GNU C++14 TESTS 12 61 819200 1500
43248817 vionicbest F Sept. 22, 2018, 11:54 a.m. OK GNU C++14 TESTS 12 61 819200 1500
58182206 pimpoponut F Aug. 2, 2019, 3:39 p.m. OK GNU C++14 TESTS 12 61 819200 1500
43252633 utokyo F Sept. 22, 2018, 12:43 p.m. OK GNU C++14 TESTS 12 61 1126400 1500
45579973 fbsham102 F Nov. 12, 2018, 3:02 a.m. OK GNU C++14 TESTS 12 62 819200 1500
46149751 chetan52720 F Nov. 24, 2018, 7:50 a.m. OK GNU C++14 TESTS 12 62 819200 1500
51606379 rich_and_yuong F March 21, 2019, 7:40 a.m. OK GNU C++14 TESTS 12 62 819200 1500
65153935 Von. F Nov. 16, 2019, 8:35 a.m. OK GNU C++14 TESTS 12 62 819200 1500
45867381 God_of_Thunder_Unworthy F Nov. 17, 2018, 8:35 a.m. OK GNU C++14 TESTS 12 62 819200 1500
49194094 flying_turtle F Jan. 30, 2019, 9:33 a.m. OK GNU C++14 TESTS 12 62 819200 1500
54224328 LoneBaleine F May 16, 2019, 5:30 a.m. OK GNU C++17 TESTS 12 46 819200 1500
43259923 SolitaryWayfarer F Sept. 22, 2018, 2:30 p.m. OK GNU C++17 TESTS 12 46 1638400 1500
52552422 endereye F April 10, 2019, 5:42 a.m. OK GNU C++17 TESTS 12 61 819200 1500
47683425 OmarAhmed F Dec. 29, 2018, 1:20 p.m. OK GNU C++17 TESTS 12 62 819200 1500
69554172 vjudge3 F Jan. 26, 2020, 7:59 a.m. OK GNU C++17 TESTS 12 62 819200 1500
69554078 guanhuhao F Jan. 26, 2020, 7:56 a.m. OK GNU C++17 TESTS 12 62 819200 1500
69202026 Prosperity F Jan. 20, 2020, 4:51 p.m. OK GNU C++17 TESTS 12 62 819200 1500
59640014 daikimatsu F Aug. 29, 2019, 12:36 a.m. OK GNU C++17 TESTS 12 62 819200 1500
52460441 vjudge4 F April 7, 2019, 1:13 p.m. OK GNU C++17 TESTS 12 62 819200 1500
51481080 vjudge1 F March 19, 2019, 11:37 a.m. OK GNU C++17 TESTS 12 62 819200 1500
47958560 chanbakjsd F Jan. 5, 2019, 7:57 a.m. OK Go TESTS 12 77 5222400 1500
43509607 zh9314 F Sept. 27, 2018, 9:53 p.m. OK Go TESTS 12 77 5324800 1500
47790594 AndreBtt F Dec. 31, 2018, 1:09 p.m. OK Go TESTS 12 78 5222400 1500
43245691 hulk_man F Sept. 22, 2018, 11:18 a.m. OK Java 8 TESTS 12 139 0 1500
43251942 Jay_13 iamyashh F Sept. 22, 2018, 12:33 p.m. OK Java 8 TESTS 12 140 0 1500
43248203 NMouad21 F Sept. 22, 2018, 11:47 a.m. OK Java 8 TESTS 12 140 0 1500
43246275 wery0 F Sept. 22, 2018, 11:25 a.m. OK Java 8 TESTS 12 140 0 1500
43243341 guptautkarsh028 Abhishek_8 F Sept. 22, 2018, 10:52 a.m. OK Java 8 TESTS 12 140 0 1500
43250704 BaZ_ aashrayagarwal F Sept. 22, 2018, 12:18 p.m. OK Java 8 TESTS 12 155 0 1500
43245635 jenish9599 F Sept. 22, 2018, 11:18 a.m. OK Java 8 TESTS 12 155 0 1500
53206688 zmurzagaliev F April 23, 2019, 11:07 p.m. OK Java 8 TESTS 12 155 11673600 1500
47436251 Kharouba F Dec. 23, 2018, 7:13 p.m. OK Java 8 TESTS 12 155 11673600 1500
43244161 AJ47 revpro mittal21 F Sept. 22, 2018, 11:02 a.m. OK Java 8 TESTS 12 170 0 1500
56671138 og.kostya F July 7, 2019, 1:11 p.m. OK Mono C# TESTS 12 62 716800 1500
43710495 eki F Oct. 3, 2018, 3:16 a.m. OK Mono C# TESTS 12 124 26316800 1500
43249004 Roverandom F Sept. 22, 2018, 11:57 a.m. OK Mono C# TESTS 12 124 31436800 1500
43348158 eugeni.popodyanets F Sept. 23, 2018, 10:29 p.m. OK Mono C# TESTS 12 140 31436800 1500
43251178 GomBu F Sept. 22, 2018, 12:23 p.m. OK MS C++ TESTS 12 46 1126400 1500
51482207 vjudge2 F March 19, 2019, 12:03 p.m. OK MS C++ TESTS 12 46 1228800 1500
45443420 Houbunsha F Nov. 8, 2018, 12:15 p.m. OK MS C++ TESTS 12 62 1638400 1500
53709962 vjudge2 F May 3, 2019, 3:05 p.m. OK MS C++ TESTS 12 155 1638400 1500
44043237 DavidDenisov F Oct. 9, 2018, 3:49 p.m. OK MS C++ TESTS 12 171 819200 1500
43245152 yichen0415 F Sept. 22, 2018, 11:12 a.m. OK MS C++ TESTS 12 171 1126400 1500
43264587 skimer2king F Sept. 22, 2018, 3:53 p.m. OK MS C++ TESTS 12 171 1638400 1500
48543127 Timonnable F Jan. 18, 2019, 5:46 p.m. OK MS C++ TESTS 12 171 3481600 1500
53652968 vjudge4 F May 2, 2019, 2:44 a.m. OK MS C++ TESTS 12 171 16076800 1500
43707556 UchihaWise F Oct. 2, 2018, 11:53 p.m. OK MS C++ TESTS 12 186 819200 1500
57594739 CtrlAlt F July 23, 2019, 1:32 p.m. OK MS C++ 2017 TESTS 12 78 819200 1500
50529713 yp0413170331 F Feb. 26, 2019, 1:10 p.m. OK MS C++ 2017 TESTS 12 93 1638400 1500
43247910 OpKos F Sept. 22, 2018, 11:43 a.m. OK PascalABC.NET TESTS 12 187 3686400 1500
43248664 GrumpyMonk Sss...Sleeep HavlongRG F Sept. 22, 2018, 11:52 a.m. OK PascalABC.NET TESTS 12 202 3788800 1500
43293615 mayakin F Sept. 23, 2018, 12:09 p.m. OK PHP TESTS 12 171 20582400 1500
43366404 SerChirag F Sept. 24, 2018, 12:28 p.m. OK PyPy 2 TESTS 12 171 12697600 1500
43586984 masonsbro F Sept. 29, 2018, 8:46 p.m. OK PyPy 2 TESTS 12 576 12800000 1500
47724560 HeyLaCC F Dec. 30, 2018, 1:30 p.m. OK PyPy 3 TESTS 12 280 26726400 1500
47669256 yellowflash F Dec. 29, 2018, 4:19 a.m. OK PyPy 3 TESTS 12 280 26828800 1500
44460921 DedMartyn F Oct. 17, 2018, 8:27 p.m. OK PyPy 3 TESTS 12 295 26726400 1500
43252655 sandy2008chen F Sept. 22, 2018, 12:43 p.m. OK PyPy 3 TESTS 12 327 26828800 1500
43721561 Baby_Tux throwaway_account nobita_doraemon F Oct. 3, 2018, 10:16 a.m. OK PyPy 3 TESTS 12 343 24473600 1500
48443498 AbduSharif F Jan. 16, 2019, 6:04 a.m. OK PyPy 3 TESTS 12 343 26624000 1500
43246008 Paixao F Sept. 22, 2018, 11:22 a.m. OK PyPy 3 TESTS 12 343 26726400 1500
43727652 zhekkua F Oct. 3, 2018, 12:53 p.m. OK PyPy 3 TESTS 12 358 27545600 1500
43267753 LordVader F Sept. 22, 2018, 5:19 p.m. OK PyPy 3 TESTS 12 374 25292800 1500
43688599 ruchit2801 F Oct. 2, 2018, 1:23 p.m. OK PyPy 3 TESTS 12 389 26931200 1500
43530163 wangkan2001 F Sept. 28, 2018, 1:13 p.m. OK Python 2 TESTS 12 311 11059200 1500
43256383 thaoprogrammer F Sept. 22, 2018, 1:38 p.m. OK Python 2 TESTS 12 342 11264000 1500
43257821 mihir_94 F Sept. 22, 2018, 1:59 p.m. OK Python 2 TESTS 12 405 11161600 1500
43250798 yell0wfl4sh ssk497 F Sept. 22, 2018, 12:19 p.m. OK Python 2 TESTS 12 405 11161600 1500
46151749 chetan52720 F Nov. 24, 2018, 8:01 a.m. OK Python 3 TESTS 12 249 13004800 1500
67686216 pranshubansal F Dec. 27, 2019, 9:01 a.m. OK Python 3 TESTS 12 264 14745600 1500
47621417 nowyyz F Dec. 28, 2018, 12:58 p.m. OK Python 3 TESTS 12 264 17715200 1500
43924232 EliasMera F Oct. 7, 2018, 3:34 a.m. OK Python 3 TESTS 12 265 14336000 1500
47170868 Benjaminxiao F Dec. 17, 2018, 2:54 p.m. OK Python 3 TESTS 12 280 18227200 1500
44746170 nizzz F Oct. 23, 2018, 5:01 p.m. OK Python 3 TESTS 12 280 18329600 1500
53788424 gaidash F May 5, 2019, 11:29 a.m. OK Python 3 TESTS 12 280 18432000 1500
68681618 nealzane F Jan. 12, 2020, 10:51 p.m. OK Python 3 TESTS 12 296 14745600 1500
43533138 rithwik27 F Sept. 28, 2018, 2:16 p.m. OK Python 3 TESTS 12 296 17817600 1500
56791868 petushny F July 10, 2019, 10:57 a.m. OK Python 3 TESTS 12 296 18022400 1500
43258186 AnandVeeramani F Sept. 22, 2018, 2:04 p.m. OK Ruby TESTS 12 452 34918400 1500
43687924 yakamoto F Oct. 2, 2018, 1:07 p.m. OK Scala TESTS 12 529 6451200 1500

remove filters

Back to search problems