結果

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

テストケース

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

ソースコード

diff #

from datetime import datetime, timedelta
curr = datetime(2015, 1, 1)
end = datetime(2016, 1, 1)
delta = timedelta(days=1)
cnt = 0
while curr < end:
    if curr.month == (curr.day//10 + curr.day%10): cnt+=1
    curr += delta
print(cnt)
0