Submission #3006

#TimeUsernameProblemLanguageResultExecution timeMemory
3006imsifile줄 세우기 (KOI13_jul)C++98
22 / 22
172 ms5384 KiB
#include<stdio.h> int n,c[1100000],i,a,m; int main(){ for(scanf("%d",&n);i<n;i++)scanf("%d",&a),c[a]=i+1; for(i=2,a=0;i<=n;i++){ c[i]>c[i-1]?a++:a=0;m=a>m?a:m; } printf("%d",n-m-1); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...