結果

問題 No.188 HAPPY DAY
ユーザー sinofsevensinofseven
提出日時 2020-07-10 17:06:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 31 ms / 1,000 ms
コード長 283 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-04-19 08:20:52
合計ジャッジ時間 510 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

from datetime import datetime, timedelta


delta = timedelta(days=1)
now = datetime(2015, 1, 1)

counter = 0
while now.year < 2016:
    first = now.day % 10
    second = (now.day - first) / 10
    if first + second == now.month:
        counter += 1
    now += delta

print(counter)
0