//蓝桥杯-数字游戏
#include #includeusing namespace std;
int main()
{
int n,k,t; //t*n循环多少次
cin>>n>>k>>t;
int arr[n];
int z=0; //z一直在变化的中间量
int s=1; //s得出的总结果,放入数组中
int c=0; //放答案的
for(int i=0;i{s+=z;
arr[i%n]=s%k;
if(i%n==0)
{
c+=arr[0];
}
z++;
}
cout<return 0;}