結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー 👑 horiesinitihoriesiniti
提出日時 2018-03-13 17:59:41
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 212 bytes
コンパイル時間 41 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,544 KB
最終ジャッジ日時 2024-05-02 01:48:10
合計ジャッジ時間 2,552 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
12,160 KB
testcase_01 AC 85 ms
12,288 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 75 ms
12,288 KB
testcase_06 WA -
testcase_07 AC 89 ms
12,160 KB
testcase_08 AC 87 ms
12,288 KB
testcase_09 AC 85 ms
12,416 KB
testcase_10 AC 85 ms
12,416 KB
testcase_11 AC 88 ms
12,544 KB
testcase_12 AC 77 ms
12,288 KB
testcase_13 AC 76 ms
12,160 KB
testcase_14 AC 83 ms
12,288 KB
testcase_15 AC 87 ms
12,416 KB
testcase_16 WA -
testcase_17 AC 79 ms
12,160 KB
testcase_18 AC 88 ms
12,416 KB
testcase_19 AC 81 ms
12,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

hs={}
gets
x=gets.split.map{|e| e.to_i}
x.each{|e|
	hs[e]=1
}
cs=15.times.map{0}
hs.keys.each{|e|
	p1=0
	while e>0
		if e%2==1
			cs[p1]+=1
		end
		p1+=1
		e=e/2
	end
}
ans=1
cs.each{|e|
	ans*=2 if e>0
}
puts ans
0