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'Vladislav has n cards numbered 1, 2, ... , n . He wants to lay them down in a row as follows: The first line contains an integer t ( 1 <= q t <= q 5 cdot 10^4 ) -- the number of test cases. The only line of each test case contains two integers n and k ( 1 <= q k <= q n <= q 10^9 ) -- the number of cards Vlad has, and the position of the card you need to output. For each test case, output a single integer -- the k -th card Vladislav lays down. In the first seven test cases, n=7 . Vladislav lays down the cards as follows: '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
247406789 |
pplodev |
E |
Feb. 19, 2024, 11:58 p.m. |
OK |
Clang++20 Diagnostics |
TESTS |
9 |
655 |
0 |
|
|
247404547 |
Gassa |
E |
Feb. 19, 2024, 11:01 p.m. |
OK |
D |
TESTS |
9 |
78 |
204800 |
|
|
247417367 |
nguyenvantan112134 |
E |
Feb. 20, 2024, 3:07 a.m. |
OK |
GNU C11 |
TESTS |
9 |
670 |
307200 |
|
|
247419071 |
Lskkkno3 |
E |
Feb. 20, 2024, 3:28 a.m. |
OK |
GNU C++17 |
TESTS |
9 |
31 |
0 |
|
|
247374930 |
kingsneverdie1411 |
E |
Feb. 19, 2024, 5:34 p.m. |
OK |
GNU C++17 |
TESTS |
6 |
31 |
0 |
|
|
247427145 |
01_01_1998 |
E |
Feb. 20, 2024, 5:14 a.m. |
OK |
GNU C++17 |
TESTS |
9 |
46 |
0 |
|
|
247422708 |
Actium |
E |
Feb. 20, 2024, 4:16 a.m. |
OK |
GNU C++17 |
TESTS |
9 |
46 |
0 |
|
|
247422161 |
py666 |
E |
Feb. 20, 2024, 4:08 a.m. |
OK |
GNU C++17 |
TESTS |
9 |
46 |
0 |
|
|
247417671 |
iagozag |
E |
Feb. 20, 2024, 3:10 a.m. |
OK |
GNU C++17 |
TESTS |
9 |
46 |
0 |
|
|
247427764 |
anuj_singh_thakur |
E |
Feb. 20, 2024, 5:21 a.m. |
OK |
GNU C++17 |
TESTS |
9 |
46 |
0 |
|
|
247414932 |
MaxWelll |
E |
Feb. 20, 2024, 2:32 a.m. |
OK |
GNU C++17 |
TESTS |
9 |
46 |
0 |
|
|
247413611 |
CW_complex |
E |
Feb. 20, 2024, 2:10 a.m. |
OK |
GNU C++17 |
TESTS |
9 |
46 |
0 |
|
|
247428947 |
Dark.Side |
E |
Feb. 20, 2024, 5:35 a.m. |
OK |
GNU C++17 |
TESTS |
9 |
46 |
0 |
|
|
247374803 |
Miracle567 |
E |
Feb. 19, 2024, 5:33 p.m. |
OK |
GNU C++17 (64) |
TESTS |
6 |
30 |
9625600 |
|
|
247425415 |
toi_thich_ban_lam_biet_0 |
E |
Feb. 20, 2024, 4:54 a.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
31 |
0 |
|
|
247422203 |
dev.m.dodiya |
E |
Feb. 20, 2024, 4:09 a.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
31 |
0 |
|
|
247421906 |
rakesh23 |
E |
Feb. 20, 2024, 4:04 a.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
31 |
0 |
|
|
247417256 |
_T_L_E |
E |
Feb. 20, 2024, 3:05 a.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
31 |
0 |
|
|
247427886 |
vogel-im-kafig |
E |
Feb. 20, 2024, 5:23 a.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
31 |
0 |
|
|
247407000 |
qingshang |
E |
Feb. 20, 2024, 12:03 a.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
31 |
0 |
|
|
247379650 |
sike007 |
E |
Feb. 19, 2024, 6:05 p.m. |
OK |
GNU C++17 (64) |
TESTS |
6 |
31 |
0 |
|
|
247376467 |
skkkkky |
E |
Feb. 19, 2024, 5:44 p.m. |
OK |
GNU C++17 (64) |
TESTS |
6 |
31 |
0 |
|
|
247413362 |
enslaved |
E |
Feb. 20, 2024, 2:06 a.m. |
OK |
GNU C++17 (64) |
TESTS |
9 |
31 |
0 |
|
|
247379400 |
akshadP |
E |
Feb. 19, 2024, 6:04 p.m. |
OK |
GNU C++20 (64) |
TESTS |
6 |
15 |
0 |
|
|
247423776 |
Souture |
E |
Feb. 20, 2024, 4:32 a.m. |
OK |
GNU C++20 (64) |
TESTS |
9 |
15 |
0 |
|
|
247415983 |
Aicu |
E |
Feb. 20, 2024, 2:48 a.m. |
OK |
GNU C++20 (64) |
TESTS |
9 |
15 |
0 |
|
|
247392385 |
AbdoSa3d |
E |
Feb. 19, 2024, 8 p.m. |
OK |
GNU C++20 (64) |
TESTS |
6 |
15 |
0 |
|
|
247387269 |
fevikwik |
E |
Feb. 19, 2024, 7:09 p.m. |
OK |
GNU C++20 (64) |
TESTS |
6 |
15 |
0 |
|
|
247384834 |
freakout |
E |
Feb. 19, 2024, 6:47 p.m. |
OK |
GNU C++20 (64) |
TESTS |
6 |
15 |
0 |
|
|
247383651 |
1111__dek |
E |
Feb. 19, 2024, 6:37 p.m. |
OK |
GNU C++20 (64) |
TESTS |
6 |
15 |
0 |
|
|
247375253 |
BadMi1k_ |
E |
Feb. 19, 2024, 5:36 p.m. |
OK |
GNU C++20 (64) |
TESTS |
6 |
15 |
0 |
|
|
247374731 |
3bdelhady. |
E |
Feb. 19, 2024, 5:33 p.m. |
OK |
GNU C++20 (64) |
TESTS |
6 |
15 |
0 |
|
|
247368483 |
Zhiliye |
E |
Feb. 19, 2024, 5:01 p.m. |
OK |
GNU C++20 (64) |
TESTS |
6 |
15 |
0 |
|
|
247370587 |
JOKEmakeR |
E |
Feb. 19, 2024, 5:10 p.m. |
OK |
Go |
TESTS |
6 |
62 |
2764800 |
|
|
247369209 |
ajayg3059 |
E |
Feb. 19, 2024, 5:04 p.m. |
OK |
Go |
TESTS |
6 |
62 |
2764800 |
|
|
247370883 |
north_069 |
E |
Feb. 19, 2024, 5:12 p.m. |
OK |
Go |
TESTS |
6 |
77 |
2764800 |
|
|
247419691 |
amit_roy |
E |
Feb. 20, 2024, 3:35 a.m. |
OK |
Java 21 |
TESTS |
9 |
248 |
0 |
|
|
247395887 |
nazimazhaan17 |
E |
Feb. 19, 2024, 8:39 p.m. |
OK |
Java 21 |
TESTS |
9 |
280 |
102400 |
|
|
247406508 |
DOOMJUICE |
E |
Feb. 19, 2024, 11:52 p.m. |
OK |
Java 21 |
TESTS |
9 |
311 |
0 |
|
|
247402404 |
polsage |
E |
Feb. 19, 2024, 10:12 p.m. |
OK |
Java 21 |
TESTS |
9 |
311 |
0 |
|
|
247415081 |
fabiowg |
E |
Feb. 20, 2024, 2:34 a.m. |
OK |
Java 21 |
TESTS |
9 |
327 |
0 |
|
|
247369517 |
priyaroy3370 |
E |
Feb. 19, 2024, 5:05 p.m. |
OK |
Java 21 |
TESTS |
6 |
327 |
0 |
|
|
247372405 |
InfinityX |
E |
Feb. 19, 2024, 5:19 p.m. |
OK |
Java 21 |
TESTS |
6 |
374 |
0 |
|
|
247382109 |
jayantKS29 |
E |
Feb. 19, 2024, 6:24 p.m. |
OK |
Java 21 |
TESTS |
6 |
451 |
0 |
|
|
247369671 |
cflee |
E |
Feb. 19, 2024, 5:06 p.m. |
OK |
Java 21 |
TESTS |
6 |
467 |
0 |
|
|
247401084 |
Akash_Sardar |
E |
Feb. 19, 2024, 9:48 p.m. |
OK |
Java 21 |
TESTS |
9 |
483 |
2355200 |
|
|
247374200 |
Hend_Hoseiny |
E |
Feb. 19, 2024, 5:29 p.m. |
OK |
Java 8 |
TESTS |
6 |
109 |
0 |
|
|
247403985 |
gdax |
E |
Feb. 19, 2024, 10:47 p.m. |
OK |
Java 8 |
TESTS |
9 |
139 |
0 |
|
|
247423946 |
NerfThis |
E |
Feb. 20, 2024, 4:34 a.m. |
OK |
Java 8 |
TESTS |
9 |
140 |
0 |
|
|
247415534 |
Xing_ke |
E |
Feb. 20, 2024, 2:41 a.m. |
OK |
Java 8 |
TESTS |
9 |
140 |
0 |
|
|
247404100 |
gdax |
E |
Feb. 19, 2024, 10:50 p.m. |
OK |
Java 8 |
TESTS |
9 |
140 |
0 |
|
|
247372387 |
dwoolley3 |
E |
Feb. 19, 2024, 5:19 p.m. |
OK |
Java 8 |
TESTS |
6 |
140 |
0 |
|
|
247408065 |
Safawt |
E |
Feb. 20, 2024, 12:28 a.m. |
OK |
Java 8 |
TESTS |
9 |
155 |
0 |
|
|
247382554 |
abhayrajnegi0416 |
E |
Feb. 19, 2024, 6:28 p.m. |
OK |
Java 8 |
TESTS |
6 |
156 |
0 |
|
|
247380538 |
mada-mada |
E |
Feb. 19, 2024, 6:12 p.m. |
OK |
Java 8 |
TESTS |
6 |
342 |
0 |
|
|
247426330 |
lovejsn |
E |
Feb. 20, 2024, 5:05 a.m. |
OK |
Java 8 |
TESTS |
9 |
467 |
0 |
|
|
247424338 |
aluckyboy |
E |
Feb. 20, 2024, 4:40 a.m. |
OK |
MS C++ 2017 |
TESTS |
9 |
264 |
0 |
|
|
247424932 |
twispifoxy |
E |
Feb. 20, 2024, 4:48 a.m. |
OK |
MS C++ 2017 |
TESTS |
9 |
296 |
0 |
|
|
247382339 |
Abhay_Sharma |
E |
Feb. 19, 2024, 6:26 p.m. |
OK |
MS C++ 2017 |
TESTS |
6 |
312 |
0 |
|
|
247416058 |
Abhay_Sharma |
E |
Feb. 20, 2024, 2:49 a.m. |
OK |
MS C++ 2017 |
TESTS |
9 |
343 |
0 |
|
|
247396428 |
danielreker |
E |
Feb. 19, 2024, 8:45 p.m. |
OK |
MS C++ 2017 |
TESTS |
9 |
389 |
102400 |
|
|
247416686 |
PROELECTRO444 |
E |
Feb. 20, 2024, 2:57 a.m. |
OK |
OCaml |
TESTS |
9 |
202 |
2764800 |
|
|
247425009 |
luoingly |
E |
Feb. 20, 2024, 4:49 a.m. |
OK |
PHP |
TESTS |
9 |
373 |
0 |
|
|
247410565 |
Little_Sheep_Yawn |
E |
Feb. 20, 2024, 1:17 a.m. |
OK |
PyPy 3 |
TESTS |
9 |
373 |
9830400 |
|
|
247380679 |
aguaMT |
E |
Feb. 19, 2024, 6:13 p.m. |
OK |
PyPy 3 |
TESTS |
6 |
811 |
7270400 |
|
|
247373448 |
MdNazmulHossain |
E |
Feb. 19, 2024, 5:25 p.m. |
OK |
PyPy 3 |
TESTS |
6 |
888 |
10547200 |
|
|
247376075 |
_justSam_ |
E |
Feb. 19, 2024, 5:41 p.m. |
OK |
PyPy 3 |
TESTS |
6 |
920 |
9318400 |
|
|
247405043 |
RobinFromTheHood |
E |
Feb. 19, 2024, 11:13 p.m. |
OK |
PyPy 3-64 |
TESTS |
9 |
124 |
9216000 |
|
|
247431275 |
mikeac |
E |
Feb. 20, 2024, 6 a.m. |
OK |
PyPy 3-64 |
TESTS |
9 |
155 |
10137600 |
|
|
247401494 |
cybsbbb |
E |
Feb. 19, 2024, 9:55 p.m. |
OK |
PyPy 3-64 |
TESTS |
9 |
155 |
10240000 |
|
|
247384815 |
strashila |
E |
Feb. 19, 2024, 6:47 p.m. |
OK |
PyPy 3-64 |
TESTS |
6 |
155 |
10240000 |
|
|
247374520 |
Drought |
E |
Feb. 19, 2024, 5:31 p.m. |
OK |
PyPy 3-64 |
TESTS |
6 |
155 |
10444800 |
|
|
247415690 |
chestnut890123 |
E |
Feb. 20, 2024, 2:44 a.m. |
OK |
PyPy 3-64 |
TESTS |
9 |
170 |
9113600 |
|
|
247370007 |
Drought |
E |
Feb. 19, 2024, 5:07 p.m. |
OK |
PyPy 3-64 |
TESTS |
6 |
170 |
10956800 |
|
|
247380275 |
Gaurav1 |
E |
Feb. 19, 2024, 6:10 p.m. |
OK |
PyPy 3-64 |
TESTS |
6 |
171 |
11059200 |
|
|
247428256 |
Taymyr |
E |
Feb. 20, 2024, 5:26 a.m. |
OK |
PyPy 3-64 |
TESTS |
9 |
186 |
10752000 |
|
|
247391119 |
the_last_smilodon |
E |
Feb. 19, 2024, 7:47 p.m. |
OK |
PyPy 3-64 |
TESTS |
6 |
218 |
11776000 |
|
|
247371001 |
OLOGY |
E |
Feb. 19, 2024, 5:12 p.m. |
OK |
Python 2 |
TESTS |
6 |
296 |
4505600 |
|
|
247382261 |
krism |
E |
Feb. 19, 2024, 6:25 p.m. |
OK |
Python 3 |
TESTS |
6 |
233 |
409600 |
|
|
247387176 |
Sahilamin219 |
E |
Feb. 19, 2024, 7:08 p.m. |
OK |
Python 3 |
TESTS |
6 |
405 |
409600 |
|
|
247384238 |
coderbd |
E |
Feb. 19, 2024, 6:42 p.m. |
OK |
Python 3 |
TESTS |
6 |
561 |
102400 |
|
|
247369976 |
niharikagumpena |
E |
Feb. 19, 2024, 5:07 p.m. |
OK |
Python 3 |
TESTS |
6 |
592 |
102400 |
|
|
247374226 |
Charles_LHN |
E |
Feb. 19, 2024, 5:30 p.m. |
OK |
Python 3 |
TESTS |
6 |
638 |
0 |
|
|
247383483 |
VioletVal |
E |
Feb. 19, 2024, 6:35 p.m. |
OK |
Python 3 |
TESTS |
6 |
639 |
102400 |
|
|
247389521 |
Slata |
E |
Feb. 19, 2024, 7:31 p.m. |
OK |
Python 3 |
TESTS |
6 |
654 |
102400 |
|
|
247380817 |
Bluepanda_x |
E |
Feb. 19, 2024, 6:14 p.m. |
OK |
Python 3 |
TESTS |
6 |
670 |
102400 |
|
|
247389906 |
Slata |
E |
Feb. 19, 2024, 7:35 p.m. |
OK |
Python 3 |
TESTS |
6 |
733 |
102400 |
|
|
247389777 |
Slata |
E |
Feb. 19, 2024, 7:34 p.m. |
OK |
Python 3 |
TESTS |
6 |
810 |
102400 |
|
|
247391662 |
0x81 |
E |
Feb. 19, 2024, 7:52 p.m. |
OK |
Ruby 3 |
TESTS |
6 |
545 |
819200 |
|
|
247410097 |
tamuraup_wa |
E |
Feb. 20, 2024, 1:08 a.m. |
OK |
Rust 2021 |
TESTS |
9 |
31 |
0 |
|
|
247379697 |
KasodaniKyouko |
E |
Feb. 19, 2024, 6:06 p.m. |
OK |
Rust 2021 |
TESTS |
6 |
62 |
0 |
|
|
247378350 |
upliftingwhiffle |
E |
Feb. 19, 2024, 5:56 p.m. |
OK |
Rust 2021 |
TESTS |
6 |
420 |
0 |
|
|
247383309 |
snamy520 |
E |
Feb. 19, 2024, 6:34 p.m. |
OK |
Rust 2021 |
TESTS |
6 |
452 |
0 |
|
|
remove filters
Back to search problems