結果

問題 No.184 たのしい排他的論理和(HARD)
ユーザー finefine
提出日時 2016-03-31 23:08:52
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 92 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 11,224 KB
実行使用メモリ 31,084 KB
最終ジャッジ日時 2023-09-17 17:29:58
合計ジャッジ時間 6,236 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,140 KB
testcase_01 AC 82 ms
14,900 KB
testcase_02 AC 83 ms
15,072 KB
testcase_03 AC 82 ms
15,068 KB
testcase_04 AC 82 ms
15,100 KB
testcase_05 AC 82 ms
15,024 KB
testcase_06 AC 83 ms
15,156 KB
testcase_07 AC 83 ms
15,096 KB
testcase_08 AC 127 ms
26,296 KB
testcase_09 AC 92 ms
17,000 KB
testcase_10 AC 118 ms
23,460 KB
testcase_11 AC 109 ms
21,152 KB
testcase_12 AC 132 ms
28,064 KB
testcase_13 AC 144 ms
29,216 KB
testcase_14 AC 117 ms
23,152 KB
testcase_15 AC 153 ms
30,380 KB
testcase_16 AC 133 ms
27,688 KB
testcase_17 AC 136 ms
28,808 KB
testcase_18 AC 83 ms
15,100 KB
testcase_19 AC 83 ms
15,072 KB
testcase_20 AC 128 ms
22,328 KB
testcase_21 AC 152 ms
31,084 KB
testcase_22 AC 154 ms
30,832 KB
testcase_23 AC 82 ms
14,896 KB
testcase_24 AC 83 ms
15,316 KB
testcase_25 AC 83 ms
15,072 KB
testcase_26 AC 82 ms
15,012 KB
testcase_27 AC 83 ms
14,896 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 152 ms
30,700 KB
testcase_34 AC 150 ms
30,520 KB
testcase_35 AC 153 ms
30,820 KB
testcase_36 AC 158 ms
30,664 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
a = gets.split.map(&:to_i).uniq
p 1 << [a.inject(:|).to_s(2).count('1'),n].min
0