結果
問題 |
No.480 合計
|
ユーザー |
|
提出日時 | 2020-12-15 22:28:42 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 123 ms / 2,000 ms |
コード長 | 335 bytes |
コンパイル時間 | 1,991 ms |
コンパイル使用メモリ | 74,744 KB |
実行使用メモリ | 41,492 KB |
最終ジャッジ日時 | 2024-09-20 02:22:56 |
合計ジャッジ時間 | 5,229 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
package yukicoder.tutorial.sum.bywhitespace; import java.util.Scanner; import java.util.stream.IntStream; public class Main { @SuppressWarnings("resource") public static void main(String[] args) { Scanner sc = new Scanner(System.in); int length = sc.nextInt(); System.out.println(IntStream.range(1, length + 1).sum()); } }