# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
237726 | akat | Trener (COCI20_trener) | C++14 | 10 ms | 3584 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 long long st[3]={127,131,137};
const long long mod[3]={123457,(long long)(1e7+7),(long long)(1e7+9)};
vector<long long>de[3];
void init(int n)
{
int i,j;
for(i=0;i<3;i++)
{
de[i].resize(n+1);
de[i][0]=1;
for(j=1;j<n+1;j++)
de[i][j]=(de[i][j-1]*st[i])%mod[i];
}
}
struct hash3
{
long long h[3];
int sz;
hash3()
{
h[0]=h[1]=h[2]=0;
sz=0;
}
hash3(string s)
{
h[0]=h[1]=h[2]=0;
sz=0;
for(int i=0;i<sz;i++)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |