結果

問題 No.2789 hako111223’s Master Thesis
ユーザー solo
提出日時 2025-01-29 13:46:54
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 333 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2025-01-29 13:46:56
合計ジャッジ時間 1,636 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    essay_date()

def essay_date():
    x = input()
    x = x.split()
    a = int(x[0])
    b = int(x[1])
    c = int(x[2])
    d = int(x[3])
    date = 31 - a + b
    if date >= c:
        print('1')
    elif date >= d and date < c:
        print('2')
    else:
        print('3')

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