結果

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

ソースコード

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