杭電ACM HDU 1014

#include <cstdio> int main(){ int step,mod; int m[100001]; while(~scanf("%d%d",&step,&mod)){ m[0]=0; int i; for(i=0;i<mod;i++){ m[i+1]=(m[i]+step)%mod;
相關文章
相關標籤/搜索