# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
77138 | MohamedAhmed0 | Secret (JOI14_secret) | C++14 | 693 ms | 4676 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 ;
#include "secret.h"
int arr[1001] ;
void Init(int N, int A[])
{
for(int i = 0 ; i < N ; ++i)
arr[i] = A[i] ;
}
int Query(int l, int r)
{
long long x = arr[l] ;
for(int i = l+1 ; i <= r ; ++i)
x = x + min(2 * arr[i] / 2 , 1000000000);
return x ;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |