結果

問題 No.1469 programing
ユーザー nohakai3nohakai3
提出日時 2022-07-02 20:50:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 213 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 17,220 KB
最終ジャッジ日時 2024-05-05 18:22:46
合計ジャッジ時間 11,692 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
16,128 KB
testcase_01 AC 25 ms
10,624 KB
testcase_02 AC 25 ms
10,752 KB
testcase_03 AC 24 ms
10,752 KB
testcase_04 AC 26 ms
10,624 KB
testcase_05 AC 25 ms
10,624 KB
testcase_06 WA -
testcase_07 AC 26 ms
10,752 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 183 ms
12,544 KB
testcase_11 AC 1,255 ms
14,652 KB
testcase_12 AC 635 ms
13,668 KB
testcase_13 AC 26 ms
10,624 KB
testcase_14 AC 1,856 ms
16,000 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

s=list(input())
n=len(s)
l=[]
i=0
while i<n-1:
    if s[i]==s[i+1]:
        l.append(s[i])
        i+=2
    else:
        l.append(s[i])
        i+=1

l.append(s[n-1])
ans=""
for x in l:
    ans+=x
    
print(ans)
0