結果
| 問題 |
No.1951 消えたAGCT(2)
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2022-03-24 00:10:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 364 bytes |
| コンパイル時間 | 185 ms |
| コンパイル使用メモリ | 82,416 KB |
| 実行使用メモリ | 270,700 KB |
| 最終ジャッジ日時 | 2024-06-26 20:40:59 |
| 合計ジャッジ時間 | 6,159 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 TLE * 1 -- * 14 |
ソースコード
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