結果

問題 No.480 合計
ユーザー のぶたかひろ
提出日時 2024-10-15 16:51:07
言語 C#
(.NET 8.0.404)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 8,400 ms
コンパイル使用メモリ 168,060 KB
実行使用メモリ 184,700 KB
最終ジャッジ日時 2024-10-15 16:51:18
合計ジャッジ時間 8,967 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (100 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;

public class Test{
	static void Main(){
		string s = Console.ReadLine();
		int a = int.Parse(s);
		int total=0;
		for(int i = 1; i <= a; i++){
			total = total + i;
		}
		Console.WriteLine(total);
	}
}
0