結果

問題 No.480 合計
コンテスト
ユーザー あいうえお
提出日時 2017-02-10 23:40:07
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 766µs
コード長 273 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,047 ms
コンパイル使用メモリ 181,188 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2026-10-03 09:12:19
合計ジャッジ時間 2,758 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use std::io;

fn main() {
    let mut str = String::new();
    io::stdin().read_line(&mut str).ok().expect("error");
    let n : u64 = str.trim().parse().ok().expect("error");
    let mut s : u64 = 0;
    for i in 1 .. n + 1 {
        s += i;
    }
    println!("{}", s);
}
0