結果
| 問題 |
No.87 Advent Calendar Problem
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-04-15 23:12:20 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 291 bytes |
| コンパイル時間 | 459 ms |
| コンパイル使用メモリ | 82,240 KB |
| 実行使用メモリ | 78,508 KB |
| 最終ジャッジ日時 | 2025-04-15 23:15:10 |
| 合計ジャッジ時間 | 3,394 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / 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)
lam6er