結果

問題 No.480 合計
ユーザー Maeda
提出日時 2025-03-31 11:23:32
言語 C#
(.NET 8.0.404)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 296 bytes
コンパイル時間 7,613 ms
コンパイル使用メモリ 170,100 KB
実行使用メモリ 187,292 KB
最終ジャッジ日時 2025-03-31 11:23:43
合計ジャッジ時間 10,077 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (108 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            int ans = 0;
            for(int i = 1 ; i <= n; i++)
            {
                ans += i;
            }
            Console.WriteLine(ans);
        }
    }
0