結果

問題 No.480 合計
ユーザー fujita
提出日時 2023-04-20 13:05:36
言語 C#
(.NET 8.0.404)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 441 bytes
コンパイル時間 18,303 ms
コンパイル使用メモリ 168,072 KB
実行使用メモリ 181,620 KB
最終ジャッジ日時 2024-10-15 11:38:35
合計ジャッジ時間 20,493 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (98 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System;

namespace yukicoder
{
    class Program
    {

        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            int b = 0;
            int i;
            if (1 <= N && N <= 100)
            {
                for(i = 1; i <= N; i++)
                {
                    b += i;
                }
                Console.WriteLine(b);
            }
            
        }
    }
}
0