結果

問題 No.1943 消えたAGCT(1)
ユーザー 👑 H20H20
提出日時 2022-03-23 00:58:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 87,172 KB
実行使用メモリ 99,252 KB
最終ジャッジ日時 2023-09-09 03:31:39
合計ジャッジ時間 4,194 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,368 KB
testcase_01 AC 73 ms
71,068 KB
testcase_02 AC 71 ms
71,176 KB
testcase_03 AC 71 ms
71,312 KB
testcase_04 AC 72 ms
71,200 KB
testcase_05 AC 71 ms
71,396 KB
testcase_06 AC 71 ms
71,344 KB
testcase_07 AC 71 ms
71,404 KB
testcase_08 AC 72 ms
71,248 KB
testcase_09 AC 110 ms
98,992 KB
testcase_10 AC 105 ms
99,236 KB
testcase_11 AC 108 ms
98,924 KB
testcase_12 AC 106 ms
99,216 KB
testcase_13 AC 86 ms
80,948 KB
testcase_14 AC 78 ms
75,780 KB
testcase_15 AC 108 ms
98,536 KB
testcase_16 AC 103 ms
94,708 KB
testcase_17 AC 105 ms
95,716 KB
testcase_18 AC 110 ms
98,872 KB
testcase_19 AC 110 ms
99,252 KB
testcase_20 AC 112 ms
99,032 KB
testcase_21 AC 110 ms
98,716 KB
testcase_22 AC 118 ms
99,200 KB
testcase_23 AC 118 ms
99,224 KB
testcase_24 AC 107 ms
99,004 KB
testcase_25 AC 105 ms
98,860 KB
testcase_26 AC 107 ms
99,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = list(input())
ans = 0
for i in range(n):
    if s[i]=='A' or s[i]=='G' or s[i]=='C' or s[i]=='T':
        ans = i+1
print(ans)
0