Submission #1138062

#TimeUsernameProblemLanguageResultExecution timeMemory
1138062SmuggingSpunSecret (JOI14_secret)C++20
6 / 100
6233 ms4412 KiB
#include "secret.h"
#include<bits/stdc++.h>
using namespace std;
const int lim = 1e3 + 5;
int a[lim];
void Init(int n, int A[]){
	for(int i = 0; i < n; i++){
		a[i] = A[i];
	}
}
int Query(int l, int r){
	int ans = a[l];
	for(int i = l + 1; i <= r; i++){
		ans = Secret(ans, a[i]);
	}
	return ans;
}
#Verdict Execution timeMemoryGrader output
Fetching results...