結果
問題 |
No.188 HAPPY DAY
|
ユーザー |
|
提出日時 | 2025-09-18 18:57:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 1,000 ms |
コード長 | 404 bytes |
コンパイル時間 | 314 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 10,112 KB |
最終ジャッジ日時 | 2025-09-18 18:57:47 |
合計ジャッジ時間 | 1,195 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 |
ソースコード
import datetime start_date = datetime.date(2015, 1, 1) end_date = datetime.date(2015, 12, 31) happy_day_count = 0 current_date = start_date while current_date <= end_date: month = current_date.month day = current_date.day tens = day // 10 ones = day % 10 if month == tens + ones: happy_day_count += 1 current_date += datetime.timedelta(days=1) print(happy_day_count)