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 199913124 Sept. 22, 2018, 10:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3158 ) C Space Formula PROGRAMMING greedy 1500

B"Formula 1 officials decided to introduce new competition. Cars are replaced by space ships and number of points awarded can differ per race. Given the current ranking in the competition and points distribution for the next race, your task is to calculate the best possible ranking for a given astronaut after the next race. It's guaranteed that given astronaut will have unique number of points before the race. The first line contains two integer numbers N ( 1 <= q N <= q 200000 ) representing number of F1 astronauts, and current position of astronaut D ( 1 <= q D <= q N ) you want to calculate best ranking for (no other competitor will have the same number of points before the race). The second line contains N integer numbers S_k ( 0 <= q S_k <= q 10^8 , k=1...N ), separated by a single space, representing current ranking of astronauts. Points are sorted in non-increasing order. The third line contains N integer numbers P_k ( 0 <= q P_k <= q 10^8 , k=1...N ), separated by a single space, representing point awards for the next race. Points are sorted in non-increasing order, so winner of the race gets the maximum number of points. Output contains one integer number -- the best possible ranking for astronaut after the race. If multiple astronauts have the same score after the race, they all share the best ranking. If the third ranked astronaut wins the race, he will have 35 points. He cannot take the leading position, but he can overtake the second position if the second ranked astronaut finishes the race at the last position. "...

Tutorials

E

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
51383022 ruban C March 16, 2019, 5:17 p.m. OK Delphi TESTS 30 124 41779200 1500
43245327 PAG C Sept. 22, 2018, 11:14 a.m. OK FPC TESTS 30 93 1638400 1500
48432038 binarmo C Jan. 15, 2019, 6 p.m. OK FPC TESTS 30 109 1638400 1500
43294952 PiMat C Sept. 23, 2018, 12:56 p.m. OK FPC TESTS 30 109 3174400 1500
43257196 PandaIsTheBest C Sept. 22, 2018, 1:49 p.m. OK FPC TESTS 30 109 3174400 1500
45410503 Jousero C Nov. 7, 2018, 11:52 a.m. OK GNU C11 TESTS 30 93 1638400 1500
43266380 patilc125 C Sept. 22, 2018, 4:40 p.m. OK GNU C11 TESTS 30 93 1638400 1500
43279839 Akramcso C Sept. 23, 2018, 4:17 a.m. OK GNU C11 TESTS 30 93 1638400 1500
43495259 a.zbakh C Sept. 27, 2018, 2:23 p.m. OK GNU C11 TESTS 30 93 1638400 1500
43254101 diordhd C Sept. 22, 2018, 1:03 p.m. OK GNU C11 TESTS 30 93 1945600 1500
43273284 mohitsharma C Sept. 22, 2018, 8:24 p.m. OK GNU C11 TESTS 30 108 3174400 1500
43291854 Ayaz_Ahmed C Sept. 23, 2018, 11:16 a.m. OK GNU C11 TESTS 30 109 1945600 1500
43647723 Timely_Rain C Oct. 1, 2018, 2:24 p.m. OK GNU C++11 TESTS 30 31 1433600 1500
53497454 luogu_bot4 C April 29, 2019, 12:33 p.m. OK GNU C++11 TESTS 30 31 1433600 1500
47779530 luogu_bot1 C Dec. 31, 2018, 7:06 a.m. OK GNU C++11 TESTS 30 31 1638400 1500
45155295 dawnstars C Nov. 1, 2018, 12:24 a.m. OK GNU C++11 TESTS 30 31 1638400 1500
43339913 tokitsukaze C Sept. 23, 2018, 5:18 p.m. OK GNU C++11 TESTS 30 31 1740800 1500
43293277 luogu_bot2 C Sept. 23, 2018, 11:57 a.m. OK GNU C++11 TESTS 30 31 1945600 1500
43256901 Rhok_delar C Sept. 22, 2018, 1:45 p.m. OK GNU C++11 TESTS 30 31 1945600 1500
43247033 Anthem C Sept. 22, 2018, 11:33 a.m. OK GNU C++11 TESTS 30 31 2457600 1500
49551950 stones C Feb. 7, 2019, 6:44 a.m. OK GNU C++11 TESTS 30 46 1433600 1500
49553080 fakimaker C Feb. 7, 2019, 7:37 a.m. OK GNU C++11 TESTS 30 46 1433600 1500
43288750 TO_OO_InBlue C Sept. 23, 2018, 9:36 a.m. OK GNU C++14 TESTS 30 93 1536000 1500
43251642 utokyo C Sept. 22, 2018, 12:29 p.m. OK GNU C++14 TESTS 30 93 1536000 1500
46573055 HavlongRG C Dec. 4, 2018, 7:05 a.m. OK GNU C++14 TESTS 30 93 1638400 1500
45510556 vjudge5 C Nov. 10, 2018, 12:48 p.m. OK GNU C++14 TESTS 30 93 1638400 1500
45510541 printfok C Nov. 10, 2018, 12:47 p.m. OK GNU C++14 TESTS 30 93 1638400 1500
45471111 GOODBYE2019 Lgq_3de5 LP_Cong C Nov. 9, 2018, 9:42 a.m. OK GNU C++14 TESTS 30 93 1638400 1500
43246277 vionicbest C Sept. 22, 2018, 11:25 a.m. OK GNU C++14 TESTS 30 93 1843200 1500
43252286 m4h C Sept. 22, 2018, 12:38 p.m. OK GNU C++14 TESTS 30 93 1945600 1500
45124341 celestials C Oct. 31, 2018, 7:06 a.m. OK GNU C++14 TESTS 30 108 1638400 1500
47957318 Kamal1998 C Jan. 5, 2019, 7:08 a.m. OK GNU C++14 TESTS 30 108 1638400 1500
43258943 SolitaryWayfarer C Sept. 22, 2018, 2:15 p.m. OK GNU C++17 TESTS 30 31 1945600 1500
44066378 F.J C Oct. 10, 2018, 9:34 a.m. OK GNU C++17 TESTS 30 31 8089600 1500
44066544 F.J C Oct. 10, 2018, 9:40 a.m. OK GNU C++17 TESTS 30 46 8089600 1500
44096879 zdw1999 C Oct. 11, 2018, 1:47 a.m. OK GNU C++17 TESTS 30 77 174387200 1500
43584280 rushabh1 C Sept. 29, 2018, 7:04 p.m. OK GNU C++17 TESTS 30 93 1536000 1500
45505046 onlyLG C Nov. 10, 2018, 9:59 a.m. OK GNU C++17 TESTS 30 93 1536000 1500
45511790 vjudge2 C Nov. 10, 2018, 1:25 p.m. OK GNU C++17 TESTS 30 93 1536000 1500
43258334 7hits C Sept. 22, 2018, 2:06 p.m. OK GNU C++17 TESTS 30 93 1843200 1500
63103380 mrityun_mahat C Oct. 22, 2019, 2:41 a.m. OK GNU C++17 TESTS 30 93 5120000 1500
69609473 guanhuhao C Jan. 27, 2020, 10:58 a.m. OK GNU C++17 TESTS 30 108 1638400 1500
44765225 mishagam C Oct. 24, 2018, 9:26 a.m. OK Go TESTS 30 77 5324800 1500
43530250 zh9314 C Sept. 28, 2018, 1:14 p.m. OK Go TESTS 30 93 9728000 1500
43247836 LAKOUAM_IMAD ISSAM_LAKOUAM C Sept. 22, 2018, 11:42 a.m. OK Java 8 TESTS 30 139 0 1500
43662415 bhautik_77 C Oct. 1, 2018, 7:52 p.m. OK Java 8 TESTS 30 170 0 1500
47437202 Kharouba C Dec. 23, 2018, 7:55 p.m. OK Java 8 TESTS 30 171 9318400 1500
43248752 apurvaj C Sept. 22, 2018, 11:53 a.m. OK Java 8 TESTS 30 186 0 1500
51907688 BotonAmarillo C March 27, 2019, 4:26 p.m. OK Java 8 TESTS 30 186 7680000 1500
43247699 wery0 C Sept. 22, 2018, 11:41 a.m. OK Java 8 TESTS 30 187 0 1500
66207362 Blastman C Dec. 3, 2019, 4:17 a.m. OK Java 8 TESTS 30 187 9318400 1500
43517385 suhail25 C Sept. 28, 2018, 5:58 a.m. OK Java 8 TESTS 30 217 12697600 1500
43247425 wadissimo C Sept. 22, 2018, 11:38 a.m. OK Java 8 TESTS 30 218 3276800 1500
43253586 janek2 C Sept. 22, 2018, 12:56 p.m. OK Java 8 TESTS 30 218 7577600 1500
60419529 XinLoiNguoi C Sept. 12, 2019, 5:03 a.m. OK Kotlin TESTS 30 702 10854400 1500
56670785 og.kostya C July 7, 2019, 1:01 p.m. OK Mono C# TESTS 30 77 1536000 1500
43246897 Roverandom C Sept. 22, 2018, 11:32 a.m. OK Mono C# TESTS 30 202 42086400 1500
43248284 eki C Sept. 22, 2018, 11:48 a.m. OK Mono C# TESTS 30 218 31948800 1500
45505057 vjudge2 C Nov. 10, 2018, 9:59 a.m. OK MS C++ TESTS 30 62 1638400 1500
44904599 jobsDone C Oct. 26, 2018, 10:49 a.m. OK MS C++ TESTS 30 77 1638400 1500
45546959 ye2000song C Nov. 11, 2018, 2:48 a.m. OK MS C++ TESTS 30 77 1638400 1500
45546924 vjudge1 C Nov. 11, 2018, 2:45 a.m. OK MS C++ TESTS 30 78 1638400 1500
45512899 vjudge5 C Nov. 10, 2018, 2:02 p.m. OK MS C++ TESTS 30 78 1638400 1500
43243602 Volpe Omnia.Saleh Hassanosama C Sept. 22, 2018, 10:56 a.m. OK MS C++ TESTS 30 78 2252800 1500
45446010 Houbunsha C Nov. 8, 2018, 1:26 p.m. OK MS C++ TESTS 30 93 1638400 1500
43831054 scorpiowf C Oct. 5, 2018, 2:02 p.m. OK MS C++ TESTS 30 93 1638400 1500
43249741 GomBu C Sept. 22, 2018, 12:05 p.m. OK MS C++ TESTS 30 93 1945600 1500
44167427 vjudge4 C Oct. 12, 2018, 2:56 a.m. OK MS C++ TESTS 30 93 2457600 1500
57594722 CtrlAlt C July 23, 2019, 1:32 p.m. OK MS C++ 2017 TESTS 30 124 1638400 1500
62871552 pmitkov C Oct. 18, 2019, 1:56 p.m. OK MS C++ 2017 TESTS 30 140 4812800 1500
45502648 KGYYT C Nov. 10, 2018, 8:33 a.m. OK PascalABC.NET TESTS 30 265 6144000 1500
43244913 Lucky_cat777 C Sept. 22, 2018, 11:10 a.m. OK PascalABC.NET TESTS 30 265 10137600 1500
43245774 OpKos C Sept. 22, 2018, 11:20 a.m. OK PascalABC.NET TESTS 30 280 6348800 1500
43245374 rsFalse C Sept. 22, 2018, 11:15 a.m. OK Perl TESTS 30 249 39936000 1500
45679804 mayakin C Nov. 13, 2018, 2:51 p.m. OK PHP TESTS 30 171 39936000 1500
43367794 SerChirag C Sept. 24, 2018, 1:07 p.m. OK PyPy 2 TESTS 30 202 17305600 1500
45223123 c1729 C Nov. 2, 2018, 11:49 p.m. OK PyPy 2 TESTS 30 202 22937600 1500
46942903 FireFoxIl C Dec. 12, 2018, 5:50 p.m. OK PyPy 3 TESTS 30 358 18841600 1500
47793524 HeyLaCC C Dec. 31, 2018, 3:03 p.m. OK PyPy 3 TESTS 30 358 22528000 1500
43822240 throwaway_account C Oct. 5, 2018, 9:48 a.m. OK PyPy 3 TESTS 30 420 20070400 1500
43259909 organizize C Sept. 22, 2018, 2:30 p.m. OK PyPy 3 TESTS 30 421 32051200 1500
43268497 LordVader C Sept. 22, 2018, 5:40 p.m. OK PyPy 3 TESTS 30 436 20582400 1500
43244249 Paixao C Sept. 22, 2018, 11:03 a.m. OK PyPy 3 TESTS 30 436 22528000 1500
60245978 codeboy5 C Sept. 8, 2019, 2:40 a.m. OK PyPy 3 TESTS 30 467 19148800 1500
43248716 sandy2008chen C Sept. 22, 2018, 11:53 a.m. OK PyPy 3 TESTS 30 467 19148800 1500
43534343 wangkan2001 C Sept. 28, 2018, 2:44 p.m. OK Python 2 TESTS 30 436 15564800 1500
43256493 mihir_94 C Sept. 22, 2018, 1:39 p.m. OK Python 2 TESTS 30 467 15052800 1500
43271708 thaoprogrammer C Sept. 22, 2018, 7:19 p.m. OK Python 2 TESTS 30 499 16998400 1500
43268822 ruchit2801 C Sept. 22, 2018, 5:49 p.m. OK Python 2 TESTS 30 514 15052800 1500
43650149 noob77777 C Oct. 1, 2018, 3:22 p.m. OK Python 2 TESTS 30 530 24371200 1500
47731991 xiejunzhong2000 C Dec. 30, 2018, 2:43 p.m. OK Python 3 TESTS 30 265 18022400 1500
47877778 Ooops_no C Jan. 3, 2019, 4:26 p.m. OK Python 3 TESTS 30 296 18329600 1500
43244709 Bamal C Sept. 22, 2018, 11:07 a.m. OK Python 3 TESTS 30 296 18636800 1500
43410564 catch_up C Sept. 25, 2018, 1:18 p.m. OK Python 3 TESTS 30 296 18739200 1500
47624036 nowyyz C Dec. 28, 2018, 2:11 p.m. OK Python 3 TESTS 30 311 18022400 1500
43530740 rithwik27 C Sept. 28, 2018, 1:25 p.m. OK Python 3 TESTS 30 311 18636800 1500
43529077 gin_7 C Sept. 28, 2018, 12:46 p.m. OK Python 3 TESTS 30 311 18739200 1500
43255226 arikpamnani C Sept. 22, 2018, 1:20 p.m. OK Python 3 TESTS 30 326 18329600 1500
43589817 SirBarbouchii C Sept. 29, 2018, 11:53 p.m. OK Python 3 TESTS 30 326 19148800 1500
43246958 prey176 C Sept. 22, 2018, 11:33 a.m. OK Python 3 TESTS 30 327 18329600 1500
43694119 yakamoto C Oct. 2, 2018, 3:42 p.m. OK Scala TESTS 30 685 11776000 1500

remove filters

Back to search problems