Submission #77256

#TimeUsernameProblemLanguageResultExecution timeMemory
77256MohamedAhmed0Secret (JOI14_secret)C++14
0 / 100
619 ms5360 KiB
#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) { int x = arr[l] ; for(int i = l+1 ; i <= r ; ++i) x = min(x + 2 * (arr[i] / 2) , 1000000000); return x ; }
#Verdict Execution timeMemoryGrader output
Fetching results...