結果

問題 No.1469 programing
ユーザー 8nd5t8nd5t
提出日時 2021-04-09 21:22:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 455 ms / 3,000 ms
コード長 636 bytes
コンパイル時間 433 ms
コンパイル使用メモリ 86,632 KB
実行使用メモリ 287,448 KB
最終ジャッジ日時 2023-09-07 09:37:39
合計ジャッジ時間 3,942 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 97 ms
71,384 KB
testcase_01 AC 98 ms
71,692 KB
testcase_02 AC 96 ms
71,776 KB
testcase_03 AC 99 ms
71,872 KB
testcase_04 AC 98 ms
71,508 KB
testcase_05 AC 106 ms
76,988 KB
testcase_06 AC 104 ms
77,024 KB
testcase_07 AC 104 ms
77,012 KB
testcase_08 AC 114 ms
81,100 KB
testcase_09 AC 113 ms
83,280 KB
testcase_10 AC 113 ms
82,468 KB
testcase_11 AC 126 ms
93,628 KB
testcase_12 AC 118 ms
88,144 KB
testcase_13 AC 97 ms
71,216 KB
testcase_14 AC 133 ms
98,496 KB
testcase_15 AC 124 ms
88,456 KB
testcase_16 AC 140 ms
98,028 KB
testcase_17 AC 455 ms
287,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,math,itertools
from collections import Counter,deque,defaultdict
from bisect import bisect_left,bisect_right 
from heapq import heappop,heappush,heapify
mod = 10**9+7
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_1(): return list(map(lambda x:int(x)-1, sys.stdin.readline().split()))
def inps(): return sys.stdin.readline()
def inpsl(x): tmp = inps(); return list(tmp[:x])
def err(x): print(x); exit()

s = input()
res = [s[0]]
for i in range(1,len(s)):
    if s[i] == s[i-1]:
        continue
    res.append(s[i])
print(''.join(res)) 
0