結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー phsplsphspls
提出日時 2020-01-04 17:49:04
言語 Rust
(1.77.0)
結果
WA  
実行時間 -
コード長 387 bytes
コンパイル時間 12,293 ms
コンパイル使用メモリ 400,320 KB
実行使用メモリ 6,940 KB
最終ジャッジ日時 2024-05-02 08:30:37
合計ジャッジ時間 13,303 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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