結果
| 問題 |
No.1469 programing
|
| コンテスト | |
| ユーザー |
nohakai3
|
| 提出日時 | 2022-07-02 20:50:41 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 213 bytes |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 86,808 KB |
| 最終ジャッジ日時 | 2024-11-27 18:18:31 |
| 合計ジャッジ時間 | 11,921 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 5 TLE * 1 |
ソースコード
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)
nohakai3