# 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; } }; ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up