結果
問題 | No.175 simpleDNA |
ユーザー | MitI_7 |
提出日時 | 2015-12-12 10:23:37 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 10,580 KB |
実行使用メモリ | 343,848 KB |
最終ジャッジ日時 | 2023-10-13 11:39:54 |
合計ジャッジ時間 | 3,019 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
12,464 KB |
testcase_01 | AC | 15 ms
8,152 KB |
testcase_02 | AC | 139 ms
38,396 KB |
testcase_03 | AC | 15 ms
8,224 KB |
testcase_04 | AC | 17 ms
8,080 KB |
testcase_05 | TLE | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
ソースコード
from itertools import product def main(): l = int(input()) n = int(input()) dnas = set() for s in input().split(): k = set(["".join(x) + s for x in product("AB", repeat=l - len(s))]) dnas.update(k) print(len(dnas)) if __name__ == '__main__': main()