6681.Two Knights

Time Limit: 1s Memory Limit: 512MB

Your task is to count for $k=1,2,\ldots,n$ the number of ways two knights can be placed on a $k \times k$ chessboard so that they do not attack each other.

Input Format(From the terminal/stdin)

The only input line contains an integer $n$ .

  • $1 \le n \le 10000$

Output Format(To the terminal/stdout)

Print $n$ integers: the results.

Sample Input

Copy
8
 \n

Sample Output

Copy
0
6
28
96
252
550
1056
1848
 \n
 \n
  \n
  \n
   \n
   \n
    \n
    \n
Source: CSES, Introductory Problems, 1072

Submit

请先 登录

© 2025 FAQs