結果

問題 No.1943 消えたAGCT(1)
ユーザー dangodango
提出日時 2023-06-25 11:45:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 895 ms
コンパイル使用メモリ 86,804 KB
実行使用メモリ 78,092 KB
最終ジャッジ日時 2023-09-15 08:32:57
合計ジャッジ時間 3,634 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,100 KB
testcase_01 AC 71 ms
71,316 KB
testcase_02 AC 71 ms
71,420 KB
testcase_03 AC 71 ms
71,360 KB
testcase_04 AC 72 ms
71,216 KB
testcase_05 AC 71 ms
71,212 KB
testcase_06 AC 72 ms
71,432 KB
testcase_07 AC 73 ms
71,212 KB
testcase_08 AC 71 ms
71,600 KB
testcase_09 AC 80 ms
73,460 KB
testcase_10 AC 85 ms
77,940 KB
testcase_11 AC 84 ms
77,800 KB
testcase_12 AC 80 ms
73,380 KB
testcase_13 AC 82 ms
77,052 KB
testcase_14 AC 72 ms
71,312 KB
testcase_15 AC 77 ms
73,324 KB
testcase_16 AC 77 ms
73,040 KB
testcase_17 AC 77 ms
73,064 KB
testcase_18 AC 79 ms
73,228 KB
testcase_19 AC 79 ms
73,208 KB
testcase_20 AC 78 ms
73,612 KB
testcase_21 AC 78 ms
73,464 KB
testcase_22 AC 77 ms
73,376 KB
testcase_23 AC 78 ms
73,440 KB
testcase_24 AC 89 ms
78,072 KB
testcase_25 AC 89 ms
78,092 KB
testcase_26 AC 89 ms
78,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = input()[::-1]
K = -1
for i in S:
    K += 1
    if 'ACGT'.__contains__(i):
        print(N - K)
        exit(0)
print(0)
0