結果

問題 No.1469 programing
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2021-04-09 21:21:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 456 ms / 3,000 ms
コード長 190 bytes
コンパイル時間 452 ms
コンパイル使用メモリ 87,144 KB
実行使用メモリ 291,464 KB
最終ジャッジ日時 2023-09-07 09:33:40
合計ジャッジ時間 2,928 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
71,120 KB
testcase_01 AC 58 ms
71,516 KB
testcase_02 AC 59 ms
71,296 KB
testcase_03 AC 59 ms
71,284 KB
testcase_04 AC 60 ms
71,492 KB
testcase_05 AC 63 ms
75,628 KB
testcase_06 AC 66 ms
75,636 KB
testcase_07 AC 64 ms
75,832 KB
testcase_08 AC 71 ms
79,840 KB
testcase_09 AC 72 ms
82,488 KB
testcase_10 AC 71 ms
81,412 KB
testcase_11 AC 87 ms
96,556 KB
testcase_12 AC 72 ms
87,160 KB
testcase_13 AC 58 ms
71,364 KB
testcase_14 AC 91 ms
96,476 KB
testcase_15 AC 81 ms
86,132 KB
testcase_16 AC 90 ms
93,548 KB
testcase_17 AC 456 ms
291,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"""


"""

import sys
from sys import stdin

S = input()
ans = []

for i in S:

    if len(ans) > 0 and ans[-1] == i:
        continue
    else:
        ans.append(i)

print ("".join(ans))
0