結果

問題 No.1469 programing
ユーザー rodearodea
提出日時 2021-04-11 12:30:10
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 496 ms / 3,000 ms
コード長 149 bytes
コンパイル時間 386 ms
コンパイル使用メモリ 86,932 KB
実行使用メモリ 285,084 KB
最終ジャッジ日時 2023-09-09 15:04:56
合計ジャッジ時間 3,533 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,144 KB
testcase_01 AC 71 ms
71,200 KB
testcase_02 AC 69 ms
71,096 KB
testcase_03 AC 71 ms
71,304 KB
testcase_04 AC 72 ms
71,100 KB
testcase_05 AC 75 ms
76,028 KB
testcase_06 AC 75 ms
75,880 KB
testcase_07 AC 75 ms
75,896 KB
testcase_08 AC 85 ms
79,832 KB
testcase_09 AC 89 ms
82,200 KB
testcase_10 AC 86 ms
81,252 KB
testcase_11 AC 106 ms
96,468 KB
testcase_12 AC 90 ms
86,944 KB
testcase_13 AC 71 ms
71,184 KB
testcase_14 AC 111 ms
96,440 KB
testcase_15 AC 96 ms
88,932 KB
testcase_16 AC 107 ms
91,520 KB
testcase_17 AC 496 ms
285,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
n = len(s)

ans = []
for i in range(n):
    if i + 1 < n and s[i] == s[i + 1]:
        continue
    ans.append(s[i])

print("".join(ans))
0