結果

問題 No.1469 programing
ユーザー トミートミー
提出日時 2024-04-14 02:19:39
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 310 bytes
コンパイル時間 3,414 ms
コンパイル使用メモリ 81,844 KB
実行使用メモリ 535,892 KB
最終ジャッジ日時 2024-04-14 02:19:47
合計ジャッジ時間 6,183 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
52,840 KB
testcase_01 AC 34 ms
51,960 KB
testcase_02 AC 34 ms
52,584 KB
testcase_03 AC 36 ms
52,156 KB
testcase_04 AC 39 ms
53,480 KB
testcase_05 AC 46 ms
63,828 KB
testcase_06 AC 48 ms
61,400 KB
testcase_07 AC 52 ms
64,468 KB
testcase_08 AC 78 ms
88,768 KB
testcase_09 AC 80 ms
92,604 KB
testcase_10 AC 81 ms
90,468 KB
testcase_11 AC 98 ms
102,672 KB
testcase_12 AC 81 ms
94,896 KB
testcase_13 AC 35 ms
51,872 KB
testcase_14 AC 123 ms
113,292 KB
testcase_15 AC 110 ms
113,152 KB
testcase_16 AC 156 ms
134,672 KB
testcase_17 MLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    s = input()
    s_list = list(s)
    f_list = []
    for i in range(0, len(s_list)-1):
        f_list.append(s_list[i] != s_list[i+1])
    f_list.append(True)
    for i in range(0, len(s_list)):
        if f_list[i]:
            print(s_list[i], end="")


if __name__ == "__main__":
    main()
0