結果

問題 No.632 穴埋め門松列
ユーザー Ryota EnokidoRyota Enokido
提出日時 2018-12-11 14:04:35
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 564 bytes
コンパイル時間 3,102 ms
コンパイル使用メモリ 74,320 KB
実行使用メモリ 57,484 KB
最終ジャッジ日時 2023-10-21 18:37:41
合計ジャッジ時間 5,033 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
  
    public class Main {
         public static void main(String[] args) {
           Scanner sc = new Scanner(System.in);
           
           String[] s = new String[3];
           for(int i=0; i<3; i++){
               s[i]= sc.next();
           }
           if(s[2].equalsIgnoreCase("2")){
               System.out.println("4");
           }else if(s[2].equalsIgnoreCase("3")){
               System.out.println("1");
           }else if(s[2].equalsIgnoreCase("?")){
               System.out.println("14");
           }
    }
}
0