結果

問題 No.480 合計
ユーザー ppp4757
提出日時 2017-08-17 22:56:32
言語 Java
(openjdk 23)
結果
AC  
実行時間 151 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 2,113 ms
コンパイル使用メモリ 73,880 KB
実行使用メモリ 41,472 KB
最終ジャッジ日時 2024-12-14 09:37:18
合計ジャッジ時間 6,142 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

public class Main{
	public static void main(String[] args){
		int x = 0;
		int n = new java.util.Scanner(System.in).nextInt();
		if(1<=n || n<=100){ 
			for(int i = 0;i <= n;i++){
				x += i;
			}
		}
		System.out.println(x);
	}
}
0