結果

問題 No.2460 #強調#
ユーザー やでな@競プロ
提出日時 2023-10-08 23:58:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 260 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 82,524 KB
実行使用メモリ 53,772 KB
最終ジャッジ日時 2024-07-26 18:15:29
合計ジャッジ時間 1,274 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

s = list(input())
cnt = 0
ans = []
for i in range(len(s)):
    if cnt == 0:
        if s[i] == "#":
            cnt += 1
    elif cnt == 1:
        if s[i] == "#":
            cnt += 1
        else:
            ans.append(s[i])
            
print("".join(ans))
0