結果

問題 No.480 合計
ユーザー kuramubonn
提出日時 2023-02-01 15:13:48
言語 Java
(openjdk 23)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 3,072 ms
コンパイル使用メモリ 74,248 KB
実行使用メモリ 54,312 KB
最終ジャッジ日時 2024-07-01 10:41:18
合計ジャッジ時間 6,148 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(),total = 0;
		for(int i = 0 ; i < n ; i++)total += i + 1;
		System.out.print(total);
	}
}
0