結果

問題 No.480 合計
ユーザー Ga-Chi-Mu-Chi
提出日時 2018-10-18 17:34:08
言語 Java
(openjdk 23)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 303 bytes
コンパイル時間 3,585 ms
コンパイル使用メモリ 74,680 KB
実行使用メモリ 41,404 KB
最終ジャッジ日時 2024-11-06 18:38:59
合計ジャッジ時間 7,625 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class HELLO {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner (System.in);
		int n = stdIn.nextInt();
		int total = 0;
		for(int i = 1; i<=n; i++) {
			total = total + i;
		}
		System.out.print(total);
	}

}
0