結果

問題 No.1469 programing
ユーザー pypypymipypypymi
提出日時 2022-03-11 18:52:18
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 230 bytes
コンパイル時間 365 ms
コンパイル使用メモリ 86,620 KB
実行使用メモリ 270,988 KB
最終ジャッジ日時 2023-10-14 02:55:11
合計ジャッジ時間 8,722 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,052 KB
testcase_01 AC 72 ms
70,956 KB
testcase_02 AC 73 ms
70,968 KB
testcase_03 AC 72 ms
71,148 KB
testcase_04 AC 73 ms
71,092 KB
testcase_05 AC 109 ms
75,800 KB
testcase_06 AC 71 ms
70,768 KB
testcase_07 AC 78 ms
75,568 KB
testcase_08 AC 361 ms
85,880 KB
testcase_09 AC 539 ms
99,160 KB
testcase_10 AC 454 ms
94,136 KB
testcase_11 TLE -
testcase_12 AC 2,016 ms
260,232 KB
testcase_13 AC 70 ms
71,200 KB
testcase_14 TLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
s2 = s+"0"
index = 0
result = ""
while index < len(s):
    if s2[index]==s2[index+1]:
        result+=s2[index]
        index+=2
    else:
        result+=s2[index]
        index+=1
print(result)
        
        
    
0