結果
| 問題 |
No.480 合計
|
| ユーザー |
asf asf
|
| 提出日時 | 2020-05-14 07:08:53 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 137 ms / 2,000 ms |
| コード長 | 331 bytes |
| コンパイル時間 | 4,375 ms |
| コンパイル使用メモリ | 74,912 KB |
| 実行使用メモリ | 54,216 KB |
| 最終ジャッジ日時 | 2024-09-14 19:00:39 |
| 合計ジャッジ時間 | 7,370 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
import java.util.Arrays;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int sum = 0;
for (int i = 0; i < n; i++) {
sum += i+1;
}
System.out.println(sum);
}
}
asf asf