結果

問題 No.130 XOR Minimax
ユーザー syarosyaro
提出日時 2016-02-22 22:17:55
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 128 bytes
コンパイル時間 288 ms
コンパイル使用メモリ 11,968 KB
実行使用メモリ 32,660 KB
最終ジャッジ日時 2023-10-23 19:22:07
合計ジャッジ時間 10,149 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 86 ms
16,096 KB
testcase_02 WA -
testcase_03 AC 87 ms
16,096 KB
testcase_04 AC 318 ms
22,180 KB
testcase_05 AC 153 ms
24,908 KB
testcase_06 AC 500 ms
32,660 KB
testcase_07 WA -
testcase_08 AC 647 ms
30,160 KB
testcase_09 AC 149 ms
17,904 KB
testcase_10 AC 188 ms
19,092 KB
testcase_11 WA -
testcase_12 AC 116 ms
16,844 KB
testcase_13 AC 375 ms
28,644 KB
testcase_14 AC 549 ms
24,480 KB
testcase_15 WA -
testcase_16 AC 405 ms
23,820 KB
testcase_17 WA -
testcase_18 AC 435 ms
24,404 KB
testcase_19 AC 515 ms
23,844 KB
testcase_20 AC 287 ms
21,544 KB
testcase_21 AC 539 ms
24,344 KB
testcase_22 AC 175 ms
17,584 KB
testcase_23 AC 114 ms
16,452 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

f=->(d,v){d<0?0:(a=v.select{|x|x[d]>0})[0]&&(v-=a)[0]?2**d+[f[d-=1,a],f[d,v]].min: f[d-1,v]}
gets
p f[30,gets.split.map(&:to_i)]
0