結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー phspls
提出日時 2020-01-04 17:49:04
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
WA  
実行時間 -
コード長 387 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 17,692 ms
コンパイル使用メモリ 186,380 KB
実行使用メモリ 9,840 KB
最終ジャッジ日時 2026-09-28 08:25:47
合計ジャッジ時間 3,457 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

fn solve(summary: i64, s: String) {
    println!("{} {}", summary, s);
}

fn main() {
    let mut x_y = String::new();
    let mut s = String::new();
    std::io::stdin().read_line(&mut x_y).unwrap();
    std::io::stdin().read_line(&mut s).unwrap();
    let summary: i64 = x_y.trim().split_whitespace()
        .map(|s| s.parse::<i64>().unwrap())
        .sum();
    solve(summary, s);
}
0