結果

問題 No.1943 消えたAGCT(1)
ユーザー 👑 H20H20
提出日時 2022-03-22 00:52:20
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 155 ms / 2,000 ms
コード長 136 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 87,236 KB
実行使用メモリ 81,236 KB
最終ジャッジ日時 2023-09-09 03:31:45
合計ジャッジ時間 5,677 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 147 ms
79,876 KB
testcase_01 AC 149 ms
79,896 KB
testcase_02 AC 148 ms
79,784 KB
testcase_03 AC 146 ms
79,632 KB
testcase_04 AC 145 ms
79,852 KB
testcase_05 AC 149 ms
79,852 KB
testcase_06 AC 148 ms
79,708 KB
testcase_07 AC 149 ms
79,772 KB
testcase_08 AC 148 ms
79,756 KB
testcase_09 AC 152 ms
81,132 KB
testcase_10 AC 154 ms
81,180 KB
testcase_11 AC 155 ms
81,128 KB
testcase_12 AC 151 ms
81,024 KB
testcase_13 AC 152 ms
80,604 KB
testcase_14 AC 150 ms
79,708 KB
testcase_15 AC 151 ms
81,028 KB
testcase_16 AC 151 ms
80,728 KB
testcase_17 AC 150 ms
80,624 KB
testcase_18 AC 148 ms
81,136 KB
testcase_19 AC 148 ms
81,208 KB
testcase_20 AC 152 ms
81,136 KB
testcase_21 AC 150 ms
81,208 KB
testcase_22 AC 151 ms
81,124 KB
testcase_23 AC 152 ms
80,976 KB
testcase_24 AC 153 ms
81,144 KB
testcase_25 AC 154 ms
81,236 KB
testcase_26 AC 152 ms
80,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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