結果

問題 No.1469 programing
ユーザー maru65536maru65536
提出日時 2021-04-09 21:51:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 166 bytes
コンパイル時間 221 ms
コンパイル使用メモリ 10,644 KB
実行使用メモリ 39,616 KB
最終ジャッジ日時 2023-09-07 10:55:31
合計ジャッジ時間 4,012 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,804 KB
testcase_01 AC 15 ms
7,792 KB
testcase_02 AC 17 ms
7,832 KB
testcase_03 AC 16 ms
7,880 KB
testcase_04 AC 16 ms
7,792 KB
testcase_05 AC 16 ms
7,764 KB
testcase_06 WA -
testcase_07 AC 16 ms
7,756 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 53 ms
8,804 KB
testcase_11 AC 93 ms
10,312 KB
testcase_12 AC 71 ms
9,460 KB
testcase_13 RE -
testcase_14 AC 117 ms
10,900 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
b=[]
if len(s)==1:
    print(s)
for i in range(len(s)-1):
    if s[i]!=s[i+1]:
        b.append(s[i])
if s[-1]!=s[-2]:
    b.append(s[-1])
print(''.join(b))
0