結果
| 問題 |
No.1943 消えたAGCT(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-20 21:41:36 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 217 bytes |
| コンパイル時間 | 101 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 18,852 KB |
| 最終ジャッジ日時 | 2024-09-20 07:39:16 |
| 合計ジャッジ時間 | 4,035 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 TLE * 1 -- * 17 |
ソースコード
N = int(input())
S = input()
ans=0
for i in range(N):
c=S.count("A")+S.count("G")+S.count("C")+S.count("T")
if c==0:
break
# print(c)
t=S[:c-1]+S[c:]
S=t
# print(t)
ans+=1
print(ans)