CSES - Two Knights
Xem dạng PDF
Gửi bài giải
Điểm:
1,00 (OI)
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
512M
Input:
stdin
Output:
stdout
Nguồn bài:
Dạng bài
Ngôn ngữ cho phép
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch
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
- The only input line contains an integer ~n~.
Output
- Print ~n~ integers: the results.
Constraints
- ~1 \le n \le 10000~
Example Input
8
Example Output
0
6
28
96
252
550
1056
1848
Bình luận