結果
問題 | No.183 たのしい排他的論理和(EASY) |
ユーザー | Mamonbo |
提出日時 | 2015-08-20 16:07:43 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 535 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 10,620 KB |
実行使用メモリ | 9,688 KB |
最終ジャッジ日時 | 2023-09-25 13:53:21 |
合計ジャッジ時間 | 8,301 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 18 ms
8,312 KB |
testcase_01 | AC | 19 ms
8,376 KB |
testcase_02 | AC | 21 ms
9,284 KB |
testcase_03 | AC | 19 ms
8,388 KB |
testcase_04 | AC | 19 ms
8,244 KB |
testcase_05 | AC | 23 ms
9,688 KB |
testcase_06 | AC | 18 ms
8,396 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 | -- | - |
ソースコード
#coding=UTF-8 #結合律が使えることと任意のAについてA^A=0を #考えると同じ数のボタンが複数個あっても1個のときと変らない #とりあえずあまり考えずに解いてみる import copy N=int(input()) mojir=input() hyo=mojir.split(' ') numhyo=[int(mono) for mono in hyo] #print(numhyo) myon=sorted(list(set(numhyo))) able=[0] for mono in myon: tmp=copy.copy(able)#appendのため for ding in able: tmp.append(ding^mono) able=list(set(tmp)) #print(able) print(len(able))