結果

問題 No.1469 programing
ユーザー kohei2019kohei2019
提出日時 2022-05-21 18:49:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 686 ms / 3,000 ms
コード長 130 bytes
コンパイル時間 207 ms
コンパイル使用メモリ 81,860 KB
実行使用メモリ 341,144 KB
最終ジャッジ日時 2023-10-20 16:31:20
合計ジャッジ時間 4,569 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,580 KB
testcase_01 AC 37 ms
53,580 KB
testcase_02 AC 36 ms
53,580 KB
testcase_03 AC 37 ms
53,580 KB
testcase_04 AC 39 ms
53,580 KB
testcase_05 AC 46 ms
62,472 KB
testcase_06 AC 43 ms
59,828 KB
testcase_07 AC 48 ms
62,480 KB
testcase_08 AC 73 ms
86,656 KB
testcase_09 AC 79 ms
90,884 KB
testcase_10 AC 76 ms
89,296 KB
testcase_11 AC 113 ms
100,376 KB
testcase_12 AC 94 ms
97,440 KB
testcase_13 AC 37 ms
53,580 KB
testcase_14 AC 129 ms
111,012 KB
testcase_15 AC 95 ms
94,100 KB
testcase_16 AC 121 ms
109,284 KB
testcase_17 AC 686 ms
341,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
l = [S[0]]
N = len(S)
for i in range(1,N):
    if S[i-1] == S[i]:
        continue
    l.append(S[i])
print(*l,sep='')
0