# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
388416 | leaked | Martian DNA (BOI18_dna) | C++14 | 245 ms | 25164 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>
#define sz(x) (int)x.size()
#define vec vector
#define pb push_back
#define rall(x) x.rbegin(),x.rend()
#define all(x) x.begin(),x.end()
#define pii pair<int,int>
#define f first
#define s second
using namespace std;
typedef unsigned long long ull;
auto rnd=bind(uniform_int_distribution<long long>(1,1e18),mt19937(time(0)));
signed main(){
ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
int n,k,q;
cin>>n>>k>>q;
vec<pii>need(q);
vec<int>a(n);
map<int,int>mp;
int cr=0;
for(int i=0;i<n;i++){
cin>>a[i];
if(!mp.count(a[i])){
mp[a[i]]=cr++;
}
a[i]=mp[a[i]];
}
for(auto &z : need){
cin>>z.f>>z.s;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |