結果

問題 No.1469 programing
ユーザー O2MTO2MT
提出日時 2021-04-11 01:17:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 172 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 25,760 KB
最終ジャッジ日時 2023-09-09 04:50:52
合計ジャッジ時間 11,507 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
25,760 KB
testcase_01 AC 15 ms
7,804 KB
testcase_02 AC 16 ms
7,944 KB
testcase_03 AC 16 ms
7,856 KB
testcase_04 AC 16 ms
7,868 KB
testcase_05 AC 17 ms
7,860 KB
testcase_06 AC 16 ms
7,940 KB
testcase_07 AC 16 ms
7,860 KB
testcase_08 AC 135 ms
8,268 KB
testcase_09 AC 213 ms
8,304 KB
testcase_10 AC 175 ms
8,352 KB
testcase_11 AC 1,336 ms
8,756 KB
testcase_12 AC 709 ms
8,520 KB
testcase_13 AC 15 ms
7,800 KB
testcase_14 AC 2,065 ms
8,928 KB
testcase_15 AC 442 ms
8,568 KB
testcase_16 AC 1,096 ms
9,104 KB
testcase_17 TLE -
権限があれば一括ダウンロードができます

ソースコード

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