結果
| 問題 | No.480 合計 |
| コンテスト | |
| ユーザー |
水野嶺
|
| 提出日時 | 2020-05-14 11:04:13 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| コード長 | 450 bytes |
| 記録 | |
| コンパイル時間 | 1,851 ms |
| コンパイル使用メモリ | 81,772 KB |
| 実行使用メモリ | 41,536 KB |
| 最終ジャッジ日時 | 2026-04-04 16:14:12 |
| 合計ジャッジ時間 | 3,802 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
int sum = 0;
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i=0;i<=n;i++){
sum +=i;
}
System.out.println(sum);
}
}
水野嶺