#P1022. 两个骑士 (Two Knights)
两个骑士 (Two Knights)
Source: CSES Problem Set (Task 1072)
Link: https://cses.fi/problemset/task/1072
Category: Introductory Problems
- Time limit: 1.00 s
- Memory limit: 512 MB
Your task is to count for the number of ways two knights can be placed on a chessboard so that they do not attack each other.
Input
The only input line contains an integer .
Output
Print integers: the results.
Constraints
Example
Input:
8
Output:
0
6
28
96
252
550
1056
1848