結果

問題 No.1469 programing
コンテスト
ユーザー 萩3
提出日時 2021-04-30 16:29:29
言語 PyPy3
(7.3.23)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
MLE  
実行時間 -
コード長 224 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 236 ms
コンパイル使用メモリ 95,844 KB
実行使用メモリ 552,808 KB
最終ジャッジ日時 2026-08-17 05:11:49
合計ジャッジ時間 4,294 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 MLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import collections
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