結果

問題 No.841 8/32
ユーザー shinwisteriashinwisteria
提出日時 2019-08-30 09:32:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 418 bytes
コンパイル時間 3,252 ms
コンパイル使用メモリ 74,012 KB
実行使用メモリ 41,196 KB
最終ジャッジ日時 2024-04-30 00:05:39
合計ジャッジ時間 7,096 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
39,656 KB
testcase_01 AC 121 ms
41,128 KB
testcase_02 AC 125 ms
40,764 KB
testcase_03 AC 126 ms
40,928 KB
testcase_04 AC 107 ms
40,104 KB
testcase_05 AC 115 ms
39,688 KB
testcase_06 AC 123 ms
40,960 KB
testcase_07 AC 109 ms
40,192 KB
testcase_08 AC 108 ms
40,044 KB
testcase_09 AC 122 ms
41,132 KB
testcase_10 AC 108 ms
40,192 KB
testcase_11 AC 115 ms
40,876 KB
testcase_12 AC 120 ms
40,944 KB
testcase_13 AC 119 ms
40,884 KB
testcase_14 AC 123 ms
40,688 KB
testcase_15 AC 109 ms
39,808 KB
testcase_16 AC 125 ms
41,108 KB
testcase_17 AC 121 ms
40,940 KB
testcase_18 AC 122 ms
41,016 KB
testcase_19 AC 107 ms
40,020 KB
testcase_20 AC 121 ms
41,008 KB
testcase_21 AC 108 ms
40,120 KB
testcase_22 AC 117 ms
41,196 KB
testcase_23 AC 106 ms
39,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.Scanner;
public class Con841 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String s1 = s.next() , s2 = s.next();
		s.close();

		if(s1.equals("Sat") || s1.equals("Sun")){
			if(s2.equals("Sun") || s2.equals("Sat")){
				System.out.println("8/33");
			}else{
				System.out.println("8/32");
			}
		}else{
			System.out.println("8/31");
		}

	}

}
0