結果

問題 No.480 合計
ユーザー ML8xnYizwPAcWLQML8xnYizwPAcWLQ
提出日時 2018-11-25 19:11:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 286 bytes
コンパイル時間 2,863 ms
コンパイル使用メモリ 71,752 KB
実行使用メモリ 56,436 KB
最終ジャッジ日時 2023-08-26 05:13:09
合計ジャッジ時間 6,411 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
56,084 KB
testcase_01 AC 114 ms
55,952 KB
testcase_02 AC 114 ms
56,188 KB
testcase_03 AC 114 ms
56,264 KB
testcase_04 AC 112 ms
54,048 KB
testcase_05 AC 115 ms
55,916 KB
testcase_06 AC 116 ms
56,056 KB
testcase_07 AC 115 ms
56,056 KB
testcase_08 AC 110 ms
55,812 KB
testcase_09 AC 115 ms
55,792 KB
testcase_10 AC 117 ms
55,536 KB
testcase_11 AC 113 ms
56,020 KB
testcase_12 AC 116 ms
56,112 KB
testcase_13 AC 114 ms
56,052 KB
testcase_14 AC 118 ms
55,852 KB
testcase_15 AC 113 ms
56,436 KB
testcase_16 AC 110 ms
56,328 KB
testcase_17 AC 116 ms
56,148 KB
testcase_18 AC 112 ms
56,320 KB
testcase_19 AC 112 ms
55,964 KB
testcase_20 AC 115 ms
56,000 KB
testcase_21 AC 113 ms
55,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/**
 * Yukicoder1
 */
import java.util.*;
public class Yukicoder1 {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int sum = 0;
    int n = sc.nextInt();
    for (int i = 1; i <= n; i++) {
      sum += i;
    }
    System.out.println(sum);
  }
}
0