#include #define MAX_K 105 int b[MAX_K]; int a[MAX_K]; int k; int n; struct matice { int m[MAX_K][MAX_K]; }; struct matice M; struct matice POW[2],RES[2]; void nasob(struct matice *a,struct matice *b,struct matice *c) { int i,j,l; for (i=0;im[i]; for (l=0;lm[l][j]); if (!(l&16)) h%=10000; } c->m[i][j]=h%10000; } } void mocni(int e) { int i,j; POW[0]=M; for (i=0;i