結果
| 問題 |
No.1674 Introduction to XOR
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2023-07-07 05:58:10 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 83 ms / 1,000 ms |
| コード長 | 118 bytes |
| コンパイル時間 | 470 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-07-21 00:42:40 |
| 合計ジャッジ時間 | 3,913 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n=gets.to_i
xs=gets.split(" ").map{|e| e.to_i}
t=0
xs.each{|x|
t=t|x
}
ans=1
while (t&ans)>0 do
ans*=2
end
puts ans
horiesiniti