結果

問題 No.480 合計
ユーザー isimiya
提出日時 2018-05-23 20:15:23
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 230 bytes
コンパイル時間 738 ms
コンパイル使用メモリ 109,640 KB
実行使用メモリ 27,984 KB
最終ジャッジ日時 2024-06-28 16:21:27
合計ジャッジ時間 2,046 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
public class Classmiya
{
	static void Main()
	{
		string arg = Console.ReadLine();
		int n = Convert.ToInt32(arg);
		int total = 0;
		for (int i = 0; i < n; i++){
			total += ++i;
		}
		Console.WriteLine(total);
	}
}
0