結果
問題 |
No.1943 消えたAGCT(1)
|
ユーザー |
![]() |
提出日時 | 2022-11-28 10:02:39 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 208 ms / 2,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 121 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 31,308 KB |
最終ジャッジ日時 | 2024-10-05 06:48:01 |
合計ジャッジ時間 | 2,646 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 |
ソースコード
import re def main(): _ = int(input()) s = input() if all((c not in s) for c in "AGCT"): exit(print(0)) # if re.search(r'[AGCT]+', s) is None: # print(0) res_iter = re.finditer(r"[AGCT]", s) print(max([x.start() + 1 for x in res_iter])) if __name__ == "__main__": main()