結果

問題 No.3352 中点判定
コンテスト
ユーザー elphe
提出日時 2025-11-14 21:50:08
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 315 bytes
コンパイル時間 12,375 ms
コンパイル使用メモリ 399,804 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-11-14 21:50:26
合計ジャッジ時間 12,945 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::{fastout, input};

#[fastout]
fn main() {
    input! {
        p: i32,
		q: i32,
		r: i32,
    }

    println!("{}", output(solve(p, q, r)));
}

fn solve(p: i32, q: i32, r: i32) -> bool {
    q * 2 == p + r
}

fn output(ans: bool) -> &'static str {
	match ans {
		true => "Yes",
		false => "No",
	}
}
0