結果

問題 No.1469 programing
ユーザー brthyyjpbrthyyjp
提出日時 2021-04-09 21:21:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 484 ms / 3,000 ms
コード長 176 bytes
コンパイル時間 1,871 ms
コンパイル使用メモリ 86,592 KB
実行使用メモリ 292,080 KB
最終ジャッジ日時 2023-09-07 09:35:11
合計ジャッジ時間 3,909 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
71,264 KB
testcase_01 AC 59 ms
71,044 KB
testcase_02 AC 60 ms
71,288 KB
testcase_03 AC 59 ms
71,352 KB
testcase_04 AC 58 ms
70,860 KB
testcase_05 AC 71 ms
75,672 KB
testcase_06 AC 65 ms
75,508 KB
testcase_07 AC 64 ms
75,768 KB
testcase_08 AC 68 ms
79,676 KB
testcase_09 AC 72 ms
82,480 KB
testcase_10 AC 71 ms
81,344 KB
testcase_11 AC 87 ms
96,052 KB
testcase_12 AC 77 ms
86,652 KB
testcase_13 AC 60 ms
71,424 KB
testcase_14 AC 94 ms
96,472 KB
testcase_15 AC 83 ms
85,908 KB
testcase_16 AC 94 ms
93,216 KB
testcase_17 AC 484 ms
292,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = str(input())
t = []
for c in s:
    if t:
        if t[-1] == c:
            continue
        else:
            t.append(c)
    else:
        t.append(c)
print(''.join(t))
0