結果
| 問題 |
No.87 Advent Calendar Problem
|
| コンテスト | |
| ユーザー |
ytft
|
| 提出日時 | 2022-11-09 22:34:54 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 194 bytes |
| コンパイル時間 | 186 ms |
| コンパイル使用メモリ | 82,404 KB |
| 実行使用メモリ | 76,372 KB |
| 最終ジャッジ日時 | 2024-07-23 03:33:04 |
| 合計ジャッジ時間 | 12,855 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 23 |
ソースコード
import sys,copy input=lambda:sys.stdin.readline().rstrip() N=int(input()) cur=0 ans=0 for i in range(2015,N+1): cur=(cur+1+(i%400==0 or (i%4==0 and i%100!=0)))%7 if cur==0: ans+=1 print(ans)
ytft