cf/mirror

Max Sum OR (Hard Version)

CF
2146D22000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
7
0 3
0 9
0 15
6 10
1 4
3 6
1000000007 1000000009
Output
12
3 2 1 0
90
7 8 5 4 3 2 9 0 1 6
240
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
70
10 8 7 6 9
20
2 1 4 3
28
4 3 6 5
3000000039
1000000008 1000000007 1000000009
2146D2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)