結果
問題 |
No.480 合計
|
ユーザー |
![]() |
提出日時 | 2017-04-17 15:24:06 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 59 ms / 2,000 ms |
コード長 | 524 bytes |
コンパイル時間 | 3,325 ms |
コンパイル使用メモリ | 74,232 KB |
実行使用メモリ | 50,432 KB |
最終ジャッジ日時 | 2024-12-14 09:22:28 |
合計ジャッジ時間 | 5,385 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
//No.480 合計 //https://yukicoder.me/problems/no/480 //20170417 1519 package no480; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No480 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String inLine; int n; int sum = 0; inLine = br.readLine(); n = Integer.parseInt(inLine); for(int i = 1; i <= n; i++){ sum += i; } System.out.print(sum); } }