結果

問題 No.1469 programing
ユーザー kfield1950kfield1950
提出日時 2021-04-14 00:55:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 336 ms / 3,000 ms
コード長 198 bytes
コンパイル時間 677 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 97,156 KB
最終ジャッジ日時 2023-09-12 15:21:38
合計ジャッジ時間 3,610 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,192 KB
testcase_01 AC 71 ms
71,404 KB
testcase_02 AC 72 ms
71,196 KB
testcase_03 AC 71 ms
71,144 KB
testcase_04 AC 74 ms
71,196 KB
testcase_05 AC 85 ms
76,832 KB
testcase_06 AC 80 ms
76,560 KB
testcase_07 AC 84 ms
76,600 KB
testcase_08 AC 94 ms
77,620 KB
testcase_09 AC 98 ms
78,360 KB
testcase_10 AC 97 ms
78,132 KB
testcase_11 AC 103 ms
79,532 KB
testcase_12 AC 99 ms
78,816 KB
testcase_13 AC 74 ms
71,336 KB
testcase_14 AC 110 ms
79,608 KB
testcase_15 AC 100 ms
79,052 KB
testcase_16 AC 109 ms
79,428 KB
testcase_17 AC 336 ms
97,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
ans = s[0]
pre = s[0]
print(s[0], end='')
if len(s) != 1:
    for i in range(1, len(s)):
        if pre != s[i]:
            print(s[i], end='')
        pre = s[i]
            
        
0