結果
| 問題 |
No.188 HAPPY DAY
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-10-21 21:33:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 1,000 ms |
| コード長 | 327 bytes |
| コンパイル時間 | 137 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2024-09-21 23:01:49 |
| 合計ジャッジ時間 | 666 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
from datetime import datetime, timedelta
year = 2015
start_date = datetime(year, 1, 1)
end_date = datetime(year, 12, 31)
delta = timedelta(days=1)
curr_date = start_date
cnt = []
while curr_date <= end_date:
if curr_date.month == (curr_date.day//10 + curr_date.day%10): cnt.append(1)
curr_date += delta
print(sum(cnt))