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.
Problems
B'You have a multiset containing several integers. Initially, it contains a_1 elements equal to 1 , a_2 elements equal to 2 , ..., a_n elements equal to n . You may apply two types of operations: What is the minimum number of operations required to delete all elements from the multiset? The first line contains one integer n ( 1 <= n <= 5000 ). The second line contains n integers a_1 , a_2 , ..., a_n ( 0 <= a_i <= 10^9 ). Print one integer -- the minimum number of operations required to delete all elements from the multiset. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
91141101 |
wuruzhao |
E |
Aug. 27, 2020, 2:27 p.m. |
OK |
GNU C++11 |
TESTS |
43 |
31 |
102400 |
|
|
91639691 |
echozhou |
E |
Sept. 2, 2020, 12:22 p.m. |
OK |
GNU C++11 |
TESTS |
43 |
31 |
204800 |
|
|
91195897 |
wuruzhao |
E |
Aug. 28, 2020, 9:31 a.m. |
OK |
GNU C++11 |
TESTS |
43 |
31 |
204800 |
|
|
91149228 |
jacobtpl |
E |
Aug. 27, 2020, 3:58 p.m. |
OK |
GNU C++11 |
TESTS |
43 |
31 |
204800 |
|
|
91101035 |
huanggs |
E |
Aug. 27, 2020, 3:53 a.m. |
OK |
GNU C++11 |
TESTS |
42 |
31 |
204800 |
|
|
91099124 |
gzrrr |
E |
Aug. 27, 2020, 3 a.m. |
OK |
GNU C++11 |
TESTS |
42 |
31 |
204800 |
|
|
91619266 |
Jar-Boy |
E |
Sept. 2, 2020, 7:05 a.m. |
OK |
GNU C++11 |
TESTS |
43 |
31 |
307200 |
|
|
91573155 |
rising0321 |
E |
Sept. 1, 2020, 2:18 p.m. |
OK |
GNU C++11 |
TESTS |
43 |
31 |
307200 |
|
|
91287759 |
newgate |
E |
Aug. 29, 2020, 1:29 p.m. |
OK |
GNU C++11 |
TESTS |
43 |
31 |
307200 |
|
|
91287714 |
luogu_bot2 |
E |
Aug. 29, 2020, 1:28 p.m. |
OK |
GNU C++11 |
TESTS |
43 |
31 |
307200 |
|
|
91133695 |
myj128128 |
E |
Aug. 27, 2020, 12:45 p.m. |
OK |
GNU C++14 |
TESTS |
43 |
31 |
204800 |
|
|
91547003 |
mohit2598 |
E |
Sept. 1, 2020, 8:02 a.m. |
OK |
GNU C++14 |
TESTS |
43 |
31 |
307200 |
|
|
91697340 |
coding_panda |
E |
Sept. 3, 2020, 7:43 a.m. |
OK |
GNU C++14 |
TESTS |
43 |
31 |
307200 |
|
|
91643130 |
vjudge2 |
E |
Sept. 2, 2020, 1:10 p.m. |
OK |
GNU C++14 |
TESTS |
43 |
31 |
307200 |
|
|
91567894 |
ngot23 |
E |
Sept. 1, 2020, 1:10 p.m. |
OK |
GNU C++14 |
TESTS |
43 |
31 |
307200 |
|
|
91322283 |
joey0320 |
E |
Aug. 30, 2020, 5 a.m. |
OK |
GNU C++14 |
TESTS |
43 |
31 |
307200 |
|
|
91290980 |
zhanghonghe3 |
E |
Aug. 29, 2020, 2:17 p.m. |
OK |
GNU C++14 |
TESTS |
43 |
31 |
307200 |
|
|
91218201 |
madhuekshk3 |
E |
Aug. 28, 2020, 2:43 p.m. |
OK |
GNU C++14 |
TESTS |
43 |
31 |
307200 |
|
|
91184194 |
AsilenceBTF |
E |
Aug. 28, 2020, 6:26 a.m. |
OK |
GNU C++14 |
TESTS |
43 |
31 |
307200 |
|
|
91145470 |
Moririn2528 |
E |
Aug. 27, 2020, 3:16 p.m. |
OK |
GNU C++14 |
TESTS |
43 |
31 |
307200 |
|
|
91187489 |
DYf3244 |
E |
Aug. 28, 2020, 7:22 a.m. |
OK |
GNU C++17 |
TESTS |
43 |
31 |
204800 |
|
|
91182977 |
gyouzasushi |
E |
Aug. 28, 2020, 6:03 a.m. |
OK |
GNU C++17 |
TESTS |
43 |
31 |
204800 |
|
|
91118132 |
muoshuo |
E |
Aug. 27, 2020, 8:56 a.m. |
OK |
GNU C++17 |
TESTS |
43 |
31 |
204800 |
|
|
91678669 |
kamilos1089 |
E |
Sept. 2, 2020, 11:52 p.m. |
OK |
GNU C++17 |
TESTS |
43 |
31 |
204800 |
|
|
91543390 |
Shark |
E |
Sept. 1, 2020, 7:09 a.m. |
OK |
GNU C++17 |
TESTS |
43 |
31 |
307200 |
|
|
91532394 |
Gilgameshx |
E |
Sept. 1, 2020, 2:59 a.m. |
OK |
GNU C++17 |
TESTS |
43 |
31 |
307200 |
|
|
91297177 |
Ghost0fSparta |
E |
Aug. 29, 2020, 3:54 p.m. |
OK |
GNU C++17 |
TESTS |
43 |
31 |
307200 |
|
|
91675203 |
igba |
E |
Sept. 2, 2020, 9:23 p.m. |
OK |
GNU C++17 |
TESTS |
43 |
31 |
307200 |
|
|
91599277 |
UnstoppableMathMachine |
E |
Sept. 1, 2020, 8:56 p.m. |
OK |
GNU C++17 |
TESTS |
43 |
31 |
307200 |
|
|
91570958 |
Origenes |
E |
Sept. 1, 2020, 1:50 p.m. |
OK |
GNU C++17 |
TESTS |
43 |
31 |
307200 |
|
|
91668074 |
WeakestTopology |
E |
Sept. 2, 2020, 6:41 p.m. |
OK |
GNU C++17 (64) |
TESTS |
43 |
30 |
1126400 |
|
|
91107462 |
nathanlee726 |
E |
Aug. 27, 2020, 6:14 a.m. |
OK |
GNU C++17 (64) |
TESTS |
42 |
31 |
409600 |
|
|
91625341 |
fenwick123 |
E |
Sept. 2, 2020, 8:44 a.m. |
OK |
GNU C++17 (64) |
TESTS |
43 |
31 |
409600 |
|
|
91624804 |
fenwick123 |
E |
Sept. 2, 2020, 8:35 a.m. |
OK |
GNU C++17 (64) |
TESTS |
43 |
31 |
409600 |
|
|
91509094 |
shajal |
E |
Aug. 31, 2020, 4:23 p.m. |
OK |
GNU C++17 (64) |
TESTS |
43 |
31 |
409600 |
|
|
91199278 |
Nanored |
E |
Aug. 28, 2020, 10:28 a.m. |
OK |
GNU C++17 (64) |
TESTS |
43 |
31 |
409600 |
|
|
91180501 |
eThAnE |
E |
Aug. 28, 2020, 5:14 a.m. |
OK |
GNU C++17 (64) |
TESTS |
43 |
31 |
409600 |
|
|
91635646 |
kritin19 |
E |
Sept. 2, 2020, 11:27 a.m. |
OK |
GNU C++17 (64) |
TESTS |
43 |
31 |
512000 |
|
|
91607334 |
Tauzn |
E |
Sept. 2, 2020, 2:58 a.m. |
OK |
GNU C++17 (64) |
TESTS |
43 |
31 |
512000 |
|
|
91662683 |
kessido |
E |
Sept. 2, 2020, 5:17 p.m. |
OK |
GNU C++17 (64) |
TESTS |
43 |
31 |
512000 |
|
|
91148650 |
meooow |
E |
Aug. 27, 2020, 3:51 p.m. |
OK |
Go |
TESTS |
43 |
61 |
512000 |
|
|
91272551 |
SevenDeadlySins |
E |
Aug. 29, 2020, 9:31 a.m. |
OK |
Java 11 |
TESTS |
43 |
186 |
0 |
|
|
91185472 |
pennyIsLove |
E |
Aug. 28, 2020, 6:48 a.m. |
OK |
Java 11 |
TESTS |
43 |
187 |
0 |
|
|
91158448 |
zhupeijun |
E |
Aug. 27, 2020, 5:51 p.m. |
OK |
Java 11 |
TESTS |
43 |
202 |
0 |
|
|
91109677 |
sam_code |
E |
Aug. 27, 2020, 6:48 a.m. |
OK |
Java 11 |
TESTS |
43 |
202 |
0 |
|
|
91453022 |
GODF |
E |
Aug. 31, 2020, 3:56 a.m. |
OK |
Java 11 |
TESTS |
43 |
218 |
24678400 |
|
|
91287098 |
outofbound |
E |
Aug. 29, 2020, 1:20 p.m. |
OK |
Java 11 |
TESTS |
43 |
233 |
0 |
|
|
91224174 |
DATVN |
E |
Aug. 28, 2020, 3:46 p.m. |
OK |
Java 11 |
TESTS |
43 |
405 |
147251200 |
|
|
91099830 |
RaZoR_191 |
E |
Aug. 27, 2020, 3:21 a.m. |
OK |
Java 11 |
TESTS |
42 |
592 |
150835200 |
|
|
91174812 |
jxin31415 |
E |
Aug. 28, 2020, 2:29 a.m. |
OK |
Java 8 |
TESTS |
43 |
109 |
0 |
|
|
91534329 |
kirito_ |
E |
Sept. 1, 2020, 4:02 a.m. |
OK |
Java 8 |
TESTS |
43 |
124 |
0 |
|
|
91121574 |
bluesky111 |
E |
Aug. 27, 2020, 9:49 a.m. |
OK |
Java 8 |
TESTS |
43 |
124 |
0 |
|
|
91283216 |
kostasanemozalis |
E |
Aug. 29, 2020, 12:15 p.m. |
OK |
Java 8 |
TESTS |
43 |
140 |
0 |
|
|
91349271 |
IPhO |
E |
Aug. 30, 2020, 2:16 p.m. |
OK |
Java 8 |
TESTS |
43 |
140 |
20582400 |
|
|
91695256 |
lukeVader |
E |
Sept. 3, 2020, 7:12 a.m. |
OK |
Java 8 |
TESTS |
43 |
155 |
0 |
|
|
91227829 |
kamal_20 |
E |
Aug. 28, 2020, 4:26 p.m. |
OK |
Java 8 |
TESTS |
43 |
155 |
0 |
|
|
91203756 |
gagan_6730 |
E |
Aug. 28, 2020, 11:38 a.m. |
OK |
Java 8 |
TESTS |
43 |
155 |
0 |
|
|
91121291 |
luchy0120 |
E |
Aug. 27, 2020, 9:45 a.m. |
OK |
Java 8 |
TESTS |
43 |
170 |
0 |
|
|
91220076 |
gawsfbet |
E |
Aug. 28, 2020, 3:03 p.m. |
OK |
Java 8 |
TESTS |
43 |
171 |
0 |
|
|
91204278 |
HaKuLess |
E |
Aug. 28, 2020, 11:46 a.m. |
OK |
Kotlin |
TESTS |
43 |
374 |
614400 |
|
|
91144503 |
2weeks |
E |
Aug. 27, 2020, 3:05 p.m. |
OK |
MS C++ |
TESTS |
43 |
46 |
204800 |
|
|
91694788 |
masterwater |
E |
Sept. 3, 2020, 7:05 a.m. |
OK |
MS C++ 2017 |
TESTS |
43 |
31 |
204800 |
|
|
91302411 |
exode4 |
E |
Aug. 29, 2020, 5:25 p.m. |
OK |
MS C++ 2017 |
TESTS |
43 |
31 |
204800 |
|
|
91133349 |
casillas123 |
E |
Aug. 27, 2020, 12:40 p.m. |
OK |
MS C++ 2017 |
TESTS |
43 |
46 |
307200 |
|
|
91348208 |
reikiriyama |
E |
Aug. 30, 2020, 2:02 p.m. |
OK |
MS C++ 2017 |
TESTS |
43 |
46 |
4096000 |
|
|
91331493 |
nik1998 |
E |
Aug. 30, 2020, 9:50 a.m. |
OK |
MS C++ 2017 |
TESTS |
43 |
46 |
8806400 |
|
|
91097746 |
vjudge2 |
E |
Aug. 27, 2020, 2:11 a.m. |
OK |
MS C++ 2017 |
TESTS |
42 |
61 |
307200 |
|
|
91151314 |
tutai |
E |
Aug. 27, 2020, 4:21 p.m. |
OK |
Node.js |
TESTS |
43 |
420 |
123289600 |
|
|
91293284 |
funywoohoo |
E |
Aug. 29, 2020, 2:53 p.m. |
OK |
PyPy 3 |
TESTS |
43 |
249 |
5324800 |
|
|
91502286 |
aaaaaaaaaa2230 |
E |
Aug. 31, 2020, 3 p.m. |
OK |
PyPy 3 |
TESTS |
43 |
264 |
5529600 |
|
|
91293123 |
funywoohoo |
E |
Aug. 29, 2020, 2:50 p.m. |
OK |
PyPy 3 |
TESTS |
43 |
280 |
5222400 |
|
|
91267677 |
xuanji |
E |
Aug. 29, 2020, 8:15 a.m. |
OK |
PyPy 3 |
TESTS |
43 |
374 |
61132800 |
|
|
91126509 |
chudy_lukasz1337 |
E |
Aug. 27, 2020, 11:03 a.m. |
OK |
PyPy 3 |
TESTS |
43 |
873 |
60825600 |
|
|
91574490 |
stas_sl |
E |
Sept. 1, 2020, 2:34 p.m. |
OK |
Python 3 |
TESTS |
43 |
498 |
3993600 |
|
|
91126217 |
codershuvo |
E |
Aug. 27, 2020, 10:59 a.m. |
OK |
Python 3 |
TESTS |
43 |
498 |
3993600 |
|
|
91117251 |
mkawa2 |
E |
Aug. 27, 2020, 8:42 a.m. |
OK |
Python 3 |
TESTS |
43 |
498 |
4300800 |
|
|
91573568 |
stas_sl |
E |
Sept. 1, 2020, 2:23 p.m. |
OK |
Python 3 |
TESTS |
43 |
499 |
4096000 |
|
|
91116545 |
mkawa2 |
E |
Aug. 27, 2020, 8:32 a.m. |
OK |
Python 3 |
TESTS |
43 |
1949 |
4096000 |
|
|
91573145 |
stas_sl |
E |
Sept. 1, 2020, 2:18 p.m. |
OK |
Python 3 |
TESTS |
43 |
1965 |
3891200 |
|
|
91136517 |
kenkoooo |
E |
Aug. 27, 2020, 1:26 p.m. |
OK |
Rust |
TESTS |
43 |
46 |
307200 |
|
|
91460721 |
Strorkis |
E |
Aug. 31, 2020, 5:53 a.m. |
OK |
Rust |
TESTS |
43 |
124 |
4096000 |
|
|
91174207 |
togatoga |
E |
Aug. 28, 2020, 2:05 a.m. |
OK |
Rust |
TESTS |
43 |
670 |
201420800 |
|
|
remove filters
Back to search problems