結果

問題 No.1469 programing
ユーザー aqua_tenhouaqua_tenhou
提出日時 2021-04-09 21:28:25
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 1,212 ms / 3,000 ms
コード長 169 bytes
コンパイル時間 344 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 73,656 KB
最終ジャッジ日時 2023-09-07 09:53:15
合計ジャッジ時間 3,463 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,772 KB
testcase_01 AC 16 ms
7,828 KB
testcase_02 AC 15 ms
7,864 KB
testcase_03 AC 15 ms
7,736 KB
testcase_04 AC 16 ms
7,792 KB
testcase_05 AC 16 ms
7,784 KB
testcase_06 AC 15 ms
7,812 KB
testcase_07 AC 17 ms
7,828 KB
testcase_08 AC 43 ms
9,428 KB
testcase_09 AC 54 ms
9,848 KB
testcase_10 AC 50 ms
9,780 KB
testcase_11 AC 84 ms
11,704 KB
testcase_12 AC 66 ms
10,676 KB
testcase_13 AC 15 ms
7,820 KB
testcase_14 AC 106 ms
13,248 KB
testcase_15 AC 88 ms
11,752 KB
testcase_16 AC 137 ms
14,424 KB
testcase_17 AC 1,212 ms
73,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = list(input())
n = len(s)

ans = []

for i in range(n-1):
    if s[i] == s[i+1]:
        pass
    else:
        ans.append(s[i])
ans.append(s[-1])
print("".join(ans))
0