結果
| 問題 |
No.1943 消えたAGCT(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-07 18:07:47 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 284 bytes |
| コンパイル時間 | 214 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 18,588 KB |
| 最終ジャッジ日時 | 2024-09-17 10:52:59 |
| 合計ジャッジ時間 | 4,557 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 TLE * 1 -- * 14 |
ソースコード
input()
s=input()
loop_count=0
while True:
t=s.count("A")+s.count("T")+s.count("G")+s.count("C")
if t==0:
break
elif len(s)==t:
loop_count=loop_count+len(s)
break
else:
s=s[0:t-1]+s[t:]
loop_count=loop_count+1
print(loop_count)