結果
問題 | No.98 円を描こう |
ユーザー |
|
提出日時 | 2024-05-14 18:01:09 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 237 bytes |
コンパイル時間 | 12,977 ms |
コンパイル使用メモリ | 404,240 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-20 10:01:37 |
合計ジャッジ時間 | 13,993 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
fn main() {let mut s = String::new();std::io::stdin().read_line(&mut s).ok();let n: Vec<f64> = s.split_whitespace().flat_map(str::parse).collect();println!("{}",((n[0].powi(2) + n[1].powi(2)).sqrt() * 2. + 1.).floor())}