結果

問題 No.1089 三変数方程式
ユーザー xRS43BofaUEZ5gcxRS43BofaUEZ5gc
提出日時 2021-03-19 13:39:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 224 bytes
コンパイル時間 3,336 ms
コンパイル使用メモリ 73,788 KB
実行使用メモリ 41,460 KB
最終ジャッジ日時 2024-04-29 06:59:51
合計ジャッジ時間 6,470 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
41,048 KB
testcase_01 AC 131 ms
41,320 KB
testcase_02 AC 115 ms
39,976 KB
testcase_03 AC 116 ms
39,736 KB
testcase_04 AC 131 ms
41,124 KB
testcase_05 AC 128 ms
41,064 KB
testcase_06 AC 116 ms
39,736 KB
testcase_07 AC 128 ms
41,012 KB
testcase_08 AC 114 ms
40,288 KB
testcase_09 AC 132 ms
41,076 KB
testcase_10 AC 112 ms
39,828 KB
testcase_11 AC 129 ms
40,932 KB
testcase_12 AC 120 ms
39,980 KB
testcase_13 AC 130 ms
41,460 KB
testcase_14 AC 125 ms
41,008 KB
testcase_15 AC 128 ms
41,188 KB
testcase_16 AC 129 ms
41,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class HelloWorld {
		public static void main (String[] args) {
			Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			sc.close();


			System.out.println((n+1)*(n+2)/2);


	}
}
0