結果

問題 No.1469 programing
ユーザー moharan627moharan627
提出日時 2021-04-09 21:22:48
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 1,482 ms / 3,000 ms
コード長 478 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 10,960 KB
実行使用メモリ 51,836 KB
最終ジャッジ日時 2023-09-07 09:38:53
合計ジャッジ時間 3,782 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,876 KB
testcase_01 AC 16 ms
7,792 KB
testcase_02 AC 16 ms
7,708 KB
testcase_03 AC 16 ms
7,772 KB
testcase_04 AC 16 ms
7,920 KB
testcase_05 AC 17 ms
7,796 KB
testcase_06 AC 17 ms
7,764 KB
testcase_07 AC 17 ms
7,964 KB
testcase_08 AC 55 ms
9,120 KB
testcase_09 AC 71 ms
9,376 KB
testcase_10 AC 65 ms
9,368 KB
testcase_11 AC 133 ms
9,940 KB
testcase_12 AC 102 ms
9,336 KB
testcase_13 AC 16 ms
7,968 KB
testcase_14 AC 167 ms
10,324 KB
testcase_15 AC 105 ms
10,340 KB
testcase_16 AC 163 ms
12,572 KB
testcase_17 AC 1,482 ms
51,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
sys.setrecursionlimit(10 ** 6)
def II(): return int(sys.stdin.readline())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LC(): return list(input())
def IC(): return [int(c) for c in input()]
def MI(): return map(int, sys.stdin.readline().split())
INF = float('inf')
MOD = 10**9 + 7
def solve():
    S = LC()
    N = len(S)
    print(S[0],end="")
    for i in range(1,N):
        if(S[i]!=S[i-1]):
            print(S[i], end="")
    return
solve()
0