結果

問題 No.1469 programing
ユーザー O2MTO2MT
提出日時 2021-04-11 01:17:05
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 172 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 86,980 KB
実行使用メモリ 282,852 KB
最終ジャッジ日時 2023-09-09 04:50:19
合計ジャッジ時間 12,855 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
75,792 KB
testcase_01 AC 73 ms
71,080 KB
testcase_02 AC 71 ms
71,516 KB
testcase_03 AC 72 ms
71,344 KB
testcase_04 AC 72 ms
71,308 KB
testcase_05 AC 75 ms
75,996 KB
testcase_06 AC 75 ms
75,952 KB
testcase_07 AC 77 ms
76,208 KB
testcase_08 AC 324 ms
85,748 KB
testcase_09 AC 518 ms
99,200 KB
testcase_10 AC 441 ms
94,316 KB
testcase_11 TLE -
testcase_12 AC 1,791 ms
260,756 KB
testcase_13 AC 72 ms
71,416 KB
testcase_14 TLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

S = str(input())
N = len(S)
ans = S[0]
before = S[0]
for i in range(1,N):
    if S[i] == before:
        pass
    else:
        ans += S[i]
        before = S[i]
print(ans)
0