結果

問題 No.175 simpleDNA
ユーザー Yuhel TanakaYuhel Tanaka
提出日時 2018-10-09 12:51:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 167 bytes
コンパイル時間 467 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,248 KB
最終ジャッジ日時 2024-04-20 19:04:32
合計ジャッジ時間 3,753 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
21,248 KB
testcase_01 AC 27 ms
10,496 KB
testcase_02 AC 150 ms
10,624 KB
testcase_03 AC 27 ms
10,496 KB
testcase_04 AC 28 ms
10,496 KB
testcase_05 TLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import product as p
l=int(input())
n=int(input())
*s,=map(tuple,input().split())
v=0
for i in p(["A","B"],repeat=l):
  if i[-3:] in s:
    v+=1
print(v)
0