結果

問題 No.1469 programing
ユーザー titiatitia
提出日時 2021-04-09 21:22:36
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 842 ms / 3,000 ms
コード長 174 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 39,460 KB
最終ジャッジ日時 2023-09-07 09:38:19
合計ジャッジ時間 2,886 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,848 KB
testcase_01 AC 16 ms
7,792 KB
testcase_02 AC 15 ms
7,848 KB
testcase_03 AC 16 ms
7,768 KB
testcase_04 AC 15 ms
7,784 KB
testcase_05 AC 16 ms
7,784 KB
testcase_06 AC 16 ms
7,772 KB
testcase_07 AC 16 ms
7,772 KB
testcase_08 AC 35 ms
8,592 KB
testcase_09 AC 41 ms
9,072 KB
testcase_10 AC 39 ms
8,856 KB
testcase_11 AC 59 ms
10,472 KB
testcase_12 AC 48 ms
9,604 KB
testcase_13 AC 16 ms
7,788 KB
testcase_14 AC 73 ms
10,868 KB
testcase_15 AC 64 ms
9,692 KB
testcase_16 AC 98 ms
11,064 KB
testcase_17 AC 842 ms
39,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

S=input().strip()

ANS=[]
for s in S:
    if ANS and s==ANS[-1]:
        continue
    else:
        ANS.append(s)

print("".join(ANS))
0