結果

問題 No.1469 programing
ユーザー aqua_tenhouaqua_tenhou
提出日時 2021-04-09 21:26:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 758 ms / 3,000 ms
コード長 169 bytes
コンパイル時間 401 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 449,268 KB
最終ジャッジ日時 2023-09-07 09:48:37
合計ジャッジ時間 3,800 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,088 KB
testcase_01 AC 68 ms
71,484 KB
testcase_02 AC 68 ms
71,420 KB
testcase_03 AC 70 ms
71,360 KB
testcase_04 AC 67 ms
71,508 KB
testcase_05 AC 70 ms
75,872 KB
testcase_06 AC 72 ms
75,792 KB
testcase_07 AC 72 ms
75,916 KB
testcase_08 AC 82 ms
81,480 KB
testcase_09 AC 85 ms
84,604 KB
testcase_10 AC 81 ms
83,236 KB
testcase_11 AC 95 ms
95,928 KB
testcase_12 AC 93 ms
89,632 KB
testcase_13 AC 68 ms
71,084 KB
testcase_14 AC 106 ms
104,104 KB
testcase_15 AC 93 ms
91,868 KB
testcase_16 AC 125 ms
117,416 KB
testcase_17 AC 758 ms
449,268 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