結果

問題 No.1469 programing
ユーザー 萩3萩3
提出日時 2021-04-30 16:29:29
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 224 bytes
コンパイル時間 445 ms
コンパイル使用メモリ 87,224 KB
実行使用メモリ 541,500 KB
最終ジャッジ日時 2023-09-25 16:56:54
合計ジャッジ時間 4,886 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 98 ms
71,916 KB
testcase_01 AC 94 ms
71,496 KB
testcase_02 AC 93 ms
71,968 KB
testcase_03 AC 95 ms
71,760 KB
testcase_04 AC 97 ms
71,812 KB
testcase_05 AC 111 ms
77,492 KB
testcase_06 AC 109 ms
77,328 KB
testcase_07 AC 104 ms
77,492 KB
testcase_08 AC 115 ms
78,648 KB
testcase_09 AC 118 ms
78,964 KB
testcase_10 AC 117 ms
78,864 KB
testcase_11 AC 121 ms
80,120 KB
testcase_12 AC 117 ms
79,400 KB
testcase_13 AC 96 ms
71,872 KB
testcase_14 AC 164 ms
102,696 KB
testcase_15 AC 161 ms
102,104 KB
testcase_16 AC 167 ms
104,572 KB
testcase_17 MLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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