結果

問題 No.841 8/32
ユーザー GetDaze
提出日時 2019-07-12 11:32:34
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 882 bytes
コンパイル時間 2,305 ms
コンパイル使用メモリ 74,124 KB
実行使用メモリ 41,672 KB
最終ジャッジ日時 2024-11-17 06:38:05
合計ジャッジ時間 6,547 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 16 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner sc = new Scanner(System.in);

        // int 1つ分を読み込む
        String S1 = sc.next();
        // int 1つ分を読み込む
        String S2 = sc.next();

        // 標準出力に書き出す。
        if(S1.equals("Sat")||S2.equals("Sun"))
        {
            if(S2.equals("Sat")||S2.equals("Sun"))
            {
                System.out.println("8/33");
            }
            else
            {
                System.out.println("8/32");
            }
        }
        else if(S2.equals("Sat")||S2.equals("Sun"))
        {
            System.out.println("8/32");
        }
        else
        {
            System.out.println("8/31");
        }
    }
}
0