結果
問題 |
No.480 合計
|
ユーザー |
|
提出日時 | 2019-11-30 20:09:34 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 134 ms / 2,000 ms |
コード長 | 393 bytes |
コンパイル時間 | 3,748 ms |
コンパイル使用メモリ | 74,572 KB |
実行使用メモリ | 54,824 KB |
最終ジャッジ日時 | 2024-11-21 03:29:39 |
合計ジャッジ時間 | 7,060 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
package app; import java.util.*; public class App { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); String str = scan.nextLine(); int n = Integer.parseInt(str); int sum = 0; for(int i=1; i<=n; i++) { sum += i; } System.out.println(sum); scan.close(); } }