# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
759102 | Dan4Life | Stone Arranging 2 (JOI23_ho_t1) | C++17 | 335 ms | 21156 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 <bits/stdc++.h>
using namespace std;
int n,i,x;
map<int,int>a,p;
main(){
cin>>n;while(i<n)cin>>a[i],p[a[i]]=i,i++;i=0;
while(i<n,x=a[i])while(i<n&&p[x]>=i)cout<<x<<"\n",i++;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |