結果
| 問題 | No.1064 ∪∩∩ / Cup Cap Cap |
| コンテスト | |
| ユーザー |
uw_yu1rabbit
|
| 提出日時 | 2021-03-14 00:35:45 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 747 bytes |
| 記録 | |
| コンパイル時間 | 14,322 ms |
| コンパイル使用メモリ | 378,112 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-15 14:11:34 |
| 合計ジャッジ時間 | 14,580 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 26 WA * 10 |
ソースコード
#[allow(dead_code)]
#[allow(unused_imports)]
fn read<T: std::str::FromStr>() -> T {
use std::io::*;
let stdin = stdin();
let stdin = stdin.lock();
let token: String = stdin
.bytes()
.map(|c| c.expect("failed to read char") as char)
.skip_while(|c| c.is_whitespace())
.take_while(|c| !c.is_whitespace())
.collect();
token.parse().ok().expect("failed to parse token")
}
fn main(){
let a:i64 = read();
let b:i64 = read();
let c:i64 = read();
let d:i64 = read();
let dis = (a - c) * (a - c) - 4 * 2 * (b - d);
if dis < 0 {
println!("No");
}else if dis == 0 {
println!("Yes");
}else{
println!("{} {}",(a + c) / 2, (b + d) / 2);
}
}
uw_yu1rabbit