結果
問題 | No.183 たのしい排他的論理和(EASY) |
ユーザー | gemmaro |
提出日時 | 2020-06-30 16:31:09 |
言語 | Ruby (3.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 222 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 11,164 KB |
実行使用メモリ | 228,824 KB |
最終ジャッジ日時 | 2023-10-01 01:30:56 |
合計ジャッジ時間 | 7,831 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 80 ms
19,436 KB |
testcase_01 | AC | 81 ms
15,176 KB |
testcase_02 | AC | 93 ms
15,992 KB |
testcase_03 | AC | 83 ms
15,096 KB |
testcase_04 | AC | 85 ms
15,044 KB |
testcase_05 | AC | 106 ms
17,012 KB |
testcase_06 | AC | 80 ms
15,144 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
ソースコード
# frozen_string_literal: true def solve (1..N).map do |n| A.combination(n).map do |a| a.reduce { _1 ^ _2 } end.uniq end.flatten.push(0).uniq.size end N = gets.to_i A = gets.split.map(&:to_i) puts solve