結果

問題 No.1128 Wedding Ceremony
ユーザー face4face4
提出日時 2020-08-02 11:48:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 278 bytes
コンパイル時間 1,823 ms
コンパイル使用メモリ 71,824 KB
実行使用メモリ 49,504 KB
最終ジャッジ日時 2023-09-25 12:47:45
合計ジャッジ時間 3,996 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,388 KB
testcase_01 AC 44 ms
49,144 KB
testcase_02 AC 44 ms
49,196 KB
testcase_03 AC 44 ms
49,304 KB
testcase_04 AC 43 ms
49,232 KB
testcase_05 AC 42 ms
49,228 KB
testcase_06 AC 43 ms
49,152 KB
testcase_07 AC 43 ms
49,188 KB
testcase_08 AC 43 ms
49,304 KB
testcase_09 AC 43 ms
49,504 KB
testcase_10 AC 43 ms
49,500 KB
testcase_11 AC 43 ms
49,412 KB
testcase_12 AC 43 ms
49,356 KB
testcase_13 AC 43 ms
49,264 KB
testcase_14 AC 45 ms
49,364 KB
testcase_15 AC 43 ms
49,236 KB
testcase_16 AC 44 ms
49,188 KB
testcase_17 AC 44 ms
49,344 KB
testcase_18 AC 43 ms
49,348 KB
testcase_19 AC 44 ms
49,340 KB
testcase_20 AC 43 ms
49,480 KB
testcase_21 AC 43 ms
49,272 KB
testcase_22 AC 43 ms
49,360 KB
権限があれば一括ダウンロードができます

ソースコード

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/2*2+1);
    }
}
0