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 are given an array a of n integers. You want to make all elements of a equal to zero by doing the following operation exactly three times: It can be proven that it is always possible to make all elements of a equal to zero. The first line contains one integer n ( 1 <= n <= 100 ,000 ): the number of elements of the array. The second line contains n elements of an array a separated by spaces: a_1, a_2, ... , a_n ( -10^9 <= a_i <= 10^9 ). The output should contain six lines representing three operations. For each operation, print two lines: '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
91357873 |
Gassa |
A |
Aug. 30, 2020, 2:42 p.m. |
OK |
D |
TESTS |
70 |
93 |
9113600 |
|
|
91381197 |
pengin_2000 |
A |
Aug. 30, 2020, 3:21 p.m. |
OK |
GNU C11 |
TESTS |
70 |
842 |
4608000 |
|
|
91371479 |
libra7z |
A |
Aug. 30, 2020, 3:04 p.m. |
OK |
GNU C11 |
TESTS |
70 |
982 |
4608000 |
|
|
91368204 |
Wall_breaker |
A |
Aug. 30, 2020, 2:58 p.m. |
OK |
GNU C++11 |
TESTS |
70 |
46 |
6348800 |
|
|
91487572 |
Wall_breaker |
A |
Aug. 31, 2020, 11:54 a.m. |
OK |
GNU C++11 |
TESTS |
72 |
46 |
6348800 |
|
|
91501197 |
lzzAKIOI |
A |
Aug. 31, 2020, 2:47 p.m. |
OK |
GNU C++11 |
TESTS |
72 |
62 |
1024000 |
|
|
91362872 |
xay5421 |
A |
Aug. 30, 2020, 2:48 p.m. |
OK |
GNU C++11 |
TESTS |
70 |
62 |
4812800 |
|
|
91364136 |
hlhhlhhlh |
A |
Aug. 30, 2020, 2:50 p.m. |
OK |
GNU C++11 |
TESTS |
70 |
62 |
4812800 |
|
|
91366790 |
juruo1086 |
A |
Aug. 30, 2020, 2:55 p.m. |
OK |
GNU C++11 |
TESTS |
70 |
62 |
4812800 |
|
|
91437990 |
Hpnes |
A |
Aug. 30, 2020, 8:19 p.m. |
OK |
GNU C++11 |
TESTS |
70 |
62 |
5529600 |
|
|
91539830 |
EmptySoulist |
A |
Sept. 1, 2020, 6:07 a.m. |
OK |
GNU C++11 |
TESTS |
72 |
62 |
5529600 |
|
|
91484386 |
EmptySoulist |
A |
Aug. 31, 2020, 11:09 a.m. |
OK |
GNU C++11 |
TESTS |
72 |
62 |
5529600 |
|
|
91360231 |
jxm2001 |
A |
Aug. 30, 2020, 2:45 p.m. |
OK |
GNU C++11 |
TESTS |
70 |
77 |
4403200 |
|
|
91368033 |
Luzivanlt |
A |
Aug. 30, 2020, 2:57 p.m. |
OK |
GNU C++14 |
TESTS |
70 |
77 |
5427200 |
|
|
91357802 |
platter |
A |
Aug. 30, 2020, 2:42 p.m. |
OK |
GNU C++14 |
TESTS |
70 |
78 |
4608000 |
|
|
91364289 |
arman_ferdous |
A |
Aug. 30, 2020, 2:51 p.m. |
OK |
GNU C++14 |
TESTS |
70 |
78 |
5427200 |
|
|
91655322 |
nithinkumarrockstar |
A |
Sept. 2, 2020, 3:39 p.m. |
OK |
GNU C++14 |
TESTS |
72 |
93 |
1024000 |
|
|
91681227 |
Meple |
A |
Sept. 3, 2020, 1:46 a.m. |
OK |
GNU C++14 |
TESTS |
72 |
93 |
2048000 |
|
|
91357342 |
SidneyUranus |
A |
Aug. 30, 2020, 2:42 p.m. |
OK |
GNU C++14 |
TESTS |
70 |
93 |
4198400 |
|
|
91373521 |
Nero |
A |
Aug. 30, 2020, 3:08 p.m. |
OK |
GNU C++14 |
TESTS |
70 |
93 |
4505600 |
|
|
91363327 |
AC_is_love |
A |
Aug. 30, 2020, 2:49 p.m. |
OK |
GNU C++14 |
TESTS |
70 |
93 |
4505600 |
|
|
91387321 |
Valters07 |
A |
Aug. 30, 2020, 3:32 p.m. |
OK |
GNU C++14 |
TESTS |
70 |
93 |
4505600 |
|
|
91464272 |
lyk248289469 |
A |
Aug. 31, 2020, 6:39 a.m. |
OK |
GNU C++14 |
TESTS |
71 |
93 |
4505600 |
|
|
91490342 |
liouzhou_101 |
A |
Aug. 31, 2020, 12:32 p.m. |
OK |
GNU C++17 |
TESTS |
72 |
62 |
4505600 |
|
|
91356366 |
LayCurse |
A |
Aug. 30, 2020, 2:41 p.m. |
OK |
GNU C++17 |
TESTS |
70 |
62 |
7475200 |
|
|
91377658 |
201831990439 |
A |
Aug. 30, 2020, 3:15 p.m. |
OK |
GNU C++17 |
TESTS |
70 |
62 |
12492800 |
|
|
91632482 |
disangan233 |
A |
Sept. 2, 2020, 10:41 a.m. |
OK |
GNU C++17 |
TESTS |
72 |
77 |
12390400 |
|
|
91634581 |
disangan233 |
A |
Sept. 2, 2020, 11:12 a.m. |
OK |
GNU C++17 |
TESTS |
72 |
77 |
12390400 |
|
|
91608542 |
Serega_Balyuk |
A |
Sept. 2, 2020, 3:34 a.m. |
OK |
GNU C++17 |
TESTS |
72 |
93 |
819200 |
|
|
91631979 |
Falseeee |
A |
Sept. 2, 2020, 10:33 a.m. |
OK |
GNU C++17 |
TESTS |
72 |
93 |
1638400 |
|
|
91603191 |
shikhar2817 |
A |
Sept. 1, 2020, 11:48 p.m. |
OK |
GNU C++17 |
TESTS |
72 |
93 |
1638400 |
|
|
91575705 |
Origenes |
A |
Sept. 1, 2020, 2:47 p.m. |
OK |
GNU C++17 |
TESTS |
72 |
93 |
1843200 |
|
|
91361524 |
WNG |
A |
Aug. 30, 2020, 2:46 p.m. |
OK |
GNU C++17 |
TESTS |
70 |
93 |
4096000 |
|
|
91355927 |
QAQAutoMaton |
A |
Aug. 30, 2020, 2:40 p.m. |
OK |
GNU C++17 (64) |
TESTS |
70 |
31 |
9420800 |
|
|
91563977 |
IgorSmirnov |
A |
Sept. 1, 2020, 12:18 p.m. |
OK |
GNU C++17 (64) |
TESTS |
72 |
46 |
819200 |
|
|
91536854 |
devillove084 |
A |
Sept. 1, 2020, 5:08 a.m. |
OK |
GNU C++17 (64) |
TESTS |
72 |
61 |
819200 |
|
|
91540313 |
sherlock0502 |
A |
Sept. 1, 2020, 6:16 a.m. |
OK |
GNU C++17 (64) |
TESTS |
72 |
61 |
819200 |
|
|
91388086 |
suri_kumkaran |
A |
Aug. 30, 2020, 3:34 p.m. |
OK |
GNU C++17 (64) |
TESTS |
70 |
61 |
5120000 |
|
|
91445440 |
w33z8kqrqk8zzzx33 |
A |
Aug. 31, 2020, 12:44 a.m. |
OK |
GNU C++17 (64) |
TESTS |
70 |
61 |
5222400 |
|
|
91365255 |
niconiconii |
A |
Aug. 30, 2020, 2:52 p.m. |
OK |
GNU C++17 (64) |
TESTS |
70 |
61 |
5222400 |
|
|
91355726 |
Egor |
A |
Aug. 30, 2020, 2:40 p.m. |
OK |
GNU C++17 (64) |
TESTS |
70 |
61 |
6348800 |
|
|
91354929 |
wwdd |
A |
Aug. 30, 2020, 2:40 p.m. |
OK |
GNU C++17 (64) |
TESTS |
70 |
61 |
6451200 |
|
|
91364266 |
hamath |
A |
Aug. 30, 2020, 2:51 p.m. |
OK |
GNU C++17 (64) |
TESTS |
70 |
61 |
6758400 |
|
|
91468283 |
synapse |
A |
Aug. 31, 2020, 7:29 a.m. |
OK |
Go |
TESTS |
71 |
171 |
15155200 |
|
|
91368097 |
Xylenox |
A |
Aug. 30, 2020, 2:57 p.m. |
OK |
Go |
TESTS |
70 |
171 |
15462400 |
|
|
91359590 |
clyring |
A |
Aug. 30, 2020, 2:44 p.m. |
OK |
Haskell |
TESTS |
70 |
468 |
38912000 |
|
|
91363459 |
mikit |
A |
Aug. 30, 2020, 2:49 p.m. |
OK |
Java 11 |
TESTS |
70 |
249 |
23859200 |
|
|
91361186 |
PizzaLovers007 |
A |
Aug. 30, 2020, 2:46 p.m. |
OK |
Java 11 |
TESTS |
70 |
264 |
23961600 |
|
|
91365801 |
awesomelemonade |
A |
Aug. 30, 2020, 2:53 p.m. |
OK |
Java 11 |
TESTS |
70 |
264 |
24268800 |
|
|
91377305 |
skittles1412 |
A |
Aug. 30, 2020, 3:14 p.m. |
OK |
Java 11 |
TESTS |
70 |
264 |
25497600 |
|
|
91584045 |
XsLel |
A |
Sept. 1, 2020, 4:26 p.m. |
OK |
Java 11 |
TESTS |
72 |
280 |
3276800 |
|
|
91357790 |
Lewin |
A |
Aug. 30, 2020, 2:42 p.m. |
OK |
Java 11 |
TESTS |
70 |
280 |
24268800 |
|
|
91357959 |
uwi |
A |
Aug. 30, 2020, 2:42 p.m. |
OK |
Java 11 |
TESTS |
70 |
280 |
24678400 |
|
|
91667379 |
harshvijayvargiya8 |
A |
Sept. 2, 2020, 6:28 p.m. |
OK |
Java 11 |
TESTS |
72 |
296 |
0 |
|
|
91363994 |
mphillotry |
A |
Aug. 30, 2020, 2:50 p.m. |
OK |
Java 11 |
TESTS |
70 |
296 |
23961600 |
|
|
91365581 |
idk321 |
A |
Aug. 30, 2020, 2:53 p.m. |
OK |
Java 11 |
TESTS |
70 |
312 |
24576000 |
|
|
91370356 |
Sharon |
A |
Aug. 30, 2020, 3:02 p.m. |
OK |
Java 8 |
TESTS |
70 |
140 |
20889600 |
|
|
91445535 |
saurabhs1206 |
A |
Aug. 31, 2020, 12:47 a.m. |
OK |
Java 8 |
TESTS |
70 |
155 |
37478400 |
|
|
91358910 |
cwise |
A |
Aug. 30, 2020, 2:43 p.m. |
OK |
Java 8 |
TESTS |
70 |
155 |
68710400 |
|
|
91366841 |
naam_me_kya_rakha_he |
A |
Aug. 30, 2020, 2:55 p.m. |
OK |
Java 8 |
TESTS |
70 |
171 |
21196800 |
|
|
91364198 |
ijxjdjd |
A |
Aug. 30, 2020, 2:51 p.m. |
OK |
Java 8 |
TESTS |
70 |
186 |
20889600 |
|
|
91362480 |
SecondThread |
A |
Aug. 30, 2020, 2:48 p.m. |
OK |
Java 8 |
TESTS |
70 |
186 |
20992000 |
|
|
91366314 |
robinz62 |
A |
Aug. 30, 2020, 2:54 p.m. |
OK |
Java 8 |
TESTS |
70 |
186 |
21094400 |
|
|
91364336 |
bleh0.5 |
A |
Aug. 30, 2020, 2:51 p.m. |
OK |
Java 8 |
TESTS |
70 |
186 |
21196800 |
|
|
91378961 |
JHope |
A |
Aug. 30, 2020, 3:17 p.m. |
OK |
Java 8 |
TESTS |
70 |
186 |
26316800 |
|
|
91367106 |
martins |
A |
Aug. 30, 2020, 2:56 p.m. |
OK |
Java 8 |
TESTS |
70 |
186 |
37785600 |
|
|
91362036 |
Hakiobo |
A |
Aug. 30, 2020, 2:47 p.m. |
OK |
Kotlin |
TESTS |
70 |
171 |
27955200 |
|
|
91462937 |
Spheniscine |
A |
Aug. 31, 2020, 6:23 a.m. |
OK |
Kotlin |
TESTS |
71 |
202 |
23654400 |
|
|
91466943 |
Spheniscine |
A |
Aug. 31, 2020, 7:11 a.m. |
OK |
Kotlin |
TESTS |
71 |
202 |
29696000 |
|
|
91563704 |
koboshi |
A |
Sept. 1, 2020, 12:14 p.m. |
OK |
Kotlin |
TESTS |
72 |
249 |
11571200 |
|
|
91358557 |
Tlatoani |
A |
Aug. 30, 2020, 2:43 p.m. |
OK |
Kotlin |
TESTS |
70 |
264 |
39321600 |
|
|
91441851 |
Denzed |
A |
Aug. 30, 2020, 10:02 p.m. |
OK |
Kotlin |
TESTS |
70 |
326 |
32358400 |
|
|
91649981 |
koper |
A |
Sept. 2, 2020, 2:35 p.m. |
OK |
Kotlin |
TESTS |
72 |
342 |
11673600 |
|
|
91369860 |
batkhuyag |
A |
Aug. 30, 2020, 3:01 p.m. |
OK |
Kotlin |
TESTS |
70 |
390 |
62464000 |
|
|
91359652 |
Yupiteru |
A |
Aug. 30, 2020, 2:44 p.m. |
OK |
Mono C# |
TESTS |
70 |
139 |
27852800 |
|
|
91362044 |
azukun |
A |
Aug. 30, 2020, 2:47 p.m. |
OK |
Mono C# |
TESTS |
70 |
155 |
32153600 |
|
|
91564467 |
terry_u16 |
A |
Sept. 1, 2020, 12:24 p.m. |
OK |
Mono C# |
TESTS |
72 |
171 |
35430400 |
|
|
91360092 |
mban259 |
A |
Aug. 30, 2020, 2:45 p.m. |
OK |
Mono C# |
TESTS |
70 |
202 |
43929600 |
|
|
91362957 |
keymoon |
A |
Aug. 30, 2020, 2:48 p.m. |
OK |
Mono C# |
TESTS |
70 |
202 |
44953600 |
|
|
91366944 |
Mushegh |
A |
Aug. 30, 2020, 2:55 p.m. |
OK |
MS C++ |
TESTS |
70 |
108 |
6553600 |
|
|
91365602 |
shirowa |
A |
Aug. 30, 2020, 2:53 p.m. |
OK |
MS C++ 2017 |
TESTS |
70 |
124 |
4812800 |
|
|
91369743 |
vpike |
A |
Aug. 30, 2020, 3 p.m. |
OK |
MS C++ 2017 |
TESTS |
70 |
187 |
4505600 |
|
|
91549567 |
concept3d |
A |
Sept. 1, 2020, 8:41 a.m. |
OK |
MS C++ 2017 |
TESTS |
72 |
249 |
1638400 |
|
|
91360187 |
Catmoonlight |
A |
Aug. 30, 2020, 2:45 p.m. |
OK |
MS C++ 2017 |
TESTS |
70 |
249 |
4505600 |
|
|
91574623 |
simonchikos |
A |
Sept. 1, 2020, 2:36 p.m. |
OK |
MS C++ 2017 |
TESTS |
72 |
264 |
1843200 |
|
|
91368162 |
AnnSuperstar |
A |
Aug. 30, 2020, 2:57 p.m. |
OK |
MS C++ 2017 |
TESTS |
70 |
280 |
4505600 |
|
|
91366959 |
Gravekper |
A |
Aug. 30, 2020, 2:55 p.m. |
OK |
MS C++ 2017 |
TESTS |
70 |
280 |
5324800 |
|
|
91362664 |
Friska |
A |
Aug. 30, 2020, 2:48 p.m. |
OK |
MS C++ 2017 |
TESTS |
70 |
280 |
5734400 |
|
|
91379001 |
ialakhtin |
A |
Aug. 30, 2020, 3:17 p.m. |
OK |
MS C++ 2017 |
TESTS |
70 |
312 |
4505600 |
|
|
91359760 |
alexwice |
A |
Aug. 30, 2020, 2:44 p.m. |
OK |
PyPy 2 |
TESTS |
70 |
249 |
43827200 |
|
|
91360204 |
nagiss |
A |
Aug. 30, 2020, 2:45 p.m. |
OK |
PyPy 3 |
TESTS |
70 |
280 |
46694400 |
|
|
91534729 |
Mahipalkeizer |
A |
Sept. 1, 2020, 4:13 a.m. |
OK |
PyPy 3 |
TESTS |
72 |
389 |
26316800 |
|
|
91437261 |
madn |
A |
Aug. 30, 2020, 8:05 p.m. |
OK |
PyPy 3 |
TESTS |
70 |
436 |
39628800 |
|
|
91362618 |
pew-pew |
A |
Aug. 30, 2020, 2:48 p.m. |
OK |
PyPy 3 |
TESTS |
70 |
467 |
35328000 |
|
|
91471321 |
mth1908 |
A |
Aug. 31, 2020, 8:07 a.m. |
OK |
PyPy 3 |
TESTS |
71 |
467 |
42393600 |
|
|
91363598 |
neterukun |
A |
Aug. 30, 2020, 2:49 p.m. |
OK |
PyPy 3 |
TESTS |
70 |
467 |
42700800 |
|
|
91600799 |
Tadek |
A |
Sept. 1, 2020, 9:51 p.m. |
OK |
PyPy 3 |
TESTS |
72 |
468 |
19558400 |
|
|
91359117 |
yuusanlondon |
A |
Aug. 30, 2020, 2:43 p.m. |
OK |
PyPy 3 |
TESTS |
70 |
468 |
41779200 |
|
|
91433816 |
zapdospops |
A |
Aug. 30, 2020, 7:14 p.m. |
OK |
PyPy 3 |
TESTS |
70 |
482 |
38707200 |
|
|
91371029 |
r57shell |
A |
Aug. 30, 2020, 3:03 p.m. |
OK |
PyPy 3 |
TESTS |
70 |
483 |
34201600 |
|
|
91357799 |
nwi |
A |
Aug. 30, 2020, 2:42 p.m. |
OK |
Python 2 |
TESTS |
70 |
311 |
12083200 |
|
|
91437268 |
madn |
A |
Aug. 30, 2020, 8:05 p.m. |
OK |
Python 3 |
TESTS |
70 |
311 |
19046400 |
|
|
91361980 |
_andyli |
A |
Aug. 30, 2020, 2:47 p.m. |
OK |
Python 3 |
TESTS |
70 |
389 |
17920000 |
|
|
91449984 |
301_anky |
A |
Aug. 31, 2020, 2:56 a.m. |
OK |
Python 3 |
TESTS |
70 |
436 |
16588800 |
|
|
91366050 |
mkawa2 |
A |
Aug. 30, 2020, 2:54 p.m. |
OK |
Python 3 |
TESTS |
70 |
436 |
16793600 |
|
|
91493707 |
sushmanth.dampur8780 |
A |
Aug. 31, 2020, 1:15 p.m. |
OK |
Python 3 |
TESTS |
72 |
451 |
8499200 |
|
|
91631040 |
no_tilt |
A |
Sept. 2, 2020, 10:18 a.m. |
OK |
Python 3 |
TESTS |
72 |
467 |
8499200 |
|
|
91366713 |
Tomii9273 |
A |
Aug. 30, 2020, 2:55 p.m. |
OK |
Python 3 |
TESTS |
70 |
468 |
16998400 |
|
|
91362881 |
madn |
A |
Aug. 30, 2020, 2:48 p.m. |
OK |
Python 3 |
TESTS |
70 |
530 |
15257600 |
|
|
91594129 |
Myurry |
A |
Sept. 1, 2020, 6:53 p.m. |
OK |
Python 3 |
TESTS |
72 |
592 |
14336000 |
|
|
91455145 |
yltx |
A |
Aug. 31, 2020, 4:33 a.m. |
OK |
Python 3 |
TESTS |
71 |
592 |
15257600 |
|
|
91672199 |
Andrey_R |
A |
Sept. 2, 2020, 8:02 p.m. |
OK |
Ruby |
TESTS |
72 |
748 |
10137600 |
|
|
91369273 |
lbguilherme |
A |
Aug. 30, 2020, 2:59 p.m. |
OK |
Ruby |
TESTS |
70 |
873 |
71987200 |
|
|
91359662 |
tuna_salad |
A |
Aug. 30, 2020, 2:44 p.m. |
OK |
Rust |
TESTS |
70 |
62 |
6860800 |
|
|
91374083 |
orz_liuwei |
A |
Aug. 30, 2020, 3:09 p.m. |
OK |
Rust |
TESTS |
70 |
77 |
12800000 |
|
|
91692043 |
Strorkis |
A |
Sept. 3, 2020, 6:19 a.m. |
OK |
Rust |
TESTS |
72 |
77 |
12902400 |
|
|
91367723 |
EbTech |
A |
Aug. 30, 2020, 2:57 p.m. |
OK |
Rust |
TESTS |
70 |
78 |
7680000 |
|
|
91365784 |
cympfh |
A |
Aug. 30, 2020, 2:53 p.m. |
OK |
Rust |
TESTS |
70 |
124 |
10240000 |
|
|
91569494 |
kenkoooo |
A |
Sept. 1, 2020, 1:31 p.m. |
OK |
Rust |
TESTS |
72 |
155 |
2355200 |
|
|
remove filters
Back to search problems