結果

問題 No.1469 programing
ユーザー wolgnikwolgnik
提出日時 2021-04-09 21:22:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 699 ms / 3,000 ms
コード長 148 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 86,964 KB
実行使用メモリ 434,964 KB
最終ジャッジ日時 2023-09-07 09:37:35
合計ジャッジ時間 3,358 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
71,068 KB
testcase_01 AC 59 ms
71,124 KB
testcase_02 AC 63 ms
71,336 KB
testcase_03 AC 64 ms
71,296 KB
testcase_04 AC 60 ms
71,108 KB
testcase_05 AC 65 ms
75,876 KB
testcase_06 AC 64 ms
75,652 KB
testcase_07 AC 63 ms
75,776 KB
testcase_08 AC 75 ms
82,208 KB
testcase_09 AC 77 ms
85,168 KB
testcase_10 AC 75 ms
84,256 KB
testcase_11 AC 99 ms
100,620 KB
testcase_12 AC 81 ms
90,744 KB
testcase_13 AC 64 ms
71,224 KB
testcase_14 AC 108 ms
106,164 KB
testcase_15 AC 103 ms
97,544 KB
testcase_16 AC 124 ms
121,176 KB
testcase_17 AC 699 ms
434,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
S = list(input())[: -1]
s = []
for x in S:
  if len(s) and s[-1] == x: s.pop()
  s.append(x)
print("".join(s))
0