Submission #1202121

#TimeUsernameProblemLanguageResultExecution timeMemory
1202121PlayVoltzStone Arranging 2 (JOI23_ho_t1)C++20
100 / 100
161 ms16496 KiB
#include <cstdio> #include <stdio.h> #include <stdbool.h> #include <iostream> #include <map> #include <vector> #include <climits> #include <stack> #include <string> #include <queue> #include <algorithm> #include <set> #include <unordered_set> #include <unordered_map> #include <cmath> #include <cctype> #include <bitset> #include <iomanip> #include <cstring> #include <numeric> #include <cassert> using namespace std; #define int long long #define pii pair<int, int> #define mp make_pair #define pb push_back #define fi first #define se second int32_t main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; cin>>n; map<int, int> m; vector<int> vect(n); for (int i=0; i<n; ++i)cin>>vect[i], m[vect[i]]=i; for (int i=0; i<n;)for (int c=vect[i];i<=m[c]; ++i)cout<<c<<"\n"; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...