結果

問題 No.1469 programing
ユーザー nohakai3nohakai3
提出日時 2022-07-02 20:50:41
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 213 bytes
コンパイル時間 510 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 78,332 KB
最終ジャッジ日時 2023-08-18 13:06:47
合計ジャッジ時間 13,387 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
14,908 KB
testcase_01 AC 15 ms
7,912 KB
testcase_02 AC 15 ms
7,840 KB
testcase_03 AC 15 ms
7,840 KB
testcase_04 AC 16 ms
7,780 KB
testcase_05 AC 17 ms
7,852 KB
testcase_06 WA -
testcase_07 AC 17 ms
7,852 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 209 ms
9,852 KB
testcase_11 AC 1,457 ms
12,208 KB
testcase_12 AC 739 ms
10,908 KB
testcase_13 AC 15 ms
7,788 KB
testcase_14 AC 2,253 ms
13,412 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