結果
問題 |
No.188 HAPPY DAY
|
ユーザー |
|
提出日時 | 2020-07-21 18:57:40 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 1,000 ms |
コード長 | 594 bytes |
コンパイル時間 | 807 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-30 12:14:57 |
合計ジャッジ時間 | 1,267 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
# 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)