B - K-th Common Divisor

ABC

AtCoder Beginner Contest 120(ABC120) 解説

AtCoder Beginner Contest 120を解きました。C問題が、ARC108のB問題の復習に良い感じです。