結果

問題 No.841 8/32
ユーザー TomoyaTomoya
提出日時 2019-06-28 21:27:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 606 bytes
コンパイル時間 3,135 ms
コンパイル使用メモリ 72,276 KB
実行使用メモリ 57,568 KB
最終ジャッジ日時 2023-09-14 21:35:36
合計ジャッジ時間 7,138 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,864 KB
testcase_01 AC 119 ms
55,664 KB
testcase_02 AC 120 ms
55,848 KB
testcase_03 AC 116 ms
55,704 KB
testcase_04 AC 118 ms
55,888 KB
testcase_05 AC 118 ms
55,772 KB
testcase_06 AC 119 ms
55,604 KB
testcase_07 AC 120 ms
55,852 KB
testcase_08 AC 118 ms
55,912 KB
testcase_09 AC 120 ms
55,872 KB
testcase_10 AC 118 ms
55,716 KB
testcase_11 AC 121 ms
55,740 KB
testcase_12 AC 119 ms
56,056 KB
testcase_13 AC 119 ms
55,424 KB
testcase_14 AC 121 ms
56,088 KB
testcase_15 AC 120 ms
56,136 KB
testcase_16 AC 119 ms
55,932 KB
testcase_17 AC 120 ms
56,052 KB
testcase_18 AC 119 ms
55,876 KB
testcase_19 AC 119 ms
55,868 KB
testcase_20 AC 121 ms
57,568 KB
testcase_21 AC 118 ms
55,752 KB
testcase_22 AC 119 ms
55,864 KB
testcase_23 AC 118 ms
55,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class App {

    static boolean isTrue(String s) {
        String s1 = "Sun";
        String s2 = "Sat";
        return(s.equals(s1) || s.equals(s2));
    }
    public static void main(String[] args) {
        //System.out.println();
        Scanner scanner = new Scanner(System.in);
        
        String s1 = scanner.next();   
        String s2 = scanner.next();        

        if(isTrue(s1) && isTrue(s2)) System.out.println("8/33");
        else if(isTrue(s1)) System.out.println("8/32");
        else System.out.println("8/31");
        scanner.close();
    }
}
0