結果

問題 No.841 8/32
ユーザー bluemeganebluemegane
提出日時 2021-04-18 11:43:17
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 536 bytes
コンパイル時間 800 ms
コンパイル使用メモリ 65,164 KB
実行使用メモリ 22,568 KB
最終ジャッジ日時 2023-09-17 07:33:10
合計ジャッジ時間 3,291 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
18,496 KB
testcase_01 AC 51 ms
20,488 KB
testcase_02 AC 52 ms
22,436 KB
testcase_03 AC 52 ms
20,468 KB
testcase_04 AC 52 ms
20,516 KB
testcase_05 AC 51 ms
20,592 KB
testcase_06 AC 52 ms
20,432 KB
testcase_07 AC 53 ms
22,484 KB
testcase_08 AC 52 ms
22,532 KB
testcase_09 AC 53 ms
20,572 KB
testcase_10 AC 51 ms
20,524 KB
testcase_11 AC 53 ms
22,528 KB
testcase_12 AC 51 ms
20,432 KB
testcase_13 AC 51 ms
20,616 KB
testcase_14 AC 52 ms
22,440 KB
testcase_15 AC 51 ms
20,472 KB
testcase_16 AC 51 ms
18,496 KB
testcase_17 AC 51 ms
22,568 KB
testcase_18 AC 51 ms
20,528 KB
testcase_19 AC 52 ms
22,524 KB
testcase_20 AC 53 ms
22,476 KB
testcase_21 AC 51 ms
22,568 KB
testcase_22 AC 51 ms
20,596 KB
testcase_23 AC 52 ms
20,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

public class Hello
{
    static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        var a91 = line[0];
        var a92 = line[1];
        getAns(a91, a92);
    }
    static bool check(string t) => (t == "Sat" | t == "Sun");
    static void getAns(string a91, string a92)
    {
        if (check(a91) && !check(a92)) { Console.WriteLine("8/32"); return; }
        else if (check(a91) && check(a92)) { Console.WriteLine("8/33"); return; }
        else Console.WriteLine("8/31");
    }
}
0