結果

問題 No.480 合計
ユーザー face4
提出日時 2018-04-10 00:14:21
言語 Java
(openjdk 23)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 357 bytes
コンパイル時間 1,996 ms
コンパイル使用メモリ 74,040 KB
実行使用メモリ 50,460 KB
最終ジャッジ日時 2024-06-26 20:51:51
合計ジャッジ時間 3,977 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());

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