結果

問題 No.841 8/32
ユーザー はむ吉🐹
提出日時 2019-06-28 21:26:29
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 378 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-02 04:21:17
合計ジャッジ時間 1,635 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

def is_sat_or_sun(s):
    return s == "Sat" or s == "Sun"


def judge(s1, s2):
    if is_sat_or_sun(s1) and not is_sat_or_sun(s2):
        return "8/32"
    elif is_sat_or_sun(s1) and is_sat_or_sun(s2):
        return "8/33"
    else:
        return "8/31"


def main():
    s1, s2 = input().split()
    res = judge(s1, s2)
    print(res)


if __name__ == "__main__":
    main()
0