結果

問題 No.1089 三変数方程式
ユーザー xRS43BofaUEZ5gcxRS43BofaUEZ5gc
提出日時 2021-03-19 13:39:02
言語 Java
(openjdk 23)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 224 bytes
コンパイル時間 3,576 ms
コンパイル使用メモリ 73,916 KB
実行使用メモリ 52,292 KB
最終ジャッジ日時 2024-11-18 08:18:17
合計ジャッジ時間 5,162 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

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