結果
| 問題 |
No.1469 programing
|
| コンテスト | |
| ユーザー |
だれ
|
| 提出日時 | 2021-04-09 21:22:18 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 206 bytes |
| コンパイル時間 | 146 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 16,000 KB |
| 最終ジャッジ日時 | 2024-06-25 03:54:30 |
| 合計ジャッジ時間 | 11,638 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 RE * 1 TLE * 1 |
ソースコード
s = input()
n = len(s)
i = 0
ans = ""
while i < n - 1:
if s[i] == s[i + 1]:
ans += s[i]
i += 2
else:
ans += s[i]
i += 1
if s[-2] != s[-1]:
ans += s[-1]
print(ans)
だれ