nyoj-Color the necklace(Ploya定理 + 欧拉函数 + 扩展欧几里得(求逆元))
Colorthenecklace时间限制:2000ms|内存限制:65535KB难度:0描述Asweallknow,girlslovenecklaces,especiallynicenecklaces.Recently,huicpc229hasfalleninlovewithagirl;hewantstobringheranecklaceasagift.Nowhehasncolors,and