






"""simple docstring"""


from __future__ import annotations

import requests




def     snake_case						(A_   :str   ):







  '''simple docstring'''

  a  :    Optional[Any]       =     f'''https://hacker-news.firebaseio.com/v0/item/{story_id}.json?print=pretty'''
  return requests.get(A_   ).json()




def     snake_case						(A_   :int = 1_0   ):







  '''simple docstring'''

  a  :    Optional[Any]       =     'https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty'
  a  :    int       =     requests.get(A_   ).json()[:max_stories]
  return [get_hackernews_story(A_   ) for story_id in story_ids]




def     snake_case						(A_   :int = 1_0   ):







  '''simple docstring'''

  a  :    Dict       =     hackernews_top_stories(A_   )
  return "\n".join('* [{title}]({url})'.format(**A_   ) for story in stories   )


if __name__ == "__main__":
   print(hackernews_top_stories_as_markdown())












"""simple docstring"""


from collections import defaultdict
from math import ceil, sqrt




def     snake_case						(A_   :int = 1_0_0_0_0_0_0			,    A_   :int = 1_0   ):







  '''simple docstring'''

  a  :    defaultdict       =     defaultdict(A_   )

  for outer_width in range(3			,    (t_limit // 4) + 2   ):
    if outer_width * outer_width > t_limit:
      a  :    Optional[Any]       =     max(
          ceil(sqrt(outer_width * outer_width - t_limit   )   )			,    1   )
    else:
      a  :    Union[str, Any]       =     1

    hole_width_lower_bound += (outer_width - hole_width_lower_bound) % 2

    for hole_width in range(A_			,    outer_width - 1			,    2   ):
      count[outer_width * outer_width - hole_width * hole_width] += 1

  return sum(1 for n in count.values() if 1 <= n <= 1_0   )


if __name__ == "__main__":
   print(f'''{solution() = }''')




