結果

問題 No.841 8/32
ユーザー d07ki3bq1uzd07ki3bq1uz
提出日時 2019-12-08 22:30:50
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 653 bytes
コンパイル時間 4,537 ms
コンパイル使用メモリ 72,688 KB
実行使用メモリ 57,884 KB
最終ジャッジ日時 2023-08-30 08:42:55
合計ジャッジ時間 6,644 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 114 ms
55,736 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 114 ms
55,684 KB
testcase_07 AC 114 ms
55,796 KB
testcase_08 AC 114 ms
56,476 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 116 ms
56,020 KB
testcase_12 AC 116 ms
56,132 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 109 ms
53,844 KB
testcase_16 AC 113 ms
55,628 KB
testcase_17 WA -
testcase_18 AC 115 ms
55,888 KB
testcase_19 AC 115 ms
55,716 KB
testcase_20 AC 116 ms
55,864 KB
testcase_21 AC 120 ms
55,796 KB
testcase_22 AC 115 ms
55,484 KB
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main{
    public static void main (String[] args) {
        
        Scanner s = new Scanner(System.in);
        String a =s.next();
        String b =s.next();
        String [] day = {"Mon","Tue","Wed","Thu","Fri","Sat","Sun"};
            if(a.equals(day[5])||a.equals(day[6])){
                if(b.equals(day[5])||b.equals(day[6])){
                    System.out.println("8/33");
                }else{
                    System.out.println("8/32");
                }
            }else if(b.equals(day[5])||b.equals(day[6])){
                System.out.println("8/32");
            } System.out.println("8/31");
    }
}
0