結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー 小松秀行
提出日時 2020-07-26 12:32:03
言語 Rust
(1.93.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 405 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 648 ms
コンパイル使用メモリ 195,708 KB
実行使用メモリ 7,712 KB
最終ジャッジ日時 2026-03-17 05:34:49
合計ジャッジ時間 1,358 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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