結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
![]() |
提出日時 | 2018-03-13 18:40:24 |
言語 | Ruby (3.4.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 205 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 24,832 KB |
最終ジャッジ日時 | 2024-11-22 12:19:00 |
合計ジャッジ時間 | 50,943 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 TLE * 7 |
コンパイルメッセージ
Syntax OK
ソースコード
hs={} gets x=gets.split.map{|e| e.to_i} x.each{|e| hs[e]=1 } cs=40000.times.map{0} cs[0]=1 hs.keys.each{|e| cs.size.times{|e2| if cs[e2]!=0 cs[e^e2]=1 end } } ans=0 cs.each{|e| ans+=e } puts ans