2020 ICPC, COMPFEST 12, Indonesia Multi-Provincial Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred)

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
1425 2020 ICPC, COMPFEST 12, Indonesia Multi-Provincial Contest (Unrated, Online Mirror, ICPC Rules, Teams Preferred) FINISHED False 18000 130640399 Sept. 27, 2020, 5 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 968 ) E Excitation of Atoms PROGRAMMING greedy implementation 2200

B"Mr. Chanek is currently participating in a science fair that is popular in town. He finds an exciting puzzle in the fair and wants to solve it. There are N atoms numbered from 1 to N . These atoms are especially quirky. Initially, each atom is in normal state. Each atom can be in an excited. Exciting atom i requires D_i energy. When atom i is excited, it will give A_i energy. You can excite any number of atoms (including zero). These atoms also form a peculiar one-way bond. For each i , (1 <= i < N) , if atom i is excited, atom E_i will also be excited at no cost. Initially, E_i = i+1 . Note that atom N cannot form a bond to any atom. Mr. Chanek must change exactly K bonds. Exactly K times, Mr. Chanek chooses an atom i , (1 <= i < N) and changes E_i to a different value other than i and the current E_i . Note that an atom's bond can remain unchanged or changed more than once. Help Mr. Chanek determine the maximum energy that he can achieve! note: You must first change exactly K bonds before you can start exciting atoms. The first line contains two integers N K (4 <= N <= 10^5, 0 <= K < N) , the number of atoms, and the number of bonds that must be changed. The second line contains N integers A_i (1 <= A_i <= 10^6) , which denotes the energy given by atom i when on excited state. The third line contains N integers D_i (1 <= D_i <= 10^6) , which denotes the energy needed to excite atom i . A line with an integer that denotes the maximum number of energy that Mr. Chanek can get. An optimal solution to change E_5 to 1 and then excite atom 5 with energy 1. It will cause atoms 1, 2, 3, 4, 5 be excited. The total energy gained by Mr. Chanek is (5 + 6 + 7 + 8 + 10) - 1 = 35. Another possible way is to change E_3 to 1 and then exciting atom 3 (which will excit"...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
93928179 LJC00118 xay5421 Sooke E Sept. 27, 2020, 6:42 a.m. OK GNU C++11 TESTS 55 31 1228800 2200
93929554 cwb_sb -zzy- myx12345 E Sept. 27, 2020, 6:58 a.m. OK GNU C++11 TESTS 55 31 2252800 2200
94039943 yuzhechuan E Sept. 28, 2020, 1:19 a.m. OK GNU C++11 TESTS 55 31 3993600 2200
93934930 yuzhechuan hzk_cpp E Sept. 27, 2020, 8:03 a.m. OK GNU C++11 TESTS 55 31 3993600 2200
93936170 sunzihao E Sept. 27, 2020, 8:18 a.m. OK GNU C++11 TESTS 55 31 4812800 2200
93931520 Kylin_ LiuYu_penguin xblakioi E Sept. 27, 2020, 7:22 a.m. OK GNU C++11 TESTS 55 31 5734400 2200
93932074 ChthollyNotaSeniorious leukocyte 9baka_Cirno E Sept. 27, 2020, 7:29 a.m. OK GNU C++11 TESTS 55 46 3788800 2200
93934851 thecold hs-black jzp E Sept. 27, 2020, 8:02 a.m. OK GNU C++11 TESTS 55 46 4096000 2200
93939447 chenkehan 20050901 E Sept. 27, 2020, 8:57 a.m. OK GNU C++11 TESTS 55 46 4812800 2200
93932652 ght5160 lys013 XiaoTaoTao E Sept. 27, 2020, 7:35 a.m. OK GNU C++11 TESTS 55 46 8192000 2200
93933144 Anthem BeNoble Weierstrass E Sept. 27, 2020, 7:41 a.m. OK GNU C++14 TESTS 55 31 4915200 2200
93939127 anirudh_achal DeltaCube23 Dragonado E Sept. 27, 2020, 8:53 a.m. OK GNU C++14 TESTS 55 62 2457600 2200
93935494 shirakami.rin E Sept. 27, 2020, 8:10 a.m. OK GNU C++14 TESTS 55 62 2662400 2200
93955590 adarsh7777 E Sept. 27, 2020, 12:27 p.m. OK GNU C++14 TESTS 55 62 3174400 2200
93933596 100gods aditigoel jenishmonpara E Sept. 27, 2020, 7:47 a.m. OK GNU C++14 TESTS 55 62 3993600 2200
93939888 AmdSadi gusion Mujahid E Sept. 27, 2020, 9:02 a.m. OK GNU C++14 TESTS 55 62 4812800 2200
93935636 shukun mr_chen116 QuteMelon E Sept. 27, 2020, 8:12 a.m. OK GNU C++14 TESTS 55 77 2252800 2200
94031359 maverick16 E Sept. 27, 2020, 8:11 p.m. OK GNU C++14 TESTS 55 77 3174400 2200
93962859 rahulmysuru7 E Sept. 27, 2020, 1:56 p.m. OK GNU C++14 TESTS 55 77 3174400 2200
93931969 theStaticMind E Sept. 27, 2020, 7:28 a.m. OK GNU C++14 TESTS 55 77 3993600 2200
93938579 Lenstar Qingyu Samsara_soul E Sept. 27, 2020, 8:47 a.m. OK GNU C++17 TESTS 55 31 7680000 2200
93962005 StarFlux E Sept. 27, 2020, 1:45 p.m. OK GNU C++17 TESTS 55 62 1638400 2200
93935289 wennitao applese E Sept. 27, 2020, 8:08 a.m. OK GNU C++17 TESTS 55 62 1638400 2200
93930469 wiwitrifai E Sept. 27, 2020, 7:08 a.m. OK GNU C++17 TESTS 55 62 1638400 2200
93933234 GoFire VibrantY Louie_king E Sept. 27, 2020, 7:42 a.m. OK GNU C++17 TESTS 55 62 2048000 2200
94041585 hsez E Sept. 28, 2020, 2:14 a.m. OK GNU C++17 TESTS 55 62 3174400 2200
94023466 lts_ E Sept. 27, 2020, 5:59 p.m. OK GNU C++17 TESTS 55 62 3276800 2200
94037755 BrainFreeze E Sept. 27, 2020, 11:50 p.m. OK GNU C++17 TESTS 55 62 5529600 2200
94047364 pulkitverma8720 E Sept. 28, 2020, 4:33 a.m. OK GNU C++17 TESTS 55 62 7270400 2200
93995588 zzc123 E Sept. 27, 2020, 3:55 p.m. OK GNU C++17 TESTS 55 62 7270400 2200
93925973 QAQAutoMaton E Sept. 27, 2020, 6:17 a.m. OK GNU C++17 (64) TESTS 55 31 5836800 2200
93933723 kuticpcer kutcoder E Sept. 27, 2020, 7:48 a.m. OK GNU C++17 (64) TESTS 55 46 2457600 2200
93939635 _Kkura_ E Sept. 27, 2020, 8:59 a.m. OK GNU C++17 (64) TESTS 55 46 3174400 2200
93942150 asd111 Cinque paradox E Sept. 27, 2020, 9:28 a.m. OK GNU C++17 (64) TESTS 55 46 3993600 2200
93929596 Heltion E Sept. 27, 2020, 6:59 a.m. OK GNU C++17 (64) TESTS 55 46 3993600 2200
93924746 kotamanegi E Sept. 27, 2020, 6:03 a.m. OK GNU C++17 (64) TESTS 55 46 4198400 2200
93953145 c0nQuEr0r E Sept. 27, 2020, 11:56 a.m. OK GNU C++17 (64) TESTS 55 46 4812800 2200
93943293 Yoav Omer223 lior5654 E Sept. 27, 2020, 9:42 a.m. OK GNU C++17 (64) TESTS 55 46 12800000 2200
93934783 jhzjk froggyzhang AutumnKite E Sept. 27, 2020, 8:01 a.m. OK GNU C++17 (64) TESTS 55 46 18432000 2200
93932890 Fly_37 w0nsh E Sept. 27, 2020, 7:38 a.m. OK GNU C++17 (64) TESTS 55 61 819200 2200
93935036 azukun E Sept. 27, 2020, 8:05 a.m. OK Mono C# TESTS 55 124 26419200 2200
93928879 tatyam riantkb idsigma E Sept. 27, 2020, 6:50 a.m. OK Mono C# TESTS 55 436 37990400 2200
93924300 FlakeLCR Gilwall conqueror_of_tourist E Sept. 27, 2020, 5:58 a.m. OK PyPy 3 TESTS 55 296 13107200 2200
93934355 naniwazu otera E Sept. 27, 2020, 7:56 a.m. OK PyPy 3 TESTS 55 374 27545600 2200
93967049 dominator1234 E Sept. 27, 2020, 2:29 p.m. OK PyPy 3 TESTS 55 389 23142400 2200
93967016 anshujha123 E Sept. 27, 2020, 2:29 p.m. OK PyPy 3 TESTS 55 389 23142400 2200
94048245 sh1194 E Sept. 28, 2020, 4:51 a.m. OK Python 3 TESTS 55 265 9728000 2200
94048168 sh1194 E Sept. 28, 2020, 4:49 a.m. OK Python 3 TESTS 55 280 9728000 2200
93930366 sansen E Sept. 27, 2020, 7:07 a.m. OK Rust TESTS 55 140 17920000 2200

remove filters

Back to search problems