Submission #104305

#TimeUsernameProblemLanguageResultExecution timeMemory
104305LittleFlowers__Baloni (COCI15_baloni)C++14
0 / 100
256 ms384 KiB
#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)

baloni.cpp:5:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main(){
      ^
#Verdict Execution timeMemoryGrader output
Fetching results...