Rosetta Problems

Beginner Free Contest 51 - SUBGCD

https://oj.vnoi.info/problem/fcb051_subgcd