結果

問題 No.1943 消えたAGCT(1)
ユーザー june19312june19312
提出日時 2022-05-20 22:47:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 136 bytes
コンパイル時間 200 ms
コンパイル使用メモリ 81,652 KB
実行使用メモリ 75,884 KB
最終ジャッジ日時 2023-10-20 13:37:13
合計ジャッジ時間 3,331 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
53,416 KB
testcase_01 AC 44 ms
53,416 KB
testcase_02 AC 51 ms
53,416 KB
testcase_03 AC 49 ms
53,416 KB
testcase_04 AC 48 ms
53,416 KB
testcase_05 AC 44 ms
53,416 KB
testcase_06 AC 45 ms
53,416 KB
testcase_07 AC 45 ms
53,416 KB
testcase_08 AC 44 ms
53,416 KB
testcase_09 AC 70 ms
75,872 KB
testcase_10 AC 58 ms
60,696 KB
testcase_11 AC 67 ms
75,872 KB
testcase_12 AC 60 ms
60,772 KB
testcase_13 AC 61 ms
75,440 KB
testcase_14 AC 45 ms
59,556 KB
testcase_15 AC 68 ms
75,788 KB
testcase_16 AC 66 ms
75,680 KB
testcase_17 AC 69 ms
75,760 KB
testcase_18 AC 83 ms
75,884 KB
testcase_19 AC 76 ms
75,884 KB
testcase_20 AC 71 ms
75,884 KB
testcase_21 AC 77 ms
75,884 KB
testcase_22 AC 76 ms
75,884 KB
testcase_23 AC 72 ms
75,884 KB
testcase_24 AC 64 ms
75,884 KB
testcase_25 AC 64 ms
75,884 KB
testcase_26 AC 64 ms
75,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = input()
AGCT = ["A","G","C","T"]

ans = 0
for i,v in enumerate(s):
    if v in AGCT:
        ans = i+1

print(ans)
0