結果

問題 No.1469 programing
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-09-02 11:46:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 378 ms / 3,000 ms
コード長 131 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 82,396 KB
実行使用メモリ 312,516 KB
最終ジャッジ日時 2024-05-07 04:36:09
合計ジャッジ時間 2,580 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,280 KB
testcase_01 AC 36 ms
52,468 KB
testcase_02 AC 37 ms
52,332 KB
testcase_03 AC 37 ms
53,764 KB
testcase_04 AC 38 ms
53,428 KB
testcase_05 AC 45 ms
58,976 KB
testcase_06 AC 39 ms
58,888 KB
testcase_07 AC 40 ms
58,992 KB
testcase_08 AC 49 ms
71,116 KB
testcase_09 AC 51 ms
74,020 KB
testcase_10 AC 50 ms
73,172 KB
testcase_11 AC 74 ms
98,284 KB
testcase_12 AC 56 ms
80,896 KB
testcase_13 AC 34 ms
52,488 KB
testcase_14 AC 78 ms
98,292 KB
testcase_15 AC 65 ms
89,696 KB
testcase_16 AC 75 ms
90,832 KB
testcase_17 AC 378 ms
312,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
ans = []
ans.append(S[0])
for i in range(1,len(S)):
    if S[i-1] != S[i]:
        ans.append(S[i])
print("".join(ans))
0