#include iostream#include vector#include algorithmusing namespace std;int main int n k; cin n k; vectorint numsn; for int i = 0; i n; i++ cin numsi; int minOps = 0;
输入: 10 2 3 2 1 6 5 4 9 8 7 10
输出: 5
原文地址: https://www.cveoy.top/t/topic/ial9 著作权归作者所有。请勿转载和采集!