結果
問題 | No.87 Advent Calendar Problem |
ユーザー |
![]() |
提出日時 | 2022-11-10 00:33:50 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 43 ms / 5,000 ms |
コード長 | 206 bytes |
コンパイル時間 | 254 ms |
コンパイル使用メモリ | 82,292 KB |
実行使用メモリ | 55,528 KB |
最終ジャッジ日時 | 2024-07-23 05:14:57 |
合計ジャッジ時間 | 2,401 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
import sys,copyinput=lambda:sys.stdin.readline().rstrip()N=int(input())-2014cur=0ans=(N//400)*57N%=400for i in range(15,15+N):cur+=(1+(i%400==0 or (i%100!=0 and i%4==0)))ans+=(cur%7==0)print(ans)