# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1025401 | vjudge1 | Martian DNA (BOI18_dna) | C++17 | 618 ms | 50172 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>
typedef long double ld;
#define int long long
#define TC int t; cin >> t; for(int _=1; _<=t; _++)
#define bismillah ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define pii pair<int, int>
#define pb push_back
#define mp make_pair
using namespace std;
const int N = 2e5+7, INF = 1e18;
int a[N];
int n, k, q;
map<int, int> mapp, frq;
signed main(){
bismillah;
cin >> n >> k >> q;
for(int i=1; i<=n; i++){
cin >> a[i];
frq[a[i]]++;
mapp[a[i]] = INF;
}
int done = k;
while(q--){
int x, c; cin >> x >> c;
mapp[x] = c; done--;
# | 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... |