結果
問題 | No.183 たのしい排他的論理和(EASY) |
ユーザー | 👑 horiesiniti |
提出日時 | 2017-10-22 14:18:55 |
言語 | Ruby (3.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 210 bytes |
コンパイル時間 | 66 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 17,920 KB |
最終ジャッジ日時 | 2024-05-01 10:16:15 |
合計ジャッジ時間 | 7,649 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 103 ms
12,416 KB |
testcase_01 | AC | 104 ms
12,288 KB |
testcase_02 | AC | 111 ms
12,288 KB |
testcase_03 | AC | 108 ms
12,160 KB |
testcase_04 | AC | 97 ms
12,160 KB |
testcase_05 | AC | 112 ms
12,288 KB |
testcase_06 | AC | 102 ms
12,288 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
ソースコード
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