結果

問題 No.1943 消えたAGCT(1)
ユーザー Rainkunch
提出日時 2022-05-20 23:17:47
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 257 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 82,128 KB
実行使用メモリ 103,868 KB
最終ジャッジ日時 2024-09-20 09:41:46
合計ジャッジ時間 4,383 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 TLE * 1 -- * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = list(input())
counter = 0
start = s.count('A') + s.count('G') + s.count('C') + s.count('T')
checklist = ['A','G','C','T']
while start != 0:
    counter += 1
    a = s.pop(start-1)
    if a in checklist:
        start -= 1
print(counter)
0