結果

問題 No.480 合計
ユーザー QED0302
提出日時 2018-05-09 15:20:43
言語 Java
(openjdk 23)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 247 bytes
コンパイル時間 3,297 ms
コンパイル使用メモリ 74,152 KB
実行使用メモリ 41,540 KB
最終ジャッジ日時 2024-06-28 02:44:02
合計ジャッジ時間 7,025 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class num{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int total = 0;
		for(int i = 0;i<=num;i++){
			total += i;
		}
		System.out.print(total);
	}
}
0