結果

問題 No.632 穴埋め門松列
ユーザー sudo_yum
提出日時 2018-05-25 10:40:29
言語 Java
(openjdk 23)
結果
AC  
実行時間 115 ms / 1,000 ms
コード長 464 bytes
コンパイル時間 2,050 ms
コンパイル使用メモリ 74,252 KB
実行使用メモリ 41,224 KB
最終ジャッジ日時 2024-06-28 17:53:35
合計ジャッジ時間 2,971 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
  static StringBuilder sb = new StringBuilder("");
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s1 = sc.next();
    String s2 = sc.next();
    String s3 = sc.next();
    String result;
    if (s2.equals("?")) {
      result="14";
    }else{
      if (s2.equals("2")) {
        result="4";
      }else{
        result="1";
      }
    }
    System.out.println(result);
  }
}
0