結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー 小松秀行小松秀行
提出日時 2020-07-26 12:32:03
言語 Rust
(1.77.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 405 bytes
コンパイル時間 588 ms
コンパイル使用メモリ 135,952 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-10 21:18:27
合計ジャッジ時間 1,048 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

use std::io::stdin;

fn read_line() -> String {
    let mut line = String::new();
    stdin().read_line(&mut line).ok();
    line
}

fn main() {
    let line = read_line();
    let first_vec: Vec<&str> = line.split_whitespace().collect();
    let a: usize = first_vec[0].parse().unwrap();
    let b: usize = first_vec[1].parse().unwrap();
    let s = read_line();
    println!("{} {}", a + b, s.trim());
}
0