結果
| 問題 |
No.1178 Can you draw a Circle?
|
| コンテスト | |
| ユーザー |
ixTL255
|
| 提出日時 | 2023-01-08 21:55:30 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 536 bytes |
| コンパイル時間 | 15,918 ms |
| コンパイル使用メモリ | 378,928 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-16 01:42:48 |
| 合計ジャッジ時間 | 13,007 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 WA * 6 |
コンパイルメッセージ
warning: unused variable: `b` --> src/main.rs:6:9 | 6 | let b: f64 = itr.next().unwrap().parse().unwrap(); | ^ help: if this is intentional, prefix it with an underscore: `_b` | = note: `#[warn(unused_variables)]` on by default
ソースコード
fn main() {
let mut s = String::new();
std::io::stdin().read_line(&mut s).ok();
let mut itr = s.trim().split_whitespace();
let a: f64 = itr.next().unwrap().parse().unwrap();
let b: f64 = itr.next().unwrap().parse().unwrap();
let c: f64 = itr.next().unwrap().parse().unwrap();
let d: f64 = itr.next().unwrap().parse().unwrap();
let e: f64 = itr.next().unwrap().parse().unwrap();
let f: f64 = itr.next().unwrap().parse().unwrap();
println!("{}", ((c * c + d * d) / (4. * a * a) - e + f).sqrt());
}
ixTL255