結果

問題 No.1128 Wedding Ceremony
ユーザー planetWorldY
提出日時 2020-10-28 18:49:33
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 330 bytes
コンパイル時間 2,089 ms
コンパイル使用メモリ 73,844 KB
実行使用メモリ 56,200 KB
最終ジャッジ日時 2024-07-21 22:18:32
合計ジャッジ時間 5,868 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other AC * 12 WA * 9
権限があれば一括ダウンロードができます

ソースコード

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