結果
| 問題 | No.480 合計 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-23 22:01:47 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 2,000 ms |
| コード長 | 296 bytes |
| 記録 | |
| コンパイル時間 | 2,480 ms |
| コンパイル使用メモリ | 82,244 KB |
| 実行使用メモリ | 41,816 KB |
| 最終ジャッジ日時 | 2026-03-25 03:14:46 |
| 合計ジャッジ時間 | 4,536 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
import java.util.Scanner;
public class total {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int total = 0;
for(int i = 1; i <= N; i++) {
total += i;
}
System.out.println(total);
}
}