void calculate () { int i; for( i = 1 ; i <= MAXN ; ++i ) if( win[i - 1] == 0 || win[i - L] == 0 || win[i - K ] == 0) win[i] = 1;}