結果

問題 No.480 合計
ユーザー tera_3939
提出日時 2017-07-13 23:00:09
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 13,090 ms
コンパイル使用メモリ 381,888 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-14 09:31:58
合計ジャッジ時間 14,182 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

/* https://yukicoder.me/problems/no/480 */
use std::io;

fn main() {
    let mut input = String::new();
    io::stdin().read_line(&mut input).unwrap();
    let a: u32 = input.trim().parse().unwrap();
    let b: u32 = (1..a+1).sum();
    println!("{}", b);
}
0