| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 774748 | vjudge1 | Stone Arranging 2 (JOI23_ho_t1) | C++17 | 401 ms | 12444 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;
map<int, int> last;
int a[200005];
int n;
int main() {
cin >> n;
for(int i = 1; i <= n; i++) {
cin >> a[i];
last[a[i]] = i;
}
for(int i = 1; i <= n; i++) {
int j = last[a[i]];
for(int k = i; k <= j; k++) {
cout << a[i] << endl;
}
i = j;
}
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
