CF886E Maximum Element
题目描述
从前有一个叫$Petya$的神仙,嫌自己的序列求max太慢了,于是将序列求max的代码改成了下面这个样子:
```cpp
int fast_max(int n,int a[])
{
int ans=0;
int offset=0;
for(int i=0;i
输入格式
无
输出格式
无
说明/提示
Permutations from second example:
$ [4,1,2,3,5] $ , $ [4,1,3,2,5] $ , $ [4,2,1,3,5] $ , $ [4,2,3,1,5] $ , $ [4,3,1,2,5] $ , $ [4,3,2,1,5] $ .