結果

問題 No.480 合計
ユーザー cccccc
提出日時 2022-07-11 21:41:19
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 13,211 ms
コンパイル使用メモリ 145,524 KB
実行使用メモリ 163,152 KB
最終ジャッジ日時 2023-09-04 18:10:29
合計ジャッジ時間 13,606 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
30,072 KB
testcase_01 AC 46 ms
30,204 KB
testcase_02 AC 46 ms
28,116 KB
testcase_03 AC 47 ms
28,064 KB
testcase_04 AC 47 ms
27,964 KB
testcase_05 AC 47 ms
27,940 KB
testcase_06 AC 46 ms
27,956 KB
testcase_07 AC 48 ms
27,916 KB
testcase_08 AC 47 ms
28,244 KB
testcase_09 AC 47 ms
28,260 KB
testcase_10 AC 46 ms
27,752 KB
testcase_11 AC 46 ms
28,068 KB
testcase_12 AC 46 ms
30,068 KB
testcase_13 AC 46 ms
27,976 KB
testcase_14 AC 46 ms
27,916 KB
testcase_15 AC 46 ms
28,116 KB
testcase_16 AC 47 ms
27,964 KB
testcase_17 AC 47 ms
27,784 KB
testcase_18 AC 47 ms
27,916 KB
testcase_19 AC 46 ms
29,924 KB
testcase_20 AC 47 ms
30,156 KB
testcase_21 AC 47 ms
163,152 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 147 ms).
.NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f
Copyright (C) Microsoft Corporation.All rights reserved.

  プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください
  main -> /home/judge/data/code/bin/Release/net6.0/main.dll
  main -> /home/judge/data/code/bin/Release/net6.0/publish/

ソースコード

diff #

using System;

class Program
{
    static void Main()
    {
        var i = int.Parse(Console.ReadLine());
        int ans = 0;
        while (i != 0)
        {
            ans += i;
            i--;
        }
        Console.WriteLine(ans);
    }
}
0