Submission #21998346
Source Code Expand
fn rl() -> String {
let mut s = String::new();
match std::io::stdin().read_line(&mut s) {
Err(e) => {println!("{}", e); ""},
_ => s.trim_end(),
}.to_string()
}
fn main() {
let s = rl();
let vs: Vec<&str> = s.split_whitespace().collect();
let a: i32 = if let Ok(x) = vs[0].parse() {x} else {0};
let b: i32 = if let Ok(x) = vs[1].parse() {x} else {0};
let c: i32 = if let Ok(x) = vs[2].parse() {x} else {0};
if a * a + b * b < c *c {
println!("Yes");
} else {
println!("No");
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Square Inequality |
| User | qexy |
| Language | Rust (1.42.0) |
| Score | 100 |
| Code Size | 575 Byte |
| Status | AC |
| Exec Time | 8 ms |
| Memory | 2132 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample_01.txt, sample_02.txt, sample_03.txt |
| All | handmade_00.txt, handmade_01.txt, handmade_02.txt, handmade_03.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, sample_01.txt, sample_02.txt, sample_03.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| handmade_00.txt | AC | 8 ms | 1972 KiB |
| handmade_01.txt | AC | 3 ms | 2016 KiB |
| handmade_02.txt | AC | 2 ms | 2000 KiB |
| handmade_03.txt | AC | 2 ms | 1980 KiB |
| random_00.txt | AC | 1 ms | 2116 KiB |
| random_01.txt | AC | 2 ms | 2132 KiB |
| random_02.txt | AC | 2 ms | 2052 KiB |
| random_03.txt | AC | 2 ms | 2112 KiB |
| random_04.txt | AC | 1 ms | 2072 KiB |
| random_05.txt | AC | 2 ms | 1908 KiB |
| random_06.txt | AC | 2 ms | 2028 KiB |
| random_07.txt | AC | 2 ms | 2076 KiB |
| random_08.txt | AC | 2 ms | 2016 KiB |
| random_09.txt | AC | 2 ms | 2036 KiB |
| random_10.txt | AC | 2 ms | 2112 KiB |
| random_11.txt | AC | 2 ms | 1964 KiB |
| random_12.txt | AC | 2 ms | 2076 KiB |
| random_13.txt | AC | 2 ms | 2044 KiB |
| sample_01.txt | AC | 2 ms | 1964 KiB |
| sample_02.txt | AC | 2 ms | 2036 KiB |
| sample_03.txt | AC | 2 ms | 2060 KiB |