結果

問題 No.841 8/32
ユーザー iwa_choco_168iwa_choco_168
提出日時 2019-12-03 12:56:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 401 bytes
コンパイル時間 2,274 ms
コンパイル使用メモリ 76,128 KB
実行使用メモリ 41,824 KB
最終ジャッジ日時 2024-05-05 08:32:13
合計ジャッジ時間 5,501 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
41,624 KB
testcase_01 AC 111 ms
41,560 KB
testcase_02 AC 114 ms
41,416 KB
testcase_03 AC 113 ms
41,432 KB
testcase_04 AC 126 ms
41,348 KB
testcase_05 AC 126 ms
41,668 KB
testcase_06 AC 112 ms
41,232 KB
testcase_07 AC 130 ms
41,484 KB
testcase_08 AC 129 ms
41,632 KB
testcase_09 AC 120 ms
41,640 KB
testcase_10 AC 128 ms
41,728 KB
testcase_11 AC 116 ms
41,796 KB
testcase_12 AC 115 ms
41,480 KB
testcase_13 AC 115 ms
41,824 KB
testcase_14 AC 122 ms
41,504 KB
testcase_15 AC 120 ms
41,336 KB
testcase_16 AC 129 ms
41,440 KB
testcase_17 AC 117 ms
40,160 KB
testcase_18 AC 115 ms
41,280 KB
testcase_19 AC 124 ms
41,504 KB
testcase_20 AC 115 ms
41,608 KB
testcase_21 AC 123 ms
41,500 KB
testcase_22 AC 132 ms
41,396 KB
testcase_23 AC 111 ms
41,572 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int day = 31;
        String str1 = sc.next();
        if(str1.equals("Sat") || str1.equals("Sun")) day++;
        String str2 = sc.next();
        if((str2.equals("Sat") || str2.equals("Sun")) && day == 32) day++;
        System.out.println("8/" + day);
    }
}
0