結果

問題 No.1943 消えたAGCT(1)
ユーザー chineristACchineristAC
提出日時 2022-05-20 21:24:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 355 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 81,664 KB
実行使用メモリ 65,516 KB
最終ジャッジ日時 2023-10-20 11:39:42
合計ジャッジ時間 2,796 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
56,112 KB
testcase_01 AC 46 ms
56,112 KB
testcase_02 AC 46 ms
56,112 KB
testcase_03 AC 47 ms
56,112 KB
testcase_04 AC 45 ms
56,112 KB
testcase_05 AC 45 ms
56,112 KB
testcase_06 AC 45 ms
56,112 KB
testcase_07 AC 46 ms
56,112 KB
testcase_08 AC 46 ms
56,112 KB
testcase_09 AC 54 ms
65,512 KB
testcase_10 AC 56 ms
65,512 KB
testcase_11 AC 57 ms
65,512 KB
testcase_12 AC 55 ms
65,512 KB
testcase_13 AC 52 ms
64,920 KB
testcase_14 AC 49 ms
62,248 KB
testcase_15 AC 56 ms
65,420 KB
testcase_16 AC 55 ms
65,148 KB
testcase_17 AC 56 ms
65,220 KB
testcase_18 AC 56 ms
65,516 KB
testcase_19 AC 55 ms
65,516 KB
testcase_20 AC 56 ms
65,516 KB
testcase_21 AC 56 ms
65,516 KB
testcase_22 AC 59 ms
65,516 KB
testcase_23 AC 60 ms
65,516 KB
testcase_24 AC 55 ms
65,512 KB
testcase_25 AC 55 ms
65,512 KB
testcase_26 AC 54 ms
65,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random,bisect
from collections import deque,defaultdict
import heapq
from itertools import permutations
from math import gcd

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

N = int(input())
S = input()

res = 0
for i in range(N):
    if S[i] in "AGCT":
        res = i+1
print(res)
0