結果

問題 No.1469 programing
ユーザー pypypymi
提出日時 2022-03-11 18:52:18
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 230 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 274,356 KB
最終ジャッジ日時 2024-09-15 22:30:54
合計ジャッジ時間 7,832 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8 TLE * 1 -- * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
s2 = s+"0"
index = 0
result = ""
while index < len(s):
    if s2[index]==s2[index+1]:
        result+=s2[index]
        index+=2
    else:
        result+=s2[index]
        index+=1
print(result)
        
        
    
0