cf/mirror

Unordered Subsequence

CF
27C1900· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
5
67 499 600 42 23
Output
3
1 3 5
Sample 2of 3
Input
3
1 2 3
Output
0
Sample 3of 3
Input
3
2 3 1
Output
3
1 2 3
27C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)