結果

問題 No.841 8/32
ユーザー 37zigen37zigen
提出日時 2020-01-23 05:10:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 410 bytes
コンパイル時間 3,730 ms
コンパイル使用メモリ 71,988 KB
実行使用メモリ 56,228 KB
最終ジャッジ日時 2023-09-25 09:52:10
合計ジャッジ時間 8,005 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
55,648 KB
testcase_01 AC 113 ms
55,816 KB
testcase_02 AC 114 ms
56,096 KB
testcase_03 AC 114 ms
56,036 KB
testcase_04 AC 113 ms
55,816 KB
testcase_05 AC 115 ms
55,600 KB
testcase_06 AC 114 ms
55,944 KB
testcase_07 AC 113 ms
55,816 KB
testcase_08 AC 115 ms
55,848 KB
testcase_09 AC 115 ms
55,828 KB
testcase_10 AC 114 ms
56,044 KB
testcase_11 AC 115 ms
56,216 KB
testcase_12 AC 114 ms
55,948 KB
testcase_13 AC 113 ms
55,576 KB
testcase_14 AC 115 ms
55,828 KB
testcase_15 AC 114 ms
55,568 KB
testcase_16 AC 114 ms
55,580 KB
testcase_17 AC 115 ms
55,752 KB
testcase_18 AC 113 ms
55,916 KB
testcase_19 AC 113 ms
55,708 KB
testcase_20 AC 113 ms
56,204 KB
testcase_21 AC 113 ms
54,156 KB
testcase_22 AC 112 ms
56,228 KB
testcase_23 AC 113 ms
55,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;

class Main{
	public static void main(String[] args){
		new Main().run();
	}
	
	boolean f(String s){
		return s.equals("Sat")||s.equals("Sun");
	}
	
	void run(){
		Scanner sc=new Scanner(System.in);
		String a=sc.next();
		String b=sc.next();
		String ans="";
		if(f(a)&&!f(b))ans="8/32";
		else if(f(a)&&f(b))ans="8/33";
		else ans="8/31";
		System.out.println(ans);
	}
}
0