2023-11-17から1日間の記事一覧
https://projecteuler.net/problem=4この問題はPriorityQueueを速いので、Pythonでこんな感じに書きます。 # e004.py from __future__ import annotations from typing import Iterator import heapq import sys def digits(n: int) -> Iterator[int]: while…
https://projecteuler.net/problem=4この問題はPriorityQueueを速いので、Pythonでこんな感じに書きます。 # e004.py from __future__ import annotations from typing import Iterator import heapq import sys def digits(n: int) -> Iterator[int]: while…