---
# System prepended metadata

title: 2469. Convert the Temperature

---


# 2469. Convert the Temperature
[2469. Convert the Temperature](https://leetcode.com/problems/convert-the-temperature/) (<font color="#00AF9B"> Easy</font> 通過率: 89.9%)



## 限制條件
<ul>
<li>0 <= celsius <= 1000</li>
</ul>




### 解法 1
沒有怎麼解，就很簡單，我只是確認我自己今天有做事。

- 時間複雜度: O(1)
- 空間複雜度: O(1)

```cpp!=
class Solution {
public:
    vector<double> convertTemperature(double celsius) {
        vector<double> result{celsius + 273.15, celsius * 1.8 + 32};
        return result;
    }
};
```
