結果

問題 No.1469 programing
ユーザー rodearodea
提出日時 2021-04-11 12:26:03
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 135 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 87,268 KB
実行使用メモリ 271,508 KB
最終ジャッジ日時 2023-09-09 15:01:22
合計ジャッジ時間 14,509 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,564 KB
testcase_01 AC 71 ms
71,372 KB
testcase_02 AC 75 ms
71,312 KB
testcase_03 AC 72 ms
71,332 KB
testcase_04 AC 72 ms
71,128 KB
testcase_05 AC 75 ms
75,936 KB
testcase_06 AC 76 ms
76,016 KB
testcase_07 AC 77 ms
75,832 KB
testcase_08 AC 323 ms
86,044 KB
testcase_09 AC 503 ms
99,312 KB
testcase_10 AC 415 ms
94,204 KB
testcase_11 TLE -
testcase_12 AC 1,974 ms
260,736 KB
testcase_13 AC 72 ms
71,348 KB
testcase_14 TLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
n = len(s)

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

print(ans)
0