結果

問題 No.1469 programing
ユーザー toyuzukotoyuzuko
提出日時 2021-04-17 18:44:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 402 ms / 3,000 ms
コード長 124 bytes
コンパイル時間 626 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 293,288 KB
最終ジャッジ日時 2023-09-17 04:06:09
合計ジャッジ時間 3,788 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,228 KB
testcase_01 AC 72 ms
71,188 KB
testcase_02 AC 73 ms
71,288 KB
testcase_03 AC 72 ms
71,148 KB
testcase_04 AC 74 ms
71,104 KB
testcase_05 AC 76 ms
75,672 KB
testcase_06 AC 78 ms
76,080 KB
testcase_07 AC 78 ms
75,768 KB
testcase_08 AC 86 ms
79,844 KB
testcase_09 AC 87 ms
82,300 KB
testcase_10 AC 87 ms
81,360 KB
testcase_11 AC 106 ms
96,420 KB
testcase_12 AC 91 ms
87,428 KB
testcase_13 AC 73 ms
71,220 KB
testcase_14 AC 108 ms
96,800 KB
testcase_15 AC 99 ms
88,588 KB
testcase_16 AC 107 ms
92,368 KB
testcase_17 AC 402 ms
293,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()

res = [S[0]]

for i in range(1, len(S)):
    if S[i - 1] != S[i]:
        res.append(S[i])

print(''.join(res))
0