結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー yuzu32ut
提出日時 2022-02-27 19:07:48
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 6 ms / 2,000 ms
+ 488µs
コード長 394 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 12,379 ms
コンパイル使用メモリ 183,632 KB
実行使用メモリ 7,376 KB
最終ジャッジ日時 2026-08-08 08:53:44
合計ジャッジ時間 14,207 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

fn read() -> Vec<u64> {
    fn read_line() -> String {
        let mut buf = String::new();
        std::io::stdin().read_line(&mut buf).unwrap();
        buf.trim().to_owned()
    }
    let _ = read_line();
    read_line()
        .split_ascii_whitespace()
        .map(|e| e.parse().unwrap())
        .collect()
}

fn main() {
    let a = read();
    println!("{}", a.iter().sum::<u64>());
}
0