# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
54649 |
2018-07-04T10:55:17 Z |
gs18115 |
Secret (JOI14_secret) |
C++14 |
|
12594 ms |
61124 KB |
#include"secret.h"
#include<map>
using namespace std;
map<pair<int,int>,bool>CHK;
map<pair<int,int>,int>SEC;
int ST[4567];
int N2;
int Secret2(int X,int Y)
{
pair<int,int>P;
P=make_pair(X,Y);
if(CHK[P])
return SEC[P];
CHK[P]=true;
return SEC[P]=Secret(X,Y);
}
void Init(int N,int A[])
{
for(N2=1;N2<N;N2<<=1);
for(int i=0;i<N;i++)
ST[i]=A[i];
}
int Query(int L,int R)
{
int A=ST[L];
for(int i=L+1;i<=R;i++)
A=Secret2(A,ST[i]);
return A;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2409 ms |
17992 KB |
Output isn't correct - number of calls to Secret by Init = 0, maximum number of calls to Secret by Query = 480 |
2 |
Incorrect |
1923 ms |
18164 KB |
Output isn't correct - number of calls to Secret by Init = 0, maximum number of calls to Secret by Query = 490 |
3 |
Incorrect |
2287 ms |
18188 KB |
Output isn't correct - number of calls to Secret by Init = 0, maximum number of calls to Secret by Query = 482 |
4 |
Incorrect |
6900 ms |
60980 KB |
Output isn't correct - number of calls to Secret by Init = 0, maximum number of calls to Secret by Query = 951 |
5 |
Incorrect |
6580 ms |
61124 KB |
Output isn't correct - number of calls to Secret by Init = 0, maximum number of calls to Secret by Query = 965 |
6 |
Partially correct |
587 ms |
61124 KB |
Output is partially correct - number of calls to Secret by Init = 0, maximum number of calls to Secret by Query = 10 |
7 |
Incorrect |
11540 ms |
61124 KB |
Output isn't correct - number of calls to Secret by Init = 0, maximum number of calls to Secret by Query = 993 |
8 |
Incorrect |
11603 ms |
61124 KB |
Output isn't correct - number of calls to Secret by Init = 0, maximum number of calls to Secret by Query = 975 |
9 |
Incorrect |
11995 ms |
61124 KB |
Output isn't correct - number of calls to Secret by Init = 0, maximum number of calls to Secret by Query = 972 |
10 |
Incorrect |
12594 ms |
61124 KB |
Output isn't correct - number of calls to Secret by Init = 0, maximum number of calls to Secret by Query = 979 |