2019杭电多校第五场 discrete logarithm problem

https://vjudge.net/contest/317493#problem/I

原文地址:https://www.cnblogs.com/dragondragon/p/11308782.html