結果

問題 No.1469 programing
ユーザー ああいい
提出日時 2021-12-23 20:05:12
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 1,837 ms / 3,000 ms
コード長 219 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 42,252 KB
最終ジャッジ日時 2024-09-17 18:48:07
合計ジャッジ時間 5,348 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
i = 0
l = []
while i < len(S):
    if i == len(S)-1:
        l.append(S[i])
        i += 1
        continue
    l.append(S[i])
    if S[i+1] == S[i]:
        i += 2
    else:
        i += 1
print("".join(l))
0