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'Given an integer n , find the maximum value of integer k such that the following condition holds: The first line contains a single integer t ( 1 <= t <= 3 cdot 10^4 ). Then t test cases follow. The first line of each test case contains a single integer n ( 1 <= n <= 10^9 ). For each test case, output a single integer -- the required integer k . In the first testcase, the maximum value for which the continuous & operation gives 0 value, is 1. In the second testcase, the maximum value for which the continuous & operation gives 0 value, is 3. No value greater then 3, say for example 4, will give the & sum 0. Hence, 3 is the answer. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
116859212 |
Bhaskar9518 |
A |
May 20, 2021, 8:34 p.m. |
OK |
Clang++17 Diagnostics |
TESTS |
10 |
421 |
0 |
|
800 |
116870289 |
harsh523 |
A |
May 21, 2021, 2:48 a.m. |
OK |
Clang++17 Diagnostics |
TESTS |
10 |
436 |
0 |
|
800 |
116868618 |
jaikaran |
A |
May 21, 2021, 2:13 a.m. |
OK |
Clang++17 Diagnostics |
TESTS |
10 |
639 |
1024000 |
|
800 |
116859655 |
StoAdoVroAvic |
A |
May 20, 2021, 8:45 p.m. |
OK |
GNU C11 |
TESTS |
10 |
124 |
0 |
|
800 |
116847474 |
Leangles |
A |
May 20, 2021, 5:49 p.m. |
OK |
GNU C11 |
TESTS |
10 |
139 |
0 |
|
800 |
116883214 |
namangg |
A |
May 21, 2021, 6:01 a.m. |
OK |
GNU C11 |
TESTS |
10 |
139 |
0 |
|
800 |
116865919 |
Raj_kumar_ray |
A |
May 21, 2021, 12:48 a.m. |
OK |
GNU C11 |
TESTS |
10 |
140 |
0 |
|
800 |
116872072 |
sumanthbittu |
A |
May 21, 2021, 3:21 a.m. |
OK |
GNU C11 |
TESTS |
10 |
140 |
0 |
|
800 |
116883033 |
namangg |
A |
May 21, 2021, 5:59 a.m. |
OK |
GNU C11 |
TESTS |
10 |
140 |
0 |
|
800 |
116883114 |
namangg |
A |
May 21, 2021, 6 a.m. |
OK |
GNU C11 |
TESTS |
10 |
140 |
0 |
|
800 |
116854000 |
shihab4t |
A |
May 20, 2021, 7 p.m. |
OK |
GNU C11 |
TESTS |
10 |
140 |
0 |
|
800 |
116858391 |
Jexy |
A |
May 20, 2021, 8:17 p.m. |
OK |
GNU C11 |
TESTS |
10 |
140 |
0 |
|
800 |
116839576 |
poorvaja |
A |
May 20, 2021, 4:31 p.m. |
OK |
GNU C11 |
TESTS |
10 |
155 |
0 |
|
800 |
116869624 |
M652 |
A |
May 21, 2021, 2:33 a.m. |
OK |
GNU C++11 |
TESTS |
10 |
15 |
0 |
|
800 |
116864263 |
limpid |
A |
May 20, 2021, 11:35 p.m. |
OK |
GNU C++11 |
TESTS |
10 |
30 |
0 |
|
800 |
116876299 |
I_do_not_know |
A |
May 21, 2021, 4:28 a.m. |
OK |
GNU C++11 |
TESTS |
10 |
31 |
0 |
|
800 |
116875259 |
TLP.39 |
A |
May 21, 2021, 4:12 a.m. |
OK |
GNU C++11 |
TESTS |
10 |
31 |
0 |
|
800 |
116880693 |
ranranzl |
A |
May 21, 2021, 5:29 a.m. |
OK |
GNU C++11 |
TESTS |
10 |
31 |
0 |
|
800 |
116881925 |
zycany |
A |
May 21, 2021, 5:45 a.m. |
OK |
GNU C++11 |
TESTS |
10 |
31 |
0 |
|
800 |
116882543 |
bkifhr8 |
A |
May 21, 2021, 5:53 a.m. |
OK |
GNU C++11 |
TESTS |
10 |
31 |
0 |
|
800 |
116882675 |
YeeBy |
A |
May 21, 2021, 5:54 a.m. |
OK |
GNU C++11 |
TESTS |
10 |
31 |
0 |
|
800 |
116880115 |
qdez_syc |
A |
May 21, 2021, 5:22 a.m. |
OK |
GNU C++11 |
TESTS |
10 |
31 |
0 |
|
800 |
116876782 |
remnantsaint |
A |
May 21, 2021, 4:36 a.m. |
OK |
GNU C++11 |
TESTS |
10 |
31 |
0 |
|
800 |
116864228 |
grindyl1402 |
A |
May 20, 2021, 11:33 p.m. |
OK |
GNU C++14 |
TESTS |
10 |
30 |
0 |
|
800 |
116873498 |
gray_lazy_life |
A |
May 21, 2021, 3:44 a.m. |
OK |
GNU C++14 |
TESTS |
10 |
31 |
0 |
|
800 |
116877849 |
E_Murarry_Reddy |
A |
May 21, 2021, 4:50 a.m. |
OK |
GNU C++14 |
TESTS |
10 |
31 |
0 |
|
800 |
116874203 |
_Sabib_ |
A |
May 21, 2021, 3:56 a.m. |
OK |
GNU C++14 |
TESTS |
10 |
31 |
0 |
|
800 |
116870554 |
toshant_n |
A |
May 21, 2021, 2:53 a.m. |
OK |
GNU C++14 |
TESTS |
10 |
31 |
0 |
|
800 |
116882380 |
noblejoy20 |
A |
May 21, 2021, 5:50 a.m. |
OK |
GNU C++14 |
TESTS |
10 |
31 |
0 |
|
800 |
116882537 |
hemanthiitian |
A |
May 21, 2021, 5:52 a.m. |
OK |
GNU C++14 |
TESTS |
10 |
31 |
0 |
|
800 |
116880094 |
nidhishp1407 |
A |
May 21, 2021, 5:22 a.m. |
OK |
GNU C++14 |
TESTS |
10 |
31 |
0 |
|
800 |
116879458 |
SkyWalkerPS |
A |
May 21, 2021, 5:13 a.m. |
OK |
GNU C++14 |
TESTS |
10 |
31 |
0 |
|
800 |
116877962 |
rashig123 |
A |
May 21, 2021, 4:51 a.m. |
OK |
GNU C++14 |
TESTS |
10 |
31 |
0 |
|
800 |
116854822 |
saftig |
A |
May 20, 2021, 7:13 p.m. |
OK |
GNU C++17 |
TESTS |
10 |
30 |
0 |
|
800 |
116849776 |
nizamoff |
A |
May 20, 2021, 6:08 p.m. |
OK |
GNU C++17 |
TESTS |
10 |
30 |
0 |
|
800 |
116874209 |
prowl |
A |
May 21, 2021, 3:56 a.m. |
OK |
GNU C++17 |
TESTS |
10 |
30 |
0 |
|
800 |
116882490 |
Ahnaf_ |
A |
May 21, 2021, 5:52 a.m. |
OK |
GNU C++17 |
TESTS |
10 |
31 |
0 |
|
800 |
116882831 |
AdiIslam |
A |
May 21, 2021, 5:56 a.m. |
OK |
GNU C++17 |
TESTS |
10 |
31 |
0 |
|
800 |
116881838 |
__shivam_kumar |
A |
May 21, 2021, 5:44 a.m. |
OK |
GNU C++17 |
TESTS |
10 |
31 |
0 |
|
800 |
116881375 |
anubh4v |
A |
May 21, 2021, 5:38 a.m. |
OK |
GNU C++17 |
TESTS |
10 |
31 |
0 |
|
800 |
116881281 |
khoya_musafir |
A |
May 21, 2021, 5:37 a.m. |
OK |
GNU C++17 |
TESTS |
10 |
31 |
0 |
|
800 |
116880655 |
juuichi |
A |
May 21, 2021, 5:29 a.m. |
OK |
GNU C++17 |
TESTS |
10 |
31 |
0 |
|
800 |
116880464 |
lllllan |
A |
May 21, 2021, 5:26 a.m. |
OK |
GNU C++17 |
TESTS |
10 |
31 |
0 |
|
800 |
116869356 |
DanielMontes |
A |
May 21, 2021, 2:28 a.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
15 |
0 |
|
800 |
116868614 |
wistful23 |
A |
May 21, 2021, 2:13 a.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
15 |
0 |
|
800 |
116849088 |
ronit_singh |
A |
May 20, 2021, 6:02 p.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
30 |
0 |
|
800 |
116858903 |
q5123444 |
A |
May 20, 2021, 8:28 p.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
30 |
0 |
|
800 |
116862026 |
brkdnmz |
A |
May 20, 2021, 9:55 p.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
30 |
0 |
|
800 |
116865141 |
pavement |
A |
May 21, 2021, 12:16 a.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
30 |
0 |
|
800 |
116872794 |
___dreamer__ |
A |
May 21, 2021, 3:32 a.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
30 |
0 |
|
800 |
116876233 |
golden.duck |
A |
May 21, 2021, 4:28 a.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
30 |
0 |
|
800 |
116846097 |
Teertha |
A |
May 20, 2021, 5:39 p.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
30 |
0 |
|
800 |
116855786 |
JohnSmith0081 |
A |
May 20, 2021, 7:29 p.m. |
OK |
GNU C++17 (64) |
TESTS |
10 |
30 |
3788800 |
|
800 |
116872956 |
0x3F |
A |
May 21, 2021, 3:35 a.m. |
OK |
Go |
TESTS |
10 |
62 |
102400 |
|
800 |
116857709 |
thiebt |
A |
May 20, 2021, 8:03 p.m. |
OK |
Go |
TESTS |
10 |
140 |
0 |
|
800 |
116849902 |
dhruvil_8803 |
A |
May 20, 2021, 6:10 p.m. |
OK |
Java 11 |
TESTS |
10 |
187 |
0 |
|
800 |
116847234 |
hoffrj |
A |
May 20, 2021, 5:47 p.m. |
OK |
Java 11 |
TESTS |
10 |
202 |
0 |
|
800 |
116855323 |
liu |
A |
May 20, 2021, 7:21 p.m. |
OK |
Java 11 |
TESTS |
10 |
202 |
0 |
|
800 |
116855271 |
gouravkrosx |
A |
May 20, 2021, 7:21 p.m. |
OK |
Java 11 |
TESTS |
10 |
202 |
0 |
|
800 |
116846136 |
coder0687 |
A |
May 20, 2021, 5:39 p.m. |
OK |
Java 11 |
TESTS |
10 |
202 |
0 |
|
800 |
116844886 |
ypa |
A |
May 20, 2021, 5:33 p.m. |
OK |
Java 11 |
TESTS |
10 |
218 |
0 |
|
800 |
116874062 |
dhruvil_8803 |
A |
May 21, 2021, 3:53 a.m. |
OK |
Java 11 |
TESTS |
10 |
218 |
0 |
|
800 |
116845866 |
HastaLaVistaLa |
A |
May 20, 2021, 5:37 p.m. |
OK |
Java 11 |
TESTS |
10 |
265 |
0 |
|
800 |
116853662 |
ravi7799 |
A |
May 20, 2021, 6:55 p.m. |
OK |
Java 11 |
TESTS |
10 |
280 |
0 |
|
800 |
116878749 |
tushar_patil |
A |
May 21, 2021, 5:03 a.m. |
OK |
Java 11 |
TESTS |
10 |
311 |
0 |
|
800 |
116850806 |
Adi_7861 |
A |
May 20, 2021, 6:20 p.m. |
OK |
Java 8 |
TESTS |
10 |
124 |
0 |
|
800 |
116846390 |
Gupta-OP |
A |
May 20, 2021, 5:41 p.m. |
OK |
Java 8 |
TESTS |
10 |
124 |
0 |
|
800 |
116845338 |
gssakash |
A |
May 20, 2021, 5:35 p.m. |
OK |
Java 8 |
TESTS |
10 |
124 |
0 |
|
800 |
116876525 |
BestEveryman |
A |
May 21, 2021, 4:32 a.m. |
OK |
Java 8 |
TESTS |
10 |
124 |
0 |
|
800 |
116875270 |
Pranay2516 |
A |
May 21, 2021, 4:12 a.m. |
OK |
Java 8 |
TESTS |
10 |
124 |
0 |
|
800 |
116857755 |
twoBit |
A |
May 20, 2021, 8:05 p.m. |
OK |
Java 8 |
TESTS |
10 |
124 |
0 |
|
800 |
116851930 |
rohitoberoi2000 |
A |
May 20, 2021, 6:32 p.m. |
OK |
Java 8 |
TESTS |
10 |
124 |
0 |
|
800 |
116872820 |
thedesalizes |
A |
May 21, 2021, 3:33 a.m. |
OK |
Java 8 |
TESTS |
10 |
139 |
0 |
|
800 |
116846200 |
gssakash |
A |
May 20, 2021, 5:39 p.m. |
OK |
Java 8 |
TESTS |
10 |
140 |
0 |
|
800 |
116851798 |
CODERSOURAV |
A |
May 20, 2021, 6:31 p.m. |
OK |
Java 8 |
TESTS |
10 |
140 |
0 |
|
800 |
116864929 |
BugLeave |
A |
May 21, 2021, 12:07 a.m. |
OK |
Kotlin |
TESTS |
10 |
155 |
102400 |
|
800 |
116876097 |
xoolwater |
A |
May 21, 2021, 4:26 a.m. |
OK |
Kotlin |
TESTS |
10 |
343 |
0 |
|
800 |
116876851 |
codersanjeev |
A |
May 21, 2021, 4:36 a.m. |
OK |
Kotlin |
TESTS |
10 |
358 |
0 |
|
800 |
116870553 |
Cx330_L |
A |
May 21, 2021, 2:53 a.m. |
OK |
MS C++ 2017 |
TESTS |
10 |
46 |
0 |
|
800 |
116858381 |
nemethm |
A |
May 20, 2021, 8:17 p.m. |
OK |
MS C++ 2017 |
TESTS |
10 |
62 |
0 |
|
800 |
116860171 |
kunal_nayak |
A |
May 20, 2021, 8:59 p.m. |
OK |
MS C++ 2017 |
TESTS |
10 |
155 |
0 |
|
800 |
116870041 |
lnge |
A |
May 21, 2021, 2:42 a.m. |
OK |
MS C++ 2017 |
TESTS |
10 |
155 |
0 |
|
800 |
116873213 |
ue205006.akash.ece |
A |
May 21, 2021, 3:40 a.m. |
OK |
MS C++ 2017 |
TESTS |
10 |
156 |
0 |
|
800 |
116842474 |
colossal_pepe |
A |
May 20, 2021, 4:34 p.m. |
OK |
MS C++ 2017 |
TESTS |
10 |
171 |
0 |
|
800 |
116876065 |
ShallowKiss |
A |
May 21, 2021, 4:25 a.m. |
OK |
MS C++ 2017 |
TESTS |
10 |
171 |
0 |
|
800 |
116851122 |
tejaswini122 |
A |
May 20, 2021, 6:23 p.m. |
OK |
MS C++ 2017 |
TESTS |
10 |
171 |
0 |
|
800 |
116840305 |
TianMings |
A |
May 20, 2021, 4:32 p.m. |
OK |
MS C++ 2017 |
TESTS |
10 |
171 |
0 |
|
800 |
116876215 |
bluelueluelue |
A |
May 21, 2021, 4:27 a.m. |
OK |
MS C++ 2017 |
TESTS |
10 |
187 |
0 |
|
800 |
116846533 |
Insurkin |
A |
May 20, 2021, 5:42 p.m. |
OK |
.NET Core C# |
TESTS |
10 |
280 |
2560000 |
|
800 |
116875348 |
MadinaN |
A |
May 21, 2021, 4:13 a.m. |
OK |
PHP |
TESTS |
10 |
171 |
0 |
|
800 |
116871335 |
rishabnahar2025 |
A |
May 21, 2021, 3:08 a.m. |
OK |
PyPy 2 |
TESTS |
10 |
218 |
10649600 |
|
800 |
116870147 |
srijan.sarkar |
A |
May 21, 2021, 2:45 a.m. |
OK |
PyPy 3 |
TESTS |
10 |
171 |
5427200 |
|
800 |
116850103 |
_aadiupadhyay_ |
A |
May 20, 2021, 6:12 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
171 |
6246400 |
|
800 |
116848245 |
evoxtorm |
A |
May 20, 2021, 5:55 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
202 |
5427200 |
|
800 |
116853904 |
shantol |
A |
May 20, 2021, 6:59 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
202 |
5939200 |
|
800 |
116868217 |
Munchy_1 |
A |
May 21, 2021, 2:04 a.m. |
OK |
PyPy 3 |
TESTS |
10 |
202 |
202444800 |
|
800 |
116846059 |
6-_-9 |
A |
May 20, 2021, 5:39 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
217 |
6451200 |
|
800 |
116876554 |
jainil4801 |
A |
May 21, 2021, 4:32 a.m. |
OK |
PyPy 3 |
TESTS |
10 |
218 |
6553600 |
|
800 |
116863016 |
crapcode |
A |
May 20, 2021, 10:35 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
218 |
7168000 |
|
800 |
116852592 |
___Neo___ |
A |
May 20, 2021, 6:40 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
218 |
7680000 |
|
800 |
116850893 |
asheux |
A |
May 20, 2021, 6:21 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
233 |
6041600 |
|
800 |
116867702 |
westwakki |
A |
May 21, 2021, 1:49 a.m. |
OK |
Python 3 |
TESTS |
10 |
140 |
102400 |
|
800 |
116847256 |
sedenion |
A |
May 20, 2021, 5:47 p.m. |
OK |
Python 3 |
TESTS |
10 |
187 |
1740800 |
|
800 |
116839453 |
The_KingSlayer_ |
A |
May 20, 2021, 4:31 p.m. |
OK |
Python 3 |
TESTS |
10 |
218 |
1740800 |
|
800 |
116882927 |
M0u1ea5 |
A |
May 21, 2021, 5:58 a.m. |
OK |
Python 3 |
TESTS |
10 |
234 |
102400 |
|
800 |
116881370 |
ch_vardhini97 |
A |
May 21, 2021, 5:38 a.m. |
OK |
Python 3 |
TESTS |
10 |
249 |
1740800 |
|
800 |
116853490 |
Paneru__76 |
A |
May 20, 2021, 6:52 p.m. |
OK |
Python 3 |
TESTS |
10 |
249 |
1740800 |
|
800 |
116845534 |
The_KingSlayer_ |
A |
May 20, 2021, 5:36 p.m. |
OK |
Python 3 |
TESTS |
10 |
264 |
1536000 |
|
800 |
116866743 |
SF-Manman |
A |
May 21, 2021, 1:18 a.m. |
OK |
Python 3 |
TESTS |
10 |
280 |
0 |
|
800 |
116876567 |
Minindu2006 |
A |
May 21, 2021, 4:33 a.m. |
OK |
Python 3 |
TESTS |
10 |
311 |
0 |
|
800 |
116852314 |
n4vn3t |
A |
May 20, 2021, 6:36 p.m. |
OK |
Python 3 |
TESTS |
10 |
311 |
0 |
|
800 |
116851964 |
gustavofadel |
A |
May 20, 2021, 6:32 p.m. |
OK |
Python 3 + libs |
TESTS |
10 |
249 |
0 |
|
800 |
116868356 |
kb_3008 |
A |
May 21, 2021, 2:07 a.m. |
OK |
Python 3 + libs |
TESTS |
10 |
265 |
0 |
|
800 |
116847403 |
SgnJp |
A |
May 20, 2021, 5:48 p.m. |
OK |
Python 3 + libs |
TESTS |
10 |
296 |
0 |
|
800 |
116870365 |
kb_3008 |
A |
May 21, 2021, 2:49 a.m. |
OK |
Python 3 + libs |
TESTS |
10 |
358 |
0 |
|
800 |
116859534 |
MrMopi5000 |
A |
May 20, 2021, 8:42 p.m. |
OK |
Ruby 3 |
TESTS |
10 |
327 |
307200 |
|
800 |
116858732 |
p00f |
A |
May 20, 2021, 8:24 p.m. |
OK |
Rust |
TESTS |
10 |
31 |
0 |
|
800 |
116879130 |
satylogin |
A |
May 21, 2021, 5:08 a.m. |
OK |
Rust |
TESTS |
10 |
46 |
0 |
|
800 |
116840417 |
Epikem |
A |
May 20, 2021, 4:32 p.m. |
OK |
Rust |
TESTS |
10 |
311 |
0 |
|
800 |
remove filters
Back to search problems