結果
問題 | No.183 たのしい排他的論理和(EASY) |
ユーザー | 👑 horiesiniti |
提出日時 | 2018-03-13 18:40:24 |
言語 | Ruby (3.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 205 bytes |
コンパイル時間 | 187 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 19,488 KB |
最終ジャッジ日時 | 2024-05-02 02:31:59 |
合計ジャッジ時間 | 7,857 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 115 ms
12,288 KB |
testcase_01 | AC | 108 ms
12,416 KB |
testcase_02 | AC | 146 ms
12,288 KB |
testcase_03 | AC | 131 ms
12,416 KB |
testcase_04 | AC | 109 ms
12,288 KB |
testcase_05 | AC | 142 ms
12,416 KB |
testcase_06 | AC | 122 ms
12,416 KB |
testcase_07 | TLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
コンパイルメッセージ
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