結果

問題 No.1249 小学校1年生の夢
ユーザー Strorkis
提出日時 2020-10-09 21:22:48
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 409 bytes
コンパイル時間 12,407 ms
コンパイル使用メモリ 379,328 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-20 08:08:00
合計ジャッジ時間 14,096 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

macro_rules! read_to_tuple {
    ( $( $t:ty ),* ) => {{
        let mut input = String::new();
        std::io::stdin().read_line(&mut input).unwrap();
        let mut iter = input.split_whitespace();
        ( $( iter.next().unwrap().parse::<$t>().unwrap() ),* )
    }};
}

fn main() {
    let (a, b, c) = read_to_tuple!(i32, i32, i32);
    println!("{}", if a + b == c { "Correct" } else { "Incorrect" });
}
0