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'For an array b of size m , we define: You are given three integers n , x , and y ( x > y ). Construct an array a of size n satisfying: If there are multiple arrays that meet the conditions, print any. It can be proven that such an array always exists under the given conditions. The first line contains an integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. For each test case: It is guaranteed that the sum of n over all test cases will not exceed 10^5 . For each test case, output n space-separated integers a_1, a_2, ldots, a_n in a new line. In the second test case, Thus, the array a=[1,-1,1,1] is considered correct. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
271695828 |
abobaghoul |
B |
July 21, 2024, 4:43 a.m. |
OK |
C# 10 |
TESTS |
13 |
124 |
3584000 |
|
|
271665836 |
A1ternate |
B |
July 20, 2024, 8:21 p.m. |
OK |
C# 10 |
TESTS |
13 |
124 |
3788800 |
|
|
271696434 |
Avinvini |
B |
July 21, 2024, 4:51 a.m. |
OK |
C# 10 |
TESTS |
13 |
218 |
3481600 |
|
|
271682570 |
moon_like_gray_cat |
B |
July 21, 2024, 1:36 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
13 |
46 |
0 |
|
|
271684302 |
SonYeuNuoc |
B |
July 21, 2024, 2:04 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
13 |
46 |
16076800 |
|
|
271700363 |
kvishal20 |
B |
July 21, 2024, 5:40 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
13 |
61 |
0 |
|
|
271695741 |
Asaduddin |
B |
July 21, 2024, 4:42 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
13 |
61 |
0 |
|
|
271692230 |
OurStory |
B |
July 21, 2024, 3:54 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
13 |
61 |
0 |
|
|
271685969 |
231002814yht |
B |
July 21, 2024, 2:30 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
13 |
61 |
0 |
|
|
271640881 |
nargestaghizadeh89 |
B |
July 20, 2024, 5:39 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
13 |
61 |
0 |
|
|
271643111 |
petjelinux |
B |
July 20, 2024, 5:47 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
13 |
61 |
409600 |
|
|
271687016 |
TaoistPKQ |
B |
July 21, 2024, 2:46 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
13 |
62 |
0 |
|
|
271685095 |
tzzl3035 |
B |
July 21, 2024, 2:17 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
13 |
62 |
0 |
|
|
271702382 |
Keshav19_goel |
B |
July 21, 2024, 6:01 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
13 |
46 |
0 |
|
|
271699587 |
Programmer76846 |
B |
July 21, 2024, 5:32 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
13 |
46 |
0 |
|
|
271698449 |
alinferno |
B |
July 21, 2024, 5:18 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
13 |
46 |
0 |
|
|
271697732 |
A_B_H_I_ |
B |
July 21, 2024, 5:10 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
13 |
46 |
0 |
|
|
271696772 |
runlorunlo |
B |
July 21, 2024, 4:56 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
13 |
46 |
0 |
|
|
271696750 |
Junhao_001 |
B |
July 21, 2024, 4:56 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
13 |
46 |
0 |
|
|
271695728 |
0x0c5cbae8 |
B |
July 21, 2024, 4:41 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
13 |
46 |
0 |
|
|
271694622 |
bnuwjy |
B |
July 21, 2024, 4:27 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
13 |
46 |
0 |
|
|
271691592 |
vivekshandilya373 |
B |
July 21, 2024, 3:46 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
13 |
46 |
0 |
|
|
271688187 |
shiyemoxia |
B |
July 21, 2024, 3:03 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
13 |
46 |
0 |
|
|
271702838 |
Oraxann |
B |
July 21, 2024, 6:05 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
13 |
46 |
0 |
|
|
271702713 |
rk1805 |
B |
July 21, 2024, 6:04 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
13 |
46 |
0 |
|
|
271699744 |
redimer |
B |
July 21, 2024, 5:33 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
13 |
46 |
0 |
|
|
271698670 |
maahi07 |
B |
July 21, 2024, 5:21 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
13 |
46 |
0 |
|
|
271698509 |
Nfs.88 |
B |
July 21, 2024, 5:19 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
13 |
46 |
0 |
|
|
271696138 |
Ngeces |
B |
July 21, 2024, 4:47 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
13 |
46 |
0 |
|
|
271693920 |
Nathan4 |
B |
July 21, 2024, 4:18 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
13 |
46 |
0 |
|
|
271692805 |
elioing |
B |
July 21, 2024, 4:02 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
13 |
46 |
0 |
|
|
271691308 |
M.Phoenix |
B |
July 21, 2024, 3:43 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
13 |
46 |
0 |
|
|
271690285 |
HiteshYasam |
B |
July 21, 2024, 3:30 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
13 |
46 |
0 |
|
|
271645506 |
lnsuyn |
B |
July 20, 2024, 5:59 p.m. |
OK |
GNU C11 |
TESTS |
13 |
405 |
102400 |
|
|
271669356 |
Hbayeb |
B |
July 20, 2024, 9:03 p.m. |
OK |
GNU C11 |
TESTS |
13 |
421 |
512000 |
|
|
271696545 |
baba_ramdev |
B |
July 21, 2024, 4:53 a.m. |
OK |
GNU C11 |
TESTS |
13 |
436 |
1331200 |
|
|
271699866 |
Aefhmv |
B |
July 21, 2024, 5:35 a.m. |
OK |
GNU C11 |
TESTS |
13 |
796 |
409600 |
|
|
271673061 |
Yotus |
B |
July 20, 2024, 10:05 p.m. |
OK |
Java 21 |
TESTS |
13 |
249 |
716800 |
|
|
271642837 |
tony_stark7 |
B |
July 20, 2024, 5:46 p.m. |
OK |
Java 21 |
TESTS |
13 |
265 |
614400 |
|
|
271682191 |
SiroKuro |
B |
July 21, 2024, 1:29 a.m. |
OK |
Java 21 |
TESTS |
13 |
280 |
1740800 |
|
|
271650441 |
dzhi |
B |
July 20, 2024, 6:31 p.m. |
OK |
Java 21 |
TESTS |
13 |
296 |
1024000 |
|
|
271654838 |
rj3377295 |
B |
July 20, 2024, 7:10 p.m. |
OK |
Java 21 |
TESTS |
13 |
296 |
1331200 |
|
|
271645297 |
PlayDate |
B |
July 20, 2024, 5:58 p.m. |
OK |
Java 21 |
TESTS |
13 |
311 |
1228800 |
|
|
271645095 |
codeWithDarshan |
B |
July 20, 2024, 5:57 p.m. |
OK |
Java 21 |
TESTS |
13 |
312 |
614400 |
|
|
271700511 |
anshpatel2434 |
B |
July 21, 2024, 5:42 a.m. |
OK |
Java 21 |
TESTS |
13 |
312 |
921600 |
|
|
271698860 |
AkshatSaxena_05 |
B |
July 21, 2024, 5:23 a.m. |
OK |
Java 21 |
TESTS |
13 |
375 |
819200 |
|
|
271649779 |
sharmashirish8500 |
B |
July 20, 2024, 6:26 p.m. |
OK |
Java 21 |
TESTS |
13 |
390 |
819200 |
|
|
271692130 |
samuelX159 |
B |
July 21, 2024, 3:53 a.m. |
OK |
Java 8 |
TESTS |
13 |
155 |
0 |
|
|
271646428 |
RebibeMeJett |
B |
July 20, 2024, 6:05 p.m. |
OK |
Java 8 |
TESTS |
13 |
156 |
0 |
|
|
271658886 |
arajeev210 |
B |
July 20, 2024, 7:49 p.m. |
OK |
Java 8 |
TESTS |
13 |
171 |
0 |
|
|
271643249 |
Yousef_Badr |
B |
July 20, 2024, 5:48 p.m. |
OK |
Java 8 |
TESTS |
13 |
187 |
0 |
|
|
271650942 |
snowyrsb |
B |
July 20, 2024, 6:35 p.m. |
OK |
Java 8 |
TESTS |
13 |
202 |
0 |
|
|
271641008 |
PassedPawn |
B |
July 20, 2024, 5:39 p.m. |
OK |
Java 8 |
TESTS |
13 |
203 |
0 |
|
|
271644808 |
y.d.chandra_kumar |
B |
July 20, 2024, 5:56 p.m. |
OK |
Java 8 |
TESTS |
13 |
296 |
0 |
|
|
271700200 |
ankitgupta860 |
B |
July 21, 2024, 5:38 a.m. |
OK |
Java 8 |
TESTS |
13 |
374 |
0 |
|
|
271657046 |
Baidiki |
B |
July 20, 2024, 7:31 p.m. |
OK |
Java 8 |
TESTS |
13 |
374 |
0 |
|
|
271632520 |
SaiGaneshreddy |
B |
July 20, 2024, 4:33 p.m. |
OK |
Java 8 |
TESTS |
13 |
390 |
0 |
|
|
271683970 |
raunakgiri21 |
B |
July 21, 2024, 1:58 a.m. |
OK |
Node.js |
TESTS |
13 |
187 |
7680000 |
|
|
271676811 |
Traverser_Steal69 |
B |
July 20, 2024, 11:25 p.m. |
OK |
PyPy 3 |
TESTS |
13 |
249 |
9728000 |
|
|
271657059 |
Sovi_11 |
B |
July 20, 2024, 7:31 p.m. |
OK |
PyPy 3 |
TESTS |
13 |
327 |
9932800 |
|
|
271644327 |
Om_Singh_ |
B |
July 20, 2024, 5:53 p.m. |
OK |
PyPy 3-64 |
TESTS |
13 |
109 |
7884800 |
|
|
271672914 |
tenacious... |
B |
July 20, 2024, 10:02 p.m. |
OK |
PyPy 3-64 |
TESTS |
13 |
140 |
9625600 |
|
|
271666671 |
jvatsal0709 |
B |
July 20, 2024, 8:30 p.m. |
OK |
PyPy 3-64 |
TESTS |
13 |
140 |
9625600 |
|
|
271648230 |
eyobworku |
B |
July 20, 2024, 6:16 p.m. |
OK |
PyPy 3-64 |
TESTS |
13 |
140 |
9625600 |
|
|
271652440 |
Muhammad_Hamed |
B |
July 20, 2024, 6:48 p.m. |
OK |
PyPy 3-64 |
TESTS |
13 |
140 |
9932800 |
|
|
271680304 |
RobinFromTheHood |
B |
July 21, 2024, 12:53 a.m. |
OK |
PyPy 3-64 |
TESTS |
13 |
140 |
10444800 |
|
|
271671488 |
jerome_coding |
B |
July 20, 2024, 9:35 p.m. |
OK |
PyPy 3-64 |
TESTS |
13 |
140 |
10649600 |
|
|
271680206 |
uma_6850 |
B |
July 21, 2024, 12:51 a.m. |
OK |
PyPy 3-64 |
TESTS |
13 |
155 |
3788800 |
|
|
271666093 |
vipplovve |
B |
July 20, 2024, 8:24 p.m. |
OK |
PyPy 3-64 |
TESTS |
13 |
155 |
6656000 |
|
|
271655751 |
__bharat__ |
B |
July 20, 2024, 7:18 p.m. |
OK |
PyPy 3-64 |
TESTS |
13 |
156 |
8089600 |
|
|
271677607 |
normalcoder12 |
B |
July 20, 2024, 11:47 p.m. |
OK |
Python 3 |
TESTS |
13 |
139 |
10035200 |
|
|
271633626 |
codinghermit05 |
B |
July 20, 2024, 4:34 p.m. |
OK |
Python 3 |
TESTS |
13 |
140 |
9728000 |
|
|
271632117 |
shantanu42 |
B |
July 20, 2024, 4:33 p.m. |
OK |
Python 3 |
TESTS |
13 |
155 |
9216000 |
|
|
271663269 |
Akash_iiitd |
B |
July 20, 2024, 7:54 p.m. |
OK |
Python 3 |
TESTS |
13 |
171 |
1331200 |
|
|
271652382 |
eugalt |
B |
July 20, 2024, 6:48 p.m. |
OK |
Python 3 |
TESTS |
13 |
171 |
3072000 |
|
|
271657819 |
daveshub |
B |
July 20, 2024, 7:38 p.m. |
OK |
Python 3 |
TESTS |
13 |
186 |
1331200 |
|
|
271696430 |
ciphrox |
B |
July 21, 2024, 4:51 a.m. |
OK |
Python 3 |
TESTS |
13 |
186 |
2048000 |
|
|
271697612 |
Xuyuanmao |
B |
July 21, 2024, 5:08 a.m. |
OK |
Python 3 |
TESTS |
13 |
187 |
1331200 |
|
|
271656936 |
Aswineeey |
B |
July 20, 2024, 7:30 p.m. |
OK |
Python 3 |
TESTS |
13 |
202 |
1740800 |
|
|
271674228 |
Low_Key |
B |
July 20, 2024, 10:28 p.m. |
OK |
Python 3 |
TESTS |
13 |
202 |
2252800 |
|
|
271690256 |
Bhscer |
B |
July 21, 2024, 3:30 a.m. |
OK |
Rust 2021 |
TESTS |
13 |
77 |
4812800 |
|
|
remove filters
Back to search problems