結果
| 問題 |
No.1943 消えたAGCT(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-22 20:06:25 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 105 ms / 2,000 ms |
| コード長 | 253 bytes |
| コンパイル時間 | 203 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 98,604 KB |
| 最終ジャッジ日時 | 2024-09-20 12:51:21 |
| 合計ジャッジ時間 | 3,264 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
from collections import Counter
n = int(input())
s = list(input())
agctcnt = 0
agctset = set(["A", "G", "C", "T"])
agctmaxindex = -1
for index, it in enumerate(s):
if it in agctset:
agctcnt += 1
agctmaxindex = index
print(agctmaxindex + 1)