結果

問題 No.130 XOR Minimax
ユーザー %20%20
提出日時 2017-09-12 00:37:18
言語 cLay
(20240104-1)
結果
AC  
実行時間 22 ms / 5,000 ms
コード長 186 bytes
コンパイル時間 2,084 ms
コンパイル使用メモリ 163,368 KB
実行使用メモリ 6,308 KB
最終ジャッジ日時 2023-09-18 23:35:14
合計ジャッジ時間 3,510 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,712 KB
testcase_01 AC 2 ms
5,452 KB
testcase_02 AC 2 ms
5,592 KB
testcase_03 AC 2 ms
5,524 KB
testcase_04 AC 4 ms
6,168 KB
testcase_05 AC 6 ms
6,308 KB
testcase_06 AC 6 ms
6,176 KB
testcase_07 AC 6 ms
6,264 KB
testcase_08 AC 16 ms
6,200 KB
testcase_09 AC 4 ms
5,580 KB
testcase_10 AC 5 ms
5,568 KB
testcase_11 AC 12 ms
6,160 KB
testcase_12 AC 2 ms
5,440 KB
testcase_13 AC 10 ms
5,904 KB
testcase_14 AC 22 ms
6,180 KB
testcase_15 AC 2 ms
5,396 KB
testcase_16 AC 16 ms
5,836 KB
testcase_17 AC 16 ms
5,932 KB
testcase_18 AC 17 ms
5,956 KB
testcase_19 AC 21 ms
6,204 KB
testcase_20 AC 11 ms
5,752 KB
testcase_21 AC 21 ms
6,208 KB
testcase_22 AC 6 ms
5,512 KB
testcase_23 AC 3 ms
5,424 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:239:13: warning: multi-character character constant [-Wmultichar]
 long long a[' # '];
             ^~~~~

ソースコード

diff #

ll N,a[' # '],i;ll f(ll s,ll l,ll r){ll m;return~s?(m=lower_bound(a+l,a+r,a[l]&-(1<<s)|1<<s)-a)-l&&m-r?1<<s--|min(f(s,l,m),f(s,m,r)):f(s-1,l,r):0;}{rd(N,a(N));sort(a,a+N);wt(f(29,0,N));}
0