結果

問題 No.1469 programing
ユーザー kou_kkk
提出日時 2025-07-06 21:06:50
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 1,223 ms / 3,000 ms
コード長 120 bytes
コンパイル時間 727 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 41,556 KB
最終ジャッジ日時 2025-07-06 21:06:54
合計ジャッジ時間 4,277 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
s2 = [s[0]]
 
for i in range(1, len(s)):
    if s2[-1] != s[i]:
        s2.append(s[i])
 
print("".join(s2))
0