結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー qryxipqryxip
提出日時 2019-11-18 12:15:22
言語 Rust
(1.77.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 379 bytes
コンパイル時間 435 ms
コンパイル使用メモリ 167,980 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-04-08 20:37:23
合計ジャッジ時間 738 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,676 KB
testcase_01 AC 1 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

fn main() {
    let mut input = "".to_owned();
    stdin().read_to_string(&mut input).unwrap();
    let mut input = input.split_whitespace();
    macro_rules! cin {
        () => {
            input.next().unwrap().parse().unwrap()
        };
    }

    let (a, b, s): (u32, u32, String) = (cin!(), cin!(), cin!());
    println!("{} {}", a + b, s);
}
0