結果

問題 No.1943 消えたAGCT(1)
ユーザー 👑 H20H20
提出日時 2022-04-10 19:21:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 155 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 365 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 81,248 KB
最終ジャッジ日時 2023-09-09 03:31:35
合計ジャッジ時間 5,697 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 146 ms
79,796 KB
testcase_01 AC 147 ms
79,756 KB
testcase_02 AC 146 ms
79,692 KB
testcase_03 AC 146 ms
79,764 KB
testcase_04 AC 148 ms
79,840 KB
testcase_05 AC 149 ms
79,688 KB
testcase_06 AC 149 ms
79,760 KB
testcase_07 AC 150 ms
79,848 KB
testcase_08 AC 146 ms
79,924 KB
testcase_09 AC 152 ms
81,168 KB
testcase_10 AC 155 ms
81,092 KB
testcase_11 AC 152 ms
81,248 KB
testcase_12 AC 153 ms
81,116 KB
testcase_13 AC 153 ms
80,740 KB
testcase_14 AC 151 ms
79,864 KB
testcase_15 AC 151 ms
80,960 KB
testcase_16 AC 152 ms
80,692 KB
testcase_17 AC 148 ms
80,892 KB
testcase_18 AC 150 ms
81,108 KB
testcase_19 AC 150 ms
81,068 KB
testcase_20 AC 154 ms
81,156 KB
testcase_21 AC 149 ms
81,200 KB
testcase_22 AC 150 ms
81,140 KB
testcase_23 AC 151 ms
81,144 KB
testcase_24 AC 151 ms
81,216 KB
testcase_25 AC 152 ms
81,148 KB
testcase_26 AC 154 ms
81,168 KB
権限があれば一括ダウンロードができます

ソースコード

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