結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 124 ms
55,904 KB
testcase_04 AC 129 ms
55,856 KB
testcase_05 AC 128 ms
55,684 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 126 ms
55,892 KB
testcase_10 AC 127 ms
55,420 KB
testcase_11 WA -
testcase_12 AC 127 ms
55,688 KB
testcase_13 AC 126 ms
55,932 KB
testcase_14 AC 125 ms
55,548 KB
testcase_15 WA -
testcase_16 AC 130 ms
55,876 KB
testcase_17 WA -
testcase_18 AC 127 ms
55,644 KB
testcase_19 AC 126 ms
55,716 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 126 ms
55,840 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){
            System.out.println(n_1 + 1);
        }else{
            System.out.println(n_1);
        }
     
        }
    }
  

0