# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
74265 |
2018-08-30T16:29:00 Z |
Pajaraja |
Secret (JOI14_secret) |
C++17 |
|
585 ms |
9672 KB |
#include "secret.h"
#define g return
#define q int
q i,**v,*a,n,s;void t(q l,q r){s=(l+r)/2;for(i=s;i>l;i--)v[i-1][s]=Secret(a[i-1],v[i][s]);for(i=s+2;i<=r;i++)v[s+1][i]=Secret(v[s+1][i-1],a[i]);if(l==r)g;t(l,s);t(s+1,r);}void Init(q N,q*A){for(i=0;i<N;i++)v[i][i]=A[i];a=A;t(0,n=--N);}q b(q l,q r,q o,q u){if(l==r)g a[l];s=(l+r)/2;if(o<=s&&u>s)g Secret(v[o][s],v[s+1][u]);if(u<=s)g b(l,s,o,u);g b(s+1,r,o,u);}q Query(q L,q R){g b(0,n,L,R);}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
154 ms |
4700 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
2 |
Runtime error |
155 ms |
4856 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
3 |
Runtime error |
162 ms |
5008 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
4 |
Runtime error |
570 ms |
8968 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
5 |
Runtime error |
560 ms |
9372 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
6 |
Runtime error |
567 ms |
9372 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
7 |
Runtime error |
573 ms |
9608 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
8 |
Runtime error |
567 ms |
9620 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
9 |
Runtime error |
585 ms |
9656 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |
10 |
Runtime error |
585 ms |
9672 KB |
Execution killed with signal 11 (could be triggered by violating memory limits) |