Submission #30125408
Source Code Expand
use proconio::input;
fn main() {
input! {
a: usize,
b: usize,
c: usize,
};
let ans = (c > a + b) && (4 * a * b < (c - (a + b)).pow(2));
println!("{}", if ans { "Yes" } else { "No" });
}
Submission Info
| Submission Time | |
|---|---|
| Task | 084 - Sqrt Inequality |
| User | bouzuya |
| Language | Rust (1.42.0) |
| Score | 300 |
| Code Size | 227 Byte |
| Status | AC |
| Exec Time | 7 ms |
| Memory | 2136 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 300 / 300 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, 014.txt, 015.txt, 016.txt, 017.txt, 018.txt, 019.txt, 020.txt, 021.txt, 022.txt, 023.txt, 024.txt, example0.txt, example1.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 7 ms | 2024 KiB |
| 001.txt | AC | 1 ms | 2092 KiB |
| 002.txt | AC | 3 ms | 1944 KiB |
| 003.txt | AC | 1 ms | 2088 KiB |
| 004.txt | AC | 1 ms | 2028 KiB |
| 005.txt | AC | 1 ms | 2048 KiB |
| 006.txt | AC | 1 ms | 2136 KiB |
| 007.txt | AC | 1 ms | 2048 KiB |
| 008.txt | AC | 1 ms | 1956 KiB |
| 009.txt | AC | 2 ms | 2052 KiB |
| 010.txt | AC | 2 ms | 2000 KiB |
| 011.txt | AC | 1 ms | 2040 KiB |
| 012.txt | AC | 2 ms | 1900 KiB |
| 013.txt | AC | 2 ms | 2108 KiB |
| 014.txt | AC | 2 ms | 1908 KiB |
| 015.txt | AC | 1 ms | 2080 KiB |
| 016.txt | AC | 2 ms | 2032 KiB |
| 017.txt | AC | 2 ms | 2112 KiB |
| 018.txt | AC | 2 ms | 2112 KiB |
| 019.txt | AC | 2 ms | 2112 KiB |
| 020.txt | AC | 2 ms | 2052 KiB |
| 021.txt | AC | 1 ms | 1904 KiB |
| 022.txt | AC | 1 ms | 2068 KiB |
| 023.txt | AC | 2 ms | 2088 KiB |
| 024.txt | AC | 2 ms | 2024 KiB |
| example0.txt | AC | 1 ms | 1960 KiB |
| example1.txt | AC | 2 ms | 1908 KiB |