結果

問題 No.1943 消えたAGCT(1)
ユーザー ohanaohana
提出日時 2023-09-29 15:21:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 136 bytes
コンパイル時間 1,148 ms
コンパイル使用メモリ 86,948 KB
実行使用メモリ 77,932 KB
最終ジャッジ日時 2023-09-29 15:21:58
合計ジャッジ時間 4,829 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
71,524 KB
testcase_01 AC 59 ms
71,288 KB
testcase_02 AC 59 ms
71,280 KB
testcase_03 AC 58 ms
71,356 KB
testcase_04 AC 57 ms
71,320 KB
testcase_05 AC 74 ms
71,248 KB
testcase_06 AC 58 ms
71,200 KB
testcase_07 AC 57 ms
71,244 KB
testcase_08 AC 58 ms
71,356 KB
testcase_09 AC 67 ms
73,304 KB
testcase_10 AC 71 ms
77,844 KB
testcase_11 AC 71 ms
77,932 KB
testcase_12 AC 64 ms
73,456 KB
testcase_13 AC 67 ms
76,792 KB
testcase_14 AC 57 ms
71,128 KB
testcase_15 AC 63 ms
73,236 KB
testcase_16 AC 63 ms
72,844 KB
testcase_17 AC 63 ms
72,736 KB
testcase_18 AC 64 ms
73,472 KB
testcase_19 AC 66 ms
73,208 KB
testcase_20 AC 64 ms
73,396 KB
testcase_21 AC 73 ms
73,320 KB
testcase_22 AC 68 ms
73,520 KB
testcase_23 AC 64 ms
73,488 KB
testcase_24 AC 75 ms
77,812 KB
testcase_25 AC 70 ms
77,844 KB
testcase_26 AC 71 ms
77,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = input()
s = s[::-1]
cnt = 0
for i in range(n):
    if s[cnt] in "AGCT":
        break
    cnt += 1

print(n - cnt)
0