結果

問題 No.1469 programing
ユーザー otsuneko
提出日時 2021-05-03 21:26:04
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 253 bytes
コンパイル時間 419 ms
コンパイル使用メモリ 82,732 KB
実行使用メモリ 274,468 KB
最終ジャッジ日時 2024-07-22 11:48:40
合計ジャッジ時間 8,049 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 4 TLE * 2 -- * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
ans = ""

for i in range(len(S)):
    if i == len(S)-1:
        if S[i] == S[i-1]:
            continue
        else:
            ans += S[i]
    elif S[i+1] == S[i]:
        continue
    else:
        ans += S[i]

print(ans)
0