結果

問題 No.726 Tree Game
ユーザー 特命ログイン
提出日時 2018-08-24 22:54:04
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 482 bytes
コンパイル時間 12,498 ms
コンパイル使用メモリ 377,624 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-23 08:42:02
合計ジャッジ時間 13,488 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io::{Read, stdin};

fn main() {
    let mut buf = String::new();
    stdin().read_to_string(&mut buf).unwrap();
    let mut tok = buf.split_whitespace();
    let mut get = || tok.next().unwrap();
    macro_rules! get {
        ($t:ty) => (get().parse::<$t>().unwrap());
        () => (get!(i64));
    }
    
    let y = get!();
    let x = get!();
    
    if y % 2 == x % 2 || (x < 3 && y < 3) {
        println!("Second");
    } else {
        println!("First");
    }
}
0