結果
問題 |
No.480 合計
|
ユーザー |
![]() |
提出日時 | 2020-05-14 11:04:13 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 132 ms / 2,000 ms |
コード長 | 450 bytes |
コンパイル時間 | 2,676 ms |
コンパイル使用メモリ | 79,440 KB |
実行使用メモリ | 41,224 KB |
最終ジャッジ日時 | 2024-09-15 01:23:41 |
合計ジャッジ時間 | 6,057 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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); } }