結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー eroge_mastereroge_master
提出日時 2023-08-04 22:41:46
言語 Rust
(1.77.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 1,445 bytes
コンパイル時間 901 ms
コンパイル使用メモリ 147,200 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-22 21:00:40
合計ジャッジ時間 1,453 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

// use std::io::*;

#[allow(unused_macros)]
// 整数1つ読み込み(macro)
macro_rules! read {
    ($($t:ty),*) => {
        {
            let mut input = String::new();
            std::io::stdin().read_line(&mut input).ok();
            let mut iter = input.split_whitespace();
            ($(iter.next().unwrap().parse::<$t>().unwrap()),*)
        }
    };
}
#[allow(unused_macros)]
// 文字列1つ読み込み(macro)
macro_rules! read_str {
    () => {
        {
            let mut input = String::new();
            std::io::stdin().read_line(&mut input).ok();
            input.trim().to_string()
        }
    };
}

#[allow(unused_macros)]
// 整数の1次元ベクトル読み込み(macro)
macro_rules! read_vec {
    ($t:ty) => {
        {
            let mut input = String::new();
            std::io::stdin().read_line(&mut input).ok();
            input.trim().split_whitespace().map(|x| x.parse::<$t>().unwrap()).collect::<Vec<$t>>()
        }
    };
}

#[allow(unused_macros)]
// 文字列の1次元ベクトル読み込み(macro)
macro_rules! read_str_vec {
    () => {
        {
            let mut input = String::new();
            std::io::stdin().read_line(&mut input).ok();
            input.trim().split_whitespace().map(|x| x.to_string()).collect::<Vec<String>>()
        }
    };
}

fn main() {
    let (a, b) = read!(usize, usize);
    let s = read_str!();
    let c = a + b;
    println!("{} {}", c, s);
}
0