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