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"This is an easier version of the problem with smaller constraints. Korney Korneevich dag up an array a of length n . Korney Korneevich has recently read about the operation bitwise XOR, so he wished to experiment with it. For this purpose, he decided to find all integers x ge 0 such that there exists an increasing subsequence of the array a , in which the bitwise XOR of numbers is equal to x . It didn't take a long time for Korney Korneevich to find all such x , and he wants to check his result. That's why he asked you to solve this problem! A sequence s is a subsequence of a sequence b if s can be obtained from b by deletion of several (possibly, zero or all) elements. A sequence s_1, s_2, ldots , s_m is called increasing if s_1 < s_2 < ldots < s_m . The first line contains a single integer n ( 1 <= n <= 10^5 ). The second line contains n integers a_1, a_2, ldots, a_n ( 0 <= a_i <= 500 ) -- the elements of the array a . In the first line print a single integer k -- the number of found x values. In the second line print k integers in increasing order x_1, x_2, ldots x_k ( 0 <= x_1 < ldots < x_k ) -- found x values. In the first test case: "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
132933397 |
ruban |
F1 |
Oct. 24, 2021, 1:56 p.m. |
OK |
FPC |
TESTS |
52 |
218 |
38912000 |
|
|
132951141 |
rainboy |
F1 |
Oct. 24, 2021, 5:29 p.m. |
OK |
GNU C11 |
TESTS |
53 |
124 |
5120000 |
|
|
132970494 |
Depth_First_Search |
F1 |
Oct. 25, 2021, 1:43 a.m. |
OK |
GNU C++14 |
TESTS |
53 |
31 |
11059200 |
|
|
132959375 |
limbo16 |
F1 |
Oct. 24, 2021, 7:38 p.m. |
OK |
GNU C++14 |
TESTS |
53 |
46 |
2662400 |
|
|
132971127 |
BuleVisitor |
F1 |
Oct. 25, 2021, 2:06 a.m. |
OK |
GNU C++14 |
TESTS |
53 |
46 |
2867200 |
|
|
132971869 |
gigajet |
F1 |
Oct. 25, 2021, 2:29 a.m. |
OK |
GNU C++14 |
TESTS |
53 |
46 |
3993600 |
|
|
132935507 |
Kira_1234 |
F1 |
Oct. 24, 2021, 2:15 p.m. |
OK |
GNU C++14 |
TESTS |
52 |
46 |
8499200 |
|
|
132970732 |
jiangxuancheng |
F1 |
Oct. 25, 2021, 1:53 a.m. |
OK |
GNU C++14 |
TESTS |
53 |
46 |
11366400 |
|
|
132970738 |
LYC_music |
F1 |
Oct. 25, 2021, 1:53 a.m. |
OK |
GNU C++14 |
TESTS |
53 |
46 |
25088000 |
|
|
132930432 |
DrinkWaterEatFood |
F1 |
Oct. 24, 2021, 1:33 p.m. |
OK |
GNU C++14 |
TESTS |
52 |
61 |
1331200 |
|
|
132946985 |
Dirii |
F1 |
Oct. 24, 2021, 4:29 p.m. |
OK |
GNU C++14 |
TESTS |
53 |
61 |
11571200 |
|
|
132930826 |
Kal-El |
F1 |
Oct. 24, 2021, 1:36 p.m. |
OK |
GNU C++14 |
TESTS |
52 |
62 |
1228800 |
|
|
132939291 |
darkmud |
F1 |
Oct. 24, 2021, 2:55 p.m. |
OK |
GNU C++17 |
TESTS |
52 |
46 |
1638400 |
|
|
132982079 |
Gabp |
F1 |
Oct. 25, 2021, 5:59 a.m. |
OK |
GNU C++17 |
TESTS |
53 |
46 |
2252800 |
|
|
132953669 |
brezhart |
F1 |
Oct. 24, 2021, 6:07 p.m. |
OK |
GNU C++17 |
TESTS |
53 |
46 |
2969600 |
|
|
132940205 |
mym0404 |
F1 |
Oct. 24, 2021, 3:04 p.m. |
OK |
GNU C++17 |
TESTS |
52 |
46 |
3072000 |
|
|
132939074 |
mym0404 |
F1 |
Oct. 24, 2021, 2:53 p.m. |
OK |
GNU C++17 |
TESTS |
52 |
46 |
3072000 |
|
|
132945299 |
ovd0312 |
F1 |
Oct. 24, 2021, 4:06 p.m. |
OK |
GNU C++17 |
TESTS |
53 |
61 |
4300800 |
|
|
132965153 |
Bsher |
F1 |
Oct. 24, 2021, 9:50 p.m. |
OK |
GNU C++17 |
TESTS |
53 |
62 |
1126400 |
|
|
132960175 |
Radon86 |
F1 |
Oct. 24, 2021, 7:53 p.m. |
OK |
GNU C++17 |
TESTS |
53 |
62 |
2252800 |
|
|
132926980 |
WREHRUQRWWREH |
F1 |
Oct. 24, 2021, 1:08 p.m. |
OK |
GNU C++17 |
TESTS |
52 |
62 |
5120000 |
|
|
132982034 |
Gabp |
F1 |
Oct. 25, 2021, 5:58 a.m. |
OK |
GNU C++17 |
TESTS |
53 |
62 |
19865600 |
|
|
132929626 |
elvin12e |
F1 |
Oct. 24, 2021, 1:28 p.m. |
OK |
GNU C++17 (64) |
TESTS |
52 |
31 |
1331200 |
|
|
132958513 |
LeaveMe |
F1 |
Oct. 24, 2021, 7:21 p.m. |
OK |
GNU C++17 (64) |
TESTS |
53 |
31 |
2662400 |
|
|
132966920 |
Archer_ |
F1 |
Oct. 24, 2021, 10:58 p.m. |
OK |
GNU C++17 (64) |
TESTS |
53 |
31 |
2764800 |
|
|
132959382 |
AB.devil |
F1 |
Oct. 24, 2021, 7:38 p.m. |
OK |
GNU C++17 (64) |
TESTS |
53 |
31 |
2867200 |
|
|
132972702 |
AutumnKite |
F1 |
Oct. 25, 2021, 2:52 a.m. |
OK |
GNU C++17 (64) |
TESTS |
53 |
31 |
3072000 |
|
|
132950650 |
tupside |
F1 |
Oct. 24, 2021, 5:21 p.m. |
OK |
GNU C++17 (64) |
TESTS |
53 |
31 |
3174400 |
|
|
132927658 |
Lawali |
F1 |
Oct. 24, 2021, 1:11 p.m. |
OK |
GNU C++17 (64) |
TESTS |
52 |
31 |
6656000 |
|
|
132975300 |
SevenDawns |
F1 |
Oct. 25, 2021, 3:52 a.m. |
OK |
GNU C++17 (64) |
TESTS |
53 |
31 |
6860800 |
|
|
132977307 |
LeeJiaHua |
F1 |
Oct. 25, 2021, 4:35 a.m. |
OK |
GNU C++17 (64) |
TESTS |
53 |
46 |
2048000 |
|
|
132978063 |
SundayJerry |
F1 |
Oct. 25, 2021, 4:49 a.m. |
OK |
GNU C++17 (64) |
TESTS |
53 |
46 |
2867200 |
|
|
132930160 |
BlueDiamond |
F1 |
Oct. 24, 2021, 1:31 p.m. |
OK |
GNU C++20 (64) |
TESTS |
52 |
31 |
3174400 |
|
|
132942095 |
inksamurai |
F1 |
Oct. 24, 2021, 3:26 p.m. |
OK |
GNU C++20 (64) |
TESTS |
53 |
31 |
3481600 |
|
|
132958268 |
IgorI |
F1 |
Oct. 24, 2021, 7:17 p.m. |
OK |
GNU C++20 (64) |
TESTS |
53 |
46 |
6963200 |
|
|
132947433 |
Nero |
F1 |
Oct. 24, 2021, 4:34 p.m. |
OK |
GNU C++20 (64) |
TESTS |
53 |
46 |
19763200 |
|
|
132960601 |
CurB |
F1 |
Oct. 24, 2021, 8 p.m. |
OK |
GNU C++20 (64) |
TESTS |
53 |
62 |
1228800 |
|
|
132952921 |
xiaofan7 |
F1 |
Oct. 24, 2021, 5:56 p.m. |
OK |
GNU C++20 (64) |
TESTS |
53 |
62 |
1228800 |
|
|
132939468 |
robosapien |
F1 |
Oct. 24, 2021, 2:57 p.m. |
OK |
GNU C++20 (64) |
TESTS |
52 |
62 |
1740800 |
|
|
132978829 |
yashbarot291 |
F1 |
Oct. 25, 2021, 5:03 a.m. |
OK |
GNU C++20 (64) |
TESTS |
53 |
62 |
2048000 |
|
|
132976094 |
Bhuwanesh |
F1 |
Oct. 25, 2021, 4:10 a.m. |
OK |
GNU C++20 (64) |
TESTS |
53 |
62 |
2048000 |
|
|
132957380 |
ishans1324 |
F1 |
Oct. 24, 2021, 7:03 p.m. |
OK |
GNU C++20 (64) |
TESTS |
53 |
62 |
2048000 |
|
|
132963361 |
_Body |
F1 |
Oct. 24, 2021, 8:59 p.m. |
OK |
Java 11 |
TESTS |
53 |
296 |
25395200 |
|
|
132927656 |
naman_23 |
F1 |
Oct. 24, 2021, 1:11 p.m. |
OK |
Java 11 |
TESTS |
52 |
343 |
25395200 |
|
|
132930849 |
akshatj07 |
F1 |
Oct. 24, 2021, 1:36 p.m. |
OK |
Java 11 |
TESTS |
52 |
343 |
25395200 |
|
|
132942687 |
reverenc |
F1 |
Oct. 24, 2021, 3:34 p.m. |
OK |
Java 11 |
TESTS |
53 |
343 |
27545600 |
|
|
132930280 |
_merlin_ |
F1 |
Oct. 24, 2021, 1:32 p.m. |
OK |
Java 11 |
TESTS |
52 |
358 |
27545600 |
|
|
132941266 |
Matheolympiade |
F1 |
Oct. 24, 2021, 3:16 p.m. |
OK |
Java 11 |
TESTS |
52 |
421 |
26009600 |
|
|
132977767 |
yogii_123 |
F1 |
Oct. 25, 2021, 4:44 a.m. |
OK |
Java 11 |
TESTS |
53 |
452 |
26009600 |
|
|
132958807 |
MrOtter |
F1 |
Oct. 24, 2021, 7:27 p.m. |
OK |
Java 11 |
TESTS |
53 |
873 |
154214400 |
|
|
132927096 |
soumit915 |
F1 |
Oct. 24, 2021, 1:08 p.m. |
OK |
Java 11 |
TESTS |
52 |
904 |
25497600 |
|
|
132929707 |
boltUsain |
F1 |
Oct. 24, 2021, 1:29 p.m. |
OK |
Java 11 |
TESTS |
52 |
982 |
25395200 |
|
|
132929064 |
SlowLegendaryNoobMaster |
F1 |
Oct. 24, 2021, 1:22 p.m. |
OK |
Java 8 |
TESTS |
52 |
249 |
19353600 |
|
|
132941537 |
beroul |
F1 |
Oct. 24, 2021, 3:19 p.m. |
OK |
Java 8 |
TESTS |
52 |
296 |
19558400 |
|
|
132950315 |
NighTurs |
F1 |
Oct. 24, 2021, 5:16 p.m. |
OK |
Java 8 |
TESTS |
53 |
311 |
19353600 |
|
|
132942591 |
Depool |
F1 |
Oct. 24, 2021, 3:32 p.m. |
OK |
Java 8 |
TESTS |
53 |
311 |
22220800 |
|
|
132942242 |
beroul |
F1 |
Oct. 24, 2021, 3:28 p.m. |
OK |
Java 8 |
TESTS |
53 |
312 |
19456000 |
|
|
132955490 |
Lelouch_12 |
F1 |
Oct. 24, 2021, 6:34 p.m. |
OK |
Java 8 |
TESTS |
53 |
920 |
428339200 |
|
|
132955964 |
Lelouch_12 |
F1 |
Oct. 24, 2021, 6:42 p.m. |
OK |
Java 8 |
TESTS |
53 |
966 |
428339200 |
|
|
132965637 |
Eldies |
F1 |
Oct. 24, 2021, 10:05 p.m. |
OK |
MS C++ 2017 |
TESTS |
53 |
93 |
1843200 |
|
|
132965774 |
Eldies |
F1 |
Oct. 24, 2021, 10:10 p.m. |
OK |
MS C++ 2017 |
TESTS |
53 |
93 |
1843200 |
|
|
132965868 |
Eldies |
F1 |
Oct. 24, 2021, 10:13 p.m. |
OK |
MS C++ 2017 |
TESTS |
53 |
93 |
3481600 |
|
|
132965565 |
Eldies |
F1 |
Oct. 24, 2021, 10:03 p.m. |
OK |
MS C++ 2017 |
TESTS |
53 |
124 |
2048000 |
|
|
132951284 |
egardoz01 |
F1 |
Oct. 24, 2021, 5:32 p.m. |
OK |
MS C++ 2017 |
TESTS |
53 |
124 |
2150400 |
|
|
132965726 |
Eldies |
F1 |
Oct. 24, 2021, 10:08 p.m. |
OK |
MS C++ 2017 |
TESTS |
53 |
155 |
1843200 |
|
|
132965428 |
Eldies |
F1 |
Oct. 24, 2021, 9:58 p.m. |
OK |
MS C++ 2017 |
TESTS |
53 |
795 |
5324800 |
|
|
132965494 |
Eldies |
F1 |
Oct. 24, 2021, 10 p.m. |
OK |
MS C++ 2017 |
TESTS |
53 |
811 |
5324800 |
|
|
132936288 |
kakel_san |
F1 |
Oct. 24, 2021, 2:24 p.m. |
OK |
.NET Core C# |
TESTS |
52 |
1294 |
27648000 |
|
|
132943986 |
ghoshsanchita656 |
F1 |
Oct. 24, 2021, 3:49 p.m. |
OK |
PyPy 3 |
TESTS |
53 |
248 |
27955200 |
|
|
132944973 |
innocent_SINNER |
F1 |
Oct. 24, 2021, 4:02 p.m. |
OK |
PyPy 3 |
TESTS |
53 |
248 |
37785600 |
|
|
132933103 |
roee |
F1 |
Oct. 24, 2021, 1:53 p.m. |
OK |
PyPy 3 |
TESTS |
52 |
280 |
60825600 |
|
|
132966173 |
HETRAKESHFADIA |
F1 |
Oct. 24, 2021, 10:25 p.m. |
OK |
PyPy 3 |
TESTS |
53 |
405 |
25190400 |
|
|
132982091 |
KanishkGoel |
F1 |
Oct. 25, 2021, 5:59 a.m. |
OK |
PyPy 3 |
TESTS |
53 |
576 |
24780800 |
|
|
132950083 |
plevande |
F1 |
Oct. 24, 2021, 5:12 p.m. |
OK |
PyPy 3 |
TESTS |
53 |
717 |
25907200 |
|
|
132967728 |
AKM_ka_Nibba |
F1 |
Oct. 24, 2021, 11:40 p.m. |
OK |
PyPy 3 |
TESTS |
53 |
1341 |
49971200 |
|
|
132932654 |
Mai_hoo_kaun |
F1 |
Oct. 24, 2021, 1:49 p.m. |
OK |
PyPy 3 |
TESTS |
52 |
1481 |
25702400 |
|
|
132932980 |
raidevashish |
F1 |
Oct. 24, 2021, 1:52 p.m. |
OK |
PyPy 3-64 |
TESTS |
52 |
234 |
50585600 |
|
|
132935249 |
raidevashish |
F1 |
Oct. 24, 2021, 2:13 p.m. |
OK |
PyPy 3-64 |
TESTS |
52 |
249 |
50483200 |
|
|
132940240 |
laplce |
F1 |
Oct. 24, 2021, 3:05 p.m. |
OK |
PyPy 3-64 |
TESTS |
52 |
327 |
43520000 |
|
|
132932704 |
petya47 |
F1 |
Oct. 24, 2021, 1:50 p.m. |
OK |
PyPy 3-64 |
TESTS |
52 |
327 |
43724800 |
|
|
132937398 |
petya47 |
F1 |
Oct. 24, 2021, 2:35 p.m. |
OK |
PyPy 3-64 |
TESTS |
52 |
327 |
44032000 |
|
|
132966144 |
HETRAKESHFADIA |
F1 |
Oct. 24, 2021, 10:24 p.m. |
OK |
PyPy 3-64 |
TESTS |
53 |
389 |
39833600 |
|
|
132932543 |
petya47 |
F1 |
Oct. 24, 2021, 1:48 p.m. |
OK |
PyPy 3-64 |
TESTS |
52 |
405 |
43520000 |
|
|
132966117 |
HETRAKESHFADIA |
F1 |
Oct. 24, 2021, 10:22 p.m. |
OK |
PyPy 3-64 |
TESTS |
53 |
421 |
39731200 |
|
|
132932457 |
petya47 |
F1 |
Oct. 24, 2021, 1:47 p.m. |
OK |
PyPy 3-64 |
TESTS |
52 |
421 |
43827200 |
|
|
132948487 |
Mukundan314 |
F1 |
Oct. 24, 2021, 4:49 p.m. |
OK |
PyPy 3-64 |
TESTS |
53 |
436 |
43212800 |
|
|
132942914 |
xyxoro |
F1 |
Oct. 24, 2021, 3:36 p.m. |
OK |
Python 3 |
TESTS |
53 |
108 |
11468800 |
|
|
132941966 |
xyxoro |
F1 |
Oct. 24, 2021, 3:25 p.m. |
OK |
Python 3 |
TESTS |
53 |
109 |
11468800 |
|
|
132967911 |
Spheniscine |
F1 |
Oct. 24, 2021, 11:50 p.m. |
OK |
Rust |
TESTS |
53 |
31 |
3276800 |
|
|
132957523 |
sansen |
F1 |
Oct. 24, 2021, 7:05 p.m. |
OK |
Rust |
TESTS |
53 |
77 |
2252800 |
|
|
remove filters
Back to search problems