結果

問題 No.130 XOR Minimax
ユーザー %20%20
提出日時 2017-09-11 17:26:38
言語 cLay
(20240104-1)
結果
AC  
実行時間 22 ms / 5,000 ms
コード長 188 bytes
コンパイル時間 2,201 ms
コンパイル使用メモリ 163,180 KB
実行使用メモリ 6,404 KB
最終ジャッジ日時 2023-09-18 23:34:48
合計ジャッジ時間 4,789 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,980 KB
testcase_01 AC 2 ms
5,404 KB
testcase_02 AC 2 ms
5,452 KB
testcase_03 AC 2 ms
5,444 KB
testcase_04 AC 4 ms
6,224 KB
testcase_05 AC 6 ms
6,304 KB
testcase_06 AC 5 ms
6,172 KB
testcase_07 AC 7 ms
6,272 KB
testcase_08 AC 16 ms
6,404 KB
testcase_09 AC 4 ms
5,500 KB
testcase_10 AC 5 ms
5,620 KB
testcase_11 AC 12 ms
6,096 KB
testcase_12 AC 3 ms
5,720 KB
testcase_13 AC 10 ms
5,912 KB
testcase_14 AC 22 ms
6,180 KB
testcase_15 AC 2 ms
5,468 KB
testcase_16 AC 16 ms
5,908 KB
testcase_17 AC 16 ms
5,872 KB
testcase_18 AC 17 ms
5,892 KB
testcase_19 AC 20 ms
6,056 KB
testcase_20 AC 11 ms
5,740 KB
testcase_21 AC 21 ms
6,232 KB
testcase_22 AC 6 ms
5,720 KB
testcase_23 AC 3 ms
5,436 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<0?0:(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);}{rd(N,a(N));sort(a,a+N);wt(f(29,0,N));}
0