結果
| 問題 | No.87 Advent Calendar Problem |
| コンテスト | |
| ユーザー |
ytft
|
| 提出日時 | 2022-11-09 22:34:54 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 194 bytes |
| 記録 | |
| コンパイル時間 | 279 ms |
| コンパイル使用メモリ | 85,328 KB |
| 実行使用メモリ | 79,068 KB |
| 最終ジャッジ日時 | 2026-04-03 12:26:04 |
| 合計ジャッジ時間 | 12,620 ms |
|
ジャッジサーバーID (参考情報) |
judge4_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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