結果

問題 No.841 8/32
ユーザー d07ki3bq1uzd07ki3bq1uz
提出日時 2019-12-08 22:37:00
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 756 bytes
コンパイル時間 2,105 ms
コンパイル使用メモリ 71,936 KB
実行使用メモリ 57,856 KB
最終ジャッジ日時 2023-08-30 20:17:21
合計ジャッジ時間 6,671 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 115 ms
55,828 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 114 ms
56,184 KB
testcase_07 AC 114 ms
55,712 KB
testcase_08 AC 113 ms
55,480 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 116 ms
55,948 KB
testcase_12 AC 114 ms
55,880 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 114 ms
56,436 KB
testcase_16 AC 116 ms
56,176 KB
testcase_17 WA -
testcase_18 AC 115 ms
56,040 KB
testcase_19 AC 115 ms
55,664 KB
testcase_20 AC 115 ms
55,664 KB
testcase_21 AC 115 ms
55,972 KB
testcase_22 AC 114 ms
55,836 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");
                }
            }
            if(!a.equals(day[5])||a.equals(day[6])){
                if(b.equals(day[5])||b.equals(day[6])){
                    System.out.println("8/32");
                }
            }
                System.out.println("8/31");
    }
}
0