結果

問題 No.188 HAPPY DAY
ユーザー _kyou_kyou
提出日時 2023-10-21 21:33:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 32 ms / 1,000 ms
コード長 327 bytes
コンパイル時間 467 ms
コンパイル使用メモリ 11,816 KB
実行使用メモリ 10,380 KB
最終ジャッジ日時 2023-10-21 21:33:57
合計ジャッジ時間 670 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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))
0