結果
問題 |
No.87 Advent Calendar Problem
|
ユーザー |
![]() |
提出日時 | 2019-12-21 11:06:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 496 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 17,568 KB |
最終ジャッジ日時 | 2024-07-19 04:20:20 |
合計ジャッジ時間 | 12,745 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 23 |
ソースコード
import datetime import sys sys.setrecursionlimit(10 ** 6) int1 = lambda x: int(x) - 1 p2D = lambda x: print(*x, sep="\n") def MI(): return map(int, sys.stdin.readline().split()) def LI(): return list(map(int, sys.stdin.readline().split())) def LLI(rows_number): return [LI() for _ in range(rows_number)] def main(): #2014年7月23日(水) n=int(input()) ans=0 for y in range(2015,n+1): d=datetime.date(2000+y%400,7,23) ans+=d.weekday()==2 print(ans) main()