結果

問題 No.1128 Wedding Ceremony
ユーザー planetWorldYplanetWorldY
提出日時 2020-10-28 19:21:28
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 414 bytes
コンパイル時間 2,007 ms
コンパイル使用メモリ 71,092 KB
実行使用メモリ 56,256 KB
最終ジャッジ日時 2023-09-29 03:43:46
合計ジャッジ時間 6,088 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 127 ms
55,664 KB
testcase_04 AC 127 ms
56,008 KB
testcase_05 AC 126 ms
56,096 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 127 ms
55,724 KB
testcase_10 AC 131 ms
55,424 KB
testcase_11 WA -
testcase_12 AC 127 ms
55,496 KB
testcase_13 AC 129 ms
55,884 KB
testcase_14 AC 126 ms
55,828 KB
testcase_15 WA -
testcase_16 AC 127 ms
55,888 KB
testcase_17 WA -
testcase_18 AC 128 ms
55,740 KB
testcase_19 AC 127 ms
55,492 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 123 ms
55,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n_1 = sc.nextInt();
        if(n_1 >= 2 || 3 / n_1 != 0 && n_1 >= 2 || n_1 / 2 == 0){
            System.out.println(n_1 + 1);
        }else if(n_1 >= 2 && 3 / n_1 != 0 || n_1 >= 2 && n_1 / 2 == 0){
            System.out.println(n_1);
        }
     
        }
    }
  
0