# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
657338 | teesla | Martian DNA (BOI18_dna) | C++14 | 102 ms | 4488 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;
const int maxn=2*1e5+10;
const int inf=1e8;
int v[maxn], nucleo[maxn], qnt[maxn];
int main(){
int n,k,r;
cin >> n>> k>> r;
int rest=r;
int res=inf;
for(int i=0; i<n; i++)cin >> v[i];
for(int i=1; i<=r; i++){
int a,b;
cin >> a >> b;
nucleo[a]=b;
}
int i=0,f=0;
int y=v[i];
qnt[y]++;
if(nucleo[0]!=0 and qnt[y]==nucleo[0]) rest--;
while(i<n and f<n and i<=f){
# | 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... |