結果

問題 No.1469 programing
ユーザー tobusakanatobusakana
提出日時 2021-04-18 15:09:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 445 ms / 3,000 ms
コード長 135 bytes
コンパイル時間 355 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 299,312 KB
最終ジャッジ日時 2023-09-17 07:43:24
合計ジャッジ時間 3,643 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,436 KB
testcase_01 AC 76 ms
71,380 KB
testcase_02 AC 77 ms
71,288 KB
testcase_03 AC 77 ms
71,076 KB
testcase_04 AC 78 ms
71,236 KB
testcase_05 AC 80 ms
75,932 KB
testcase_06 AC 80 ms
75,940 KB
testcase_07 AC 83 ms
76,052 KB
testcase_08 AC 92 ms
80,136 KB
testcase_09 AC 93 ms
82,552 KB
testcase_10 AC 92 ms
81,688 KB
testcase_11 AC 110 ms
90,440 KB
testcase_12 AC 103 ms
90,636 KB
testcase_13 AC 77 ms
71,500 KB
testcase_14 AC 118 ms
94,752 KB
testcase_15 AC 106 ms
86,312 KB
testcase_16 AC 114 ms
93,140 KB
testcase_17 AC 445 ms
299,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
stack = [S[0]]

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