結果

問題 No.188 HAPPY DAY
ユーザー R NR N
提出日時 2020-07-21 18:54:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 606 bytes
コンパイル時間 417 ms
コンパイル使用メモリ 10,784 KB
実行使用メモリ 8,656 KB
最終ジャッジ日時 2023-08-28 22:06:11
合計ジャッジ時間 625 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

# coding:utf-8
import datetime as dt
calender = dt.datetime(2015, 1, 1)
print(calender)
year = 365
ans = 0
for i in range(year):
    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