Maximum And Queries (easy version)
1903D11700· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
4 21 3 7 5210
Output
26
Sample 2of 3
Input
3 54 0 2981713
Output
54701
Sample 3of 3
Input
1 21052318381298321
Output
152318381298331
58%
1903D1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)