結果
| 問題 | No.87 Advent Calendar Problem |
| コンテスト | |
| ユーザー |
nbisco
|
| 提出日時 | 2017-01-15 22:19:33 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 321 bytes |
| 記録 | |
| コンパイル時間 | 128 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 24,384 KB |
| 最終ジャッジ日時 | 2024-12-21 13:49:51 |
| 合計ジャッジ時間 | 133,474 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 WA * 2 TLE * 21 |
ソースコード
def is_leap(n):
if n % 4 == 0 and n % 100 != 0 and n % 400 == 0:
return True
else:
return False
# 2014/7/23(Wed)
N = int(input())
weds = 0
days = 0
for i in range(2014, N+1):
if is_leap(i):
days += 366
else:
days += 365
if days % 7 == 0:
weds += 1
print(weds)
nbisco