結果

問題 No.841 8/32
ユーザー iwa_choco_168iwa_choco_168
提出日時 2019-12-03 12:55:14
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 386 bytes
コンパイル時間 2,709 ms
コンパイル使用メモリ 76,072 KB
実行使用メモリ 41,752 KB
最終ジャッジ日時 2024-05-05 08:31:17
合計ジャッジ時間 6,691 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
41,384 KB
testcase_01 AC 130 ms
41,456 KB
testcase_02 AC 127 ms
40,132 KB
testcase_03 AC 114 ms
41,304 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 111 ms
41,676 KB
testcase_07 AC 125 ms
41,404 KB
testcase_08 AC 112 ms
41,400 KB
testcase_09 AC 109 ms
41,696 KB
testcase_10 AC 121 ms
41,688 KB
testcase_11 AC 122 ms
41,736 KB
testcase_12 AC 115 ms
41,368 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 126 ms
41,536 KB
testcase_16 AC 113 ms
41,448 KB
testcase_17 WA -
testcase_18 AC 109 ms
41,520 KB
testcase_19 AC 114 ms
41,520 KB
testcase_20 AC 112 ms
41,540 KB
testcase_21 AC 124 ms
41,436 KB
testcase_22 AC 127 ms
41,752 KB
testcase_23 AC 137 ms
41,552 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++;
        System.out.println("8/" + day);
    }
}
0