# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
104305 | LittleFlowers__ | Baloni (COCI15_baloni) | C++14 | 256 ms | 384 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <iostream>
using namespace std;
int n,i,a,x;
int c[1000005];
main(){
cin>>n;
for(i=1;i<=n;++i){
cin>>a;
if(!c[a]) x++; else c[a]--;
c[a-1]++;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |