結果
| 問題 | No.183 たのしい排他的論理和(EASY) |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2017-10-22 14:18:55 |
| 言語 | Ruby (4.0.2) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 210 bytes |
| 記録 | |
| コンパイル時間 | 213 ms |
| コンパイル使用メモリ | 9,216 KB |
| 実行使用メモリ | 29,696 KB |
| 最終ジャッジ日時 | 2026-05-15 17:36:57 |
| 合計ジャッジ時間 | 27,841 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 TLE * 3 -- * 8 |
コンパイルメッセージ
Syntax OK
ソースコード
gets.to_i
as=gets.split.map{|e| e.to_i}
dp=[]
(0..16384).each{
dp.push(0)
}
dp[0]=1
as.each{|a|
(0..16384).each{|e|
if dp[e]!=0 then
dp[a^e]=1
end
}
}
ans=0
(0..16384).each{|e|
ans+=dp[e]
}
puts ans
horiesiniti