結果
| 問題 |
No.1469 programing
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 20:53:54 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 395 ms / 3,000 ms |
| コード長 | 219 bytes |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 83,016 KB |
| 実行使用メモリ | 301,124 KB |
| 最終ジャッジ日時 | 2025-03-20 20:54:52 |
| 合計ジャッジ時間 | 2,498 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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