結果
| 問題 | No.1943 消えたAGCT(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-22 20:06:25 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 69 ms / 2,000 ms |
| コード長 | 253 bytes |
| 記録 | |
| コンパイル時間 | 120 ms |
| コンパイル使用メモリ | 85,728 KB |
| 実行使用メモリ | 104,688 KB |
| 最終ジャッジ日時 | 2026-04-08 23:56:10 |
| 合計ジャッジ時間 | 2,860 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)