結果
問題 |
No.208 王将
|
ユーザー |
![]() |
提出日時 | 2023-07-09 18:05:33 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 332 bytes |
コンパイル時間 | 12,634 ms |
コンパイル使用メモリ | 385,008 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-23 15:23:02 |
合計ジャッジ時間 | 13,768 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
use proconio::input; use proconio::fastout; use std::cmp::max; #[fastout] #[allow(non_snake_case)] fn main() { input! { x: isize, y: isize, x2: isize, y2: isize, } let mut ans = max(x, y); if x == y && x2 == y2 && 0 < x2 && x2 < x { ans += 1; } println!("{}", ans); }