結果
問題 | No.1943 消えたAGCT(1) |
ユーザー |
![]() |
提出日時 | 2022-05-20 22:31:10 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 293 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 102,400 KB |
最終ジャッジ日時 | 2024-09-20 08:44:55 |
合計ジャッジ時間 | 4,388 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 TLE * 1 -- * 14 |
ソースコード
n = int(input())s = list(input())counter = 0A = s.count('A')G = s.count('G')C = s.count('C')T = s.count('T')c = A+G+C+Twhile True:if c == 0: breakelse:counter += 1think = s.pop(c-1)if think == 'A' or think == 'G' or think == 'C' or think == 'T':c -= 1print(counter)