結果

問題 No.1469 programing
ユーザー ああいいああいい
提出日時 2021-12-23 20:05:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 2,044 ms / 3,000 ms
コード長 219 bytes
コンパイル時間 391 ms
コンパイル使用メモリ 11,732 KB
実行使用メモリ 41,504 KB
最終ジャッジ日時 2023-10-17 21:35:27
合計ジャッジ時間 5,549 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,936 KB
testcase_01 AC 29 ms
9,936 KB
testcase_02 AC 29 ms
9,936 KB
testcase_03 AC 28 ms
9,936 KB
testcase_04 AC 29 ms
9,940 KB
testcase_05 AC 31 ms
9,952 KB
testcase_06 AC 29 ms
9,940 KB
testcase_07 AC 30 ms
9,952 KB
testcase_08 AC 87 ms
10,716 KB
testcase_09 AC 111 ms
10,936 KB
testcase_10 AC 101 ms
10,856 KB
testcase_11 AC 213 ms
12,348 KB
testcase_12 AC 163 ms
11,516 KB
testcase_13 AC 29 ms
9,936 KB
testcase_14 AC 274 ms
12,932 KB
testcase_15 AC 153 ms
11,600 KB
testcase_16 AC 231 ms
12,992 KB
testcase_17 AC 2,044 ms
41,504 KB
権限があれば一括ダウンロードができます

ソースコード

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