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