結果

問題 No.480 合計
ユーザー kitamoto0407kitamoto0407
提出日時 2022-07-11 15:08:13
言語 Java
(openjdk 23)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 1,886 ms
コンパイル使用メモリ 74,508 KB
実行使用メモリ 37,220 KB
最終ジャッジ日時 2024-06-13 04:17:50
合計ジャッジ時間 4,458 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;

public 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