結果

問題 No.1469 programing
ユーザー SPD_9X2
提出日時 2021-04-09 21:21:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 516 ms / 3,000 ms
コード長 190 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 293,588 KB
最終ジャッジ日時 2024-06-25 03:50:59
合計ジャッジ時間 2,665 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

"""


"""

import sys
from sys import stdin

S = input()
ans = []

for i in S:

    if len(ans) > 0 and ans[-1] == i:
        continue
    else:
        ans.append(i)

print ("".join(ans))
0