結果

問題 No.1469 programing
ユーザー 👑 tamatotamato
提出日時 2021-04-09 21:22:15
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 371 ms / 3,000 ms
コード長 288 bytes
コンパイル時間 1,800 ms
コンパイル使用メモリ 87,052 KB
実行使用メモリ 293,088 KB
最終ジャッジ日時 2023-09-07 09:37:30
合計ジャッジ時間 4,053 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
71,208 KB
testcase_01 AC 59 ms
71,656 KB
testcase_02 AC 59 ms
71,696 KB
testcase_03 AC 62 ms
71,688 KB
testcase_04 AC 64 ms
71,456 KB
testcase_05 AC 69 ms
75,720 KB
testcase_06 AC 63 ms
75,608 KB
testcase_07 AC 63 ms
75,748 KB
testcase_08 AC 73 ms
79,812 KB
testcase_09 AC 80 ms
82,292 KB
testcase_10 AC 77 ms
81,212 KB
testcase_11 AC 93 ms
96,440 KB
testcase_12 AC 80 ms
87,080 KB
testcase_13 AC 62 ms
71,704 KB
testcase_14 AC 95 ms
96,768 KB
testcase_15 AC 83 ms
88,672 KB
testcase_16 AC 94 ms
92,392 KB
testcase_17 AC 371 ms
293,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    S = input().rstrip('\n')
    ans = [S[0]]
    for i in range(1, len(S)):
        if S[i] != S[i-1]:
            ans.append(S[i])
    print("".join(ans))


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