結果

問題 No.1469 programing
ユーザー NoaSaberNoaSaber
提出日時 2021-04-09 22:06:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 581 ms / 3,000 ms
コード長 172 bytes
コンパイル時間 396 ms
コンパイル使用メモリ 87,040 KB
実行使用メモリ 272,440 KB
最終ジャッジ日時 2023-09-07 11:26:12
合計ジャッジ時間 4,189 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
71,840 KB
testcase_01 AC 96 ms
71,524 KB
testcase_02 AC 93 ms
71,572 KB
testcase_03 AC 91 ms
71,720 KB
testcase_04 AC 96 ms
71,640 KB
testcase_05 AC 104 ms
77,228 KB
testcase_06 AC 99 ms
76,776 KB
testcase_07 AC 99 ms
77,004 KB
testcase_08 AC 104 ms
77,300 KB
testcase_09 AC 106 ms
77,384 KB
testcase_10 AC 104 ms
77,164 KB
testcase_11 AC 110 ms
77,996 KB
testcase_12 AC 107 ms
77,804 KB
testcase_13 AC 93 ms
71,620 KB
testcase_14 AC 140 ms
99,588 KB
testcase_15 AC 128 ms
88,596 KB
testcase_16 AC 133 ms
88,920 KB
testcase_17 AC 581 ms
272,440 KB
権限があれば一括ダウンロードができます

ソースコード

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