結果

問題 No.1943 消えたAGCT(1)
ユーザー kamomekamome
提出日時 2022-08-07 18:07:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 284 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 11,820 KB
実行使用メモリ 16,884 KB
最終ジャッジ日時 2023-10-17 12:48:59
合計ジャッジ時間 5,947 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
16,884 KB
testcase_01 AC 28 ms
9,916 KB
testcase_02 AC 28 ms
9,916 KB
testcase_03 AC 28 ms
9,916 KB
testcase_04 AC 28 ms
9,916 KB
testcase_05 AC 28 ms
9,916 KB
testcase_06 AC 28 ms
9,916 KB
testcase_07 AC 29 ms
9,916 KB
testcase_08 AC 28 ms
9,916 KB
testcase_09 AC 31 ms
10,880 KB
testcase_10 AC 31 ms
10,880 KB
testcase_11 AC 32 ms
10,880 KB
testcase_12 TLE -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0