結果
| 問題 | No.1951 消えたAGCT(2) |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2022-03-24 00:10:16 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 364 bytes |
| 記録 | |
| コンパイル時間 | 299 ms |
| コンパイル使用メモリ | 85,360 KB |
| 実行使用メモリ | 547,848 KB |
| 最終ジャッジ日時 | 2026-03-13 15:31:00 |
| 合計ジャッジ時間 | 44,937 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 TLE * 10 MLE * 1 |
ソースコード
n = int(input())
s = list(input())
while s.count('A')+s.count('G')+s.count('C')+s.count('T'):
cnt = s.count('A')+s.count('G')+s.count('C')+s.count('T')
t = []
for i,c in enumerate(s):
if i!=cnt-1:
t.append(c)
r = t.count(s[cnt-1])
for i in range(len(t)):
t[i] = chr((ord(t[i])-65+r)%26+65)
s = t
print(n-len(s))
H20