結果

問題 No.188 HAPPY DAY
ユーザー R NR N
提出日時 2020-07-21 18:57:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 1,000 ms
コード長 594 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 8,652 KB
最終ジャッジ日時 2023-08-28 22:14:14
合計ジャッジ時間 812 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding:utf-8
import datetime as dt
calender = dt.datetime(2014, 12, 31)
year = 365
ans = 0
for i in range(year-1):
    calender += dt.timedelta(days=1)
    m = calender.month
    d = calender.day
    if d < 10:
        if m == d:
            ans += 1
        else:
            continue
    elif d < 20:
        if m == d - 10 + 1:
            ans += 1
        else:
            continue
    elif d < 30:
        if m == d - 20 + 1:
            ans += 1
        else:
            continue
    else:
        if m == d - 30 + 1:
            ans += 1
        else:
            continue
print(ans)
0