|| ||Code Submission Evaluation System
KILO 2018 3/5
Tasks | Scoreboard | Statistics
CSES - KILO 2018 3/5 - Rodent's RevengeCSES - Rodent's Revenge
|Time limit:||1.00 s|
|Memory limit:||512 MB|
Given two integers $n$ and $k$, your task is to construct an array that contains every integer between $1 \dots n$ exactly once and there are exactly $k$ consecutive elements such that the first element is greater than the second element.
The only input line has two integers $n$ and $k$.
Print one line that contains the array. You may print any valid solution.
1 4 2 5 3