結果
| 問題 | No.1943 消えたAGCT(1) |
| コンテスト | |
| ユーザー |
terasa
|
| 提出日時 | 2022-05-21 19:00:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 2,000 ms |
| コード長 | 405 bytes |
| 記録 | |
| コンパイル時間 | 157 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 79,104 KB |
| 最終ジャッジ日時 | 2024-09-20 12:04:31 |
| 合計ジャッジ時間 | 3,212 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
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)
terasa