結果

問題 No.1469 programing
ユーザー kfield1950
提出日時 2021-04-14 00:55:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 293 ms / 3,000 ms
コード長 198 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 82,400 KB
実行使用メモリ 95,996 KB
最終ジャッジ日時 2024-06-30 03:19:14
合計ジャッジ時間 2,450 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
ans = s[0]
pre = s[0]
print(s[0], end='')
if len(s) != 1:
    for i in range(1, len(s)):
        if pre != s[i]:
            print(s[i], end='')
        pre = s[i]
            
        
0