結果
| 問題 | No.1943 消えたAGCT(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-22 19:37:23 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 313 bytes |
| 記録 | |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 95,560 KB |
| 実行使用メモリ | 330,824 KB |
| 最終ジャッジ日時 | 2026-08-31 19:27:24 |
| 合計ジャッジ時間 | 5,324 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 TLE * 1 -- * 17 |
ソースコード
from collections import Counter
n = int(input())
s = list(input())
scnt = Counter(s)
ans = 0
A = "A"
G = "G"
C = "C"
T = "T"
while True:
agctcnt = scnt[A] + scnt[G] + scnt[C] + scnt[T]
if agctcnt == 0:
print(ans)
break
s[agctcnt - 1] = ""
s = list("".join(s))
scnt = Counter(s)
ans += 1