結果

問題 No.1943 消えたAGCT(1)
ユーザー terasaterasa
提出日時 2022-05-21 19:00:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 405 bytes
コンパイル時間 2,775 ms
コンパイル使用メモリ 81,644 KB
実行使用メモリ 78,452 KB
最終ジャッジ日時 2023-10-20 16:32:26
合計ジャッジ時間 3,428 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
66,248 KB
testcase_01 AC 56 ms
66,248 KB
testcase_02 AC 55 ms
66,248 KB
testcase_03 AC 56 ms
66,248 KB
testcase_04 AC 56 ms
66,248 KB
testcase_05 AC 56 ms
66,248 KB
testcase_06 AC 56 ms
66,248 KB
testcase_07 AC 55 ms
66,248 KB
testcase_08 AC 55 ms
66,248 KB
testcase_09 AC 80 ms
78,444 KB
testcase_10 AC 66 ms
70,104 KB
testcase_11 AC 79 ms
78,440 KB
testcase_12 AC 68 ms
70,104 KB
testcase_13 AC 75 ms
77,852 KB
testcase_14 AC 60 ms
68,892 KB
testcase_15 AC 85 ms
78,352 KB
testcase_16 AC 86 ms
78,088 KB
testcase_17 AC 84 ms
78,164 KB
testcase_18 AC 87 ms
78,444 KB
testcase_19 AC 88 ms
78,444 KB
testcase_20 AC 86 ms
78,444 KB
testcase_21 AC 93 ms
78,444 KB
testcase_22 AC 87 ms
78,452 KB
testcase_23 AC 86 ms
78,452 KB
testcase_24 AC 88 ms
78,440 KB
testcase_25 AC 82 ms
78,440 KB
testcase_26 AC 83 ms
78,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import pypyjit
import itertools
import heapq
import math
from collections import deque, defaultdict, Counter
import string
import random

input = sys.stdin.readline
sys.setrecursionlimit(10 ** 6)
pypyjit.set_param('max_unroll_recursion=-1')


N = int(input())
S = input()[:-1]

chars = {'A', 'G', 'C', 'T'}
last = 0
for i, c in enumerate(S):
    if c in chars:
        last = i + 1
print(last)
0