結果
| 問題 |
No.3074 Divide Points Fairly
|
| コンテスト | |
| ユーザー |
urectanc
|
| 提出日時 | 2025-03-28 21:41:01 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 402 bytes |
| コンパイル時間 | 12,585 ms |
| コンパイル使用メモリ | 401,252 KB |
| 実行使用メモリ | 7,328 KB |
| 最終ジャッジ日時 | 2025-03-28 21:42:59 |
| 合計ジャッジ時間 | 18,904 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 14 WA * 27 RE * 1 |
ソースコード
use proconio::input;
fn main() {
input! {
n: usize,
points: [(i64, i64); 2 * n]
}
let (a, b) = (99989, 99991);
let mut z = points
.iter()
.map(|&(x, y)| a * x + b * y)
.collect::<Vec<_>>();
z.sort_unstable();
let c0 = z[n - 1];
let c1 = z[n];
assert!(c0 != c1 && c0 + 1 < c1);
let c = c0 + 1;
println!("{a} {b} {c}");
}
urectanc