結果

問題 No.1469 programing
ユーザー AAAR SalmonAAAR Salmon
提出日時 2021-05-15 13:29:46
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 302 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 82,564 KB
実行使用メモリ 270,624 KB
最終ジャッジ日時 2024-04-14 04:04:33
合計ジャッジ時間 7,516 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
57,092 KB
testcase_01 AC 45 ms
57,160 KB
testcase_02 AC 47 ms
56,368 KB
testcase_03 AC 46 ms
55,748 KB
testcase_04 AC 46 ms
56,588 KB
testcase_05 AC 51 ms
64,392 KB
testcase_06 AC 51 ms
62,300 KB
testcase_07 AC 52 ms
64,944 KB
testcase_08 AC 355 ms
86,024 KB
testcase_09 AC 648 ms
98,476 KB
testcase_10 AC 551 ms
93,868 KB
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import math
from math import sin, cos, tan
from functools import reduce
from collections import deque
import heapq
sys.setrecursionlimit(1000000)
intm1 = lambda x:int(x)-1

S = input()
N = len(S)
T = S[0]
i = 1
while i < N:
	if S[i] == T[-1]:
		i += 1
		continue
	T += S[i]
	i += 1
print(T)
0