Submission #16291

#TimeUsernameProblemLanguageResultExecution timeMemory
16291khsoo01줄 세우기 (KOI13_jul)C++98
22 / 22
166 ms4988 KiB
#import<cstdio> int n,a,v[1000005],mx; int main() { int i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a); v[a]=v[a-1]+1; if(v[a]>mx)mx=v[a]; } printf("%d",n-mx); }
#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...