提出 #30125408
ソースコード 拡げる
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" });
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | 084 - Sqrt Inequality |
| ユーザ | bouzuya |
| 言語 | Rust (1.42.0) |
| 得点 | 300 |
| コード長 | 227 Byte |
| 結果 | AC |
| 実行時間 | 7 ms |
| メモリ | 2136 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 300 / 300 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 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 |