結果

問題 No.480 合計
ユーザー spring
提出日時 2019-06-12 11:11:20
言語 Java
(openjdk 23)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 280 bytes
コンパイル時間 2,586 ms
コンパイル使用メモリ 74,248 KB
実行使用メモリ 54,188 KB
最終ジャッジ日時 2024-10-09 17:17:30
合計ジャッジ時間 6,225 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int input = sc.nextInt();
		int result = 0;
		for(int i=1;input>=i;i++){
			result += i;
		}
		System.out.println(result);


	}//mainmethod

} //class
0