結果

問題 No.1469 programing
ユーザー rlangevin
提出日時 2024-11-29 08:54:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,007 ms / 3,000 ms
コード長 130 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 82,328 KB
実行使用メモリ 378,712 KB
最終ジャッジ日時 2024-11-29 08:54:40
合計ジャッジ時間 4,483 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
ans = []
pre = -1
for s in S:
    if s == pre:
        continue
    ans.append(s)
    pre = s
    
print(*ans, sep="")
0