feat: 2469_convert_the_temperature

This commit is contained in:
SquidSpirit 2025-08-18 20:00:50 +08:00
parent ea7ae7b6ad
commit bb0ae9bf73
3 changed files with 20 additions and 0 deletions

7
2469_convert_the_temperature/Cargo.lock generated Normal file
View File

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "convert_the_temperature"
version = "0.1.0"

View File

@ -0,0 +1,6 @@
[package]
name = "convert_the_temperature"
version = "0.1.0"
edition = "2024"
[dependencies]

View File

@ -0,0 +1,7 @@
pub struct Solution;
impl Solution {
pub fn convert_temperature(celsius: f64) -> Vec<f64> {
vec![celsius + 273.15, celsius * 1.8 + 32.0]
}
}