結果
| 問題 | No.1469 programing |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 18:44:12 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 327 ms / 3,000 ms |
| コード長 | 219 bytes |
| 記録 | |
| コンパイル時間 | 244 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 284,968 KB |
| 最終ジャッジ日時 | 2026-07-07 07:28:21 |
| 合計ジャッジ時間 | 3,869 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
s = input().strip()
if not s:
print('')
else:
result = [s[0]]
prev_char = s[0]
for c in s[1:]:
if c != prev_char:
result.append(c)
prev_char = c
print(''.join(result))
lam6er