結果

問題 No.1469 programing
ユーザー NoaSaber
提出日時 2021-04-09 22:06:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 499 ms / 3,000 ms
コード長 172 bytes
コンパイル時間 425 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 268,212 KB
最終ジャッジ日時 2024-06-25 05:36:21
合計ジャッジ時間 2,800 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

N=input()
from collections import deque
tmp=""
ans=deque([])
for i in N:
    if tmp==i:
        continue
    else:
        tmp=i
        ans.append(tmp)
print("".join(ans))
0