結果

問題 No.1469 programing
コンテスト
ユーザー 萩3
提出日時 2021-04-30 16:28:51
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
RE  
実行時間 -
コード長 205 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 205 ms
コンパイル使用メモリ 85,304 KB
実行使用メモリ 540,728 KB
最終ジャッジ日時 2026-04-02 06:30:24
合計ジャッジ時間 2,076 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 14 MLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

cs=[c for c in input()]
current = ''
deq = collections.deque(cs)
for _ in range(len(cs)):
    tmp = deq.popleft()
    if current == tmp: continue

    current = tmp
    deq.append(tmp)

print(''.join(deq))
0