結果

問題 No.130 XOR Minimax
ユーザー gigurururu
提出日時 2015-01-16 23:48:19
言語 Ruby
(3.4.1)
結果
WA  
実行時間 -
コード長 92 bytes
コンパイル時間 446 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 20,352 KB
最終ジャッジ日時 2024-06-22 12:27:01
合計ジャッジ時間 4,218 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 2 WA * 19
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
a=gets.split.map(&:to_i)
m=a.max
ans=a.map{|i|i^m}.max
p ans<1?0:2**Math.log2(ans).ceil
0