結果

問題 No.480 合計
ユーザー CroweaCrowea
提出日時 2019-01-24 12:53:56
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 235 bytes
コンパイル時間 724 ms
コンパイル使用メモリ 69,572 KB
実行使用メモリ 23,680 KB
最終ジャッジ日時 2023-10-14 09:37:45
合計ジャッジ時間 2,957 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
21,588 KB
testcase_01 AC 56 ms
21,560 KB
testcase_02 AC 56 ms
21,640 KB
testcase_03 AC 56 ms
21,492 KB
testcase_04 AC 56 ms
23,680 KB
testcase_05 AC 56 ms
21,524 KB
testcase_06 AC 56 ms
23,564 KB
testcase_07 AC 55 ms
21,536 KB
testcase_08 AC 56 ms
21,628 KB
testcase_09 AC 55 ms
21,512 KB
testcase_10 AC 55 ms
21,560 KB
testcase_11 AC 56 ms
21,668 KB
testcase_12 AC 55 ms
21,568 KB
testcase_13 AC 56 ms
23,660 KB
testcase_14 AC 55 ms
21,652 KB
testcase_15 AC 55 ms
21,556 KB
testcase_16 AC 56 ms
21,684 KB
testcase_17 AC 55 ms
21,544 KB
testcase_18 AC 55 ms
19,636 KB
testcase_19 AC 55 ms
21,692 KB
testcase_20 AC 56 ms
21,720 KB
testcase_21 AC 55 ms
19,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    static void Main(string[] args)
    {
        var input = int.Parse(Console.ReadLine());
        var sum = Enumerable.Range(1, input).Sum();
        Console.WriteLine(sum);
    }
}
0