結果

問題 No.188 HAPPY DAY
ユーザー iad_2889iad_2889
提出日時 2019-05-02 03:10:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 1,000 ms
コード長 334 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 8,612 KB
最終ジャッジ日時 2023-08-30 04:35:07
合計ジャッジ時間 1,024 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

from datetime import datetime,timedelta
current = datetime(2015,1,1)
happy_day = 0
while True:
    month = current.month
    day = current.day
    digit10 = day // 10
    digit1 = day % 10
    current+=timedelta(1)
    if month == digit10 + digit1:
        happy_day+=1
    if month == 12 and day == 31:
        break
print(happy_day)
0