結果

問題 No.841 8/32
ユーザー d07ki3bq1uzd07ki3bq1uz
提出日時 2019-12-08 22:40:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 583 bytes
コンパイル時間 1,791 ms
コンパイル使用メモリ 72,320 KB
実行使用メモリ 56,236 KB
最終ジャッジ日時 2023-08-30 20:22:09
合計ジャッジ時間 5,710 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
55,512 KB
testcase_01 AC 111 ms
55,756 KB
testcase_02 AC 108 ms
55,640 KB
testcase_03 AC 114 ms
55,624 KB
testcase_04 AC 111 ms
55,944 KB
testcase_05 AC 111 ms
55,724 KB
testcase_06 AC 110 ms
55,872 KB
testcase_07 AC 109 ms
55,884 KB
testcase_08 AC 114 ms
55,824 KB
testcase_09 AC 110 ms
56,128 KB
testcase_10 AC 113 ms
56,200 KB
testcase_11 AC 111 ms
55,880 KB
testcase_12 AC 115 ms
55,392 KB
testcase_13 AC 114 ms
55,848 KB
testcase_14 AC 112 ms
55,996 KB
testcase_15 AC 112 ms
55,944 KB
testcase_16 AC 111 ms
55,732 KB
testcase_17 AC 112 ms
55,504 KB
testcase_18 AC 112 ms
55,692 KB
testcase_19 AC 113 ms
55,764 KB
testcase_20 AC 111 ms
56,188 KB
testcase_21 AC 113 ms
55,632 KB
testcase_22 AC 115 ms
56,160 KB
testcase_23 AC 112 ms
56,236 KB
権限があれば一括ダウンロードができます

ソースコード

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{
             System.out.println("8/31");
            }
    }
}
0