結果

問題 No.841 8/32
ユーザー tentententen
提出日時 2020-08-31 23:11:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 503 bytes
コンパイル時間 2,280 ms
コンパイル使用メモリ 74,668 KB
実行使用メモリ 41,396 KB
最終ジャッジ日時 2024-04-28 11:29:57
合計ジャッジ時間 6,533 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
41,300 KB
testcase_01 AC 123 ms
40,688 KB
testcase_02 AC 124 ms
40,968 KB
testcase_03 AC 126 ms
41,020 KB
testcase_04 AC 122 ms
40,892 KB
testcase_05 AC 125 ms
41,056 KB
testcase_06 AC 134 ms
40,800 KB
testcase_07 AC 126 ms
41,192 KB
testcase_08 AC 126 ms
40,900 KB
testcase_09 AC 126 ms
40,952 KB
testcase_10 AC 126 ms
41,020 KB
testcase_11 AC 125 ms
41,396 KB
testcase_12 AC 129 ms
41,252 KB
testcase_13 AC 128 ms
40,992 KB
testcase_14 AC 125 ms
41,104 KB
testcase_15 AC 124 ms
41,136 KB
testcase_16 AC 127 ms
41,080 KB
testcase_17 AC 112 ms
40,040 KB
testcase_18 AC 126 ms
40,856 KB
testcase_19 AC 130 ms
40,960 KB
testcase_20 AC 127 ms
40,960 KB
testcase_21 AC 128 ms
41,096 KB
testcase_22 AC 130 ms
41,132 KB
testcase_23 AC 129 ms
41,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String s1 = sc.next();
    	String s2 = sc.next();
    	boolean result1 = (s1.equals("Sat") || s1.equals("Sun"));
    	boolean result2 = (s2.equals("Sat") || s2.equals("Sun"));
    	if (result1 && result2) {
    	    System.out.println("8/33");
    	} else if (result1) {
    	    System.out.println("8/32");
    	} else {
    	    System.out.println("8/31");
    	}
	}
}
0