Back to Browse

PYTHON Two Knights Algorithm - CSES Introductory Problems #7

1.2K views
May 30, 2020
8:19

Github: https://github.com/BunnyHeist/CSEC Your task is to count for k=1,2,…,n the number of ways two knights can be placed on a k×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≤n≤10000 Example Input: 8 Output: 0 6 28 96 252 550 1056 1848

Download

0 formats

No download links available.

PYTHON Two Knights Algorithm - CSES Introductory Problems #7 | NatokHD