結果

問題 No.1943 消えたAGCT(1)
ユーザー H20
提出日時 2022-04-10 19:21:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 66,560 KB
最終ジャッジ日時 2024-06-26 20:41:05
合計ジャッジ時間 2,704 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

import re
n = int(input())
s = input()
if not(n==len(s) and re.match(r'^[A-Z]*$', s)!=None):
    exit()

result = re.match(r'^.*(A|G|C|T)', s)
if result==None:
    print(0)
else:
    print(result.end())
0