結果
| 問題 | No.87 Advent Calendar Problem | 
| コンテスト | |
| ユーザー |  lam6er | 
| 提出日時 | 2025-04-16 16:02:50 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 291 bytes | 
| コンパイル時間 | 360 ms | 
| コンパイル使用メモリ | 82,028 KB | 
| 実行使用メモリ | 78,180 KB | 
| 最終ジャッジ日時 | 2025-04-16 16:09:14 | 
| 合計ジャッジ時間 | 3,451 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 2 RE * 22 | 
ソースコード
import datetime
n = int(input())
count = 0
# 2014-12-25 is a Thursday, which is 3 in weekday() (Monday=0)
target_weekday = datetime.date(2014, 12, 25).weekday()
for year in range(2015, n + 1):
    if datetime.date(year, 12, 25).weekday() == target_weekday:
        count += 1
print(count)
            
            
            
        