# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
485478 | sam571128 | Martian DNA (BOI18_dna) | C++17 | 38 ms | 6724 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 int long long
#define fastio ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
const int N = 2e5+5, MOD = 1e9+7;
int val[N], cnt[N], arr[N];
int ans = 0;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int fastpow(int n, int p){
int res = 1;
while(p){
if(p&1) res = res * n % MOD;
n = n * n % MOD;
p >>= 1;
}
return res;
}
int hsh(int x){
if(cnt[x] <= 0) return 0;
return cnt[x] * val[x];
}
bool check(int x){
int tmp = ans;
# | 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... |