# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1165396 | mysticmage45 | Bali Sculptures (APIO15_sculpture) | C++20 | 6 ms | 332 KiB |
#include<bits/stdc++.h>
using namespace std;
#define ll long long
const ll bitsize = 60; // Increased bit size
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
ll n, a, b;
cin >> n >> a >> b;
ll year[n+5];
for(ll i = 1; i <= n; i++){
cin >> year[i];
}
ll sumyear[n+5][n+5];
for(ll l = 1; l <= n; ++l){
ll sumnow = 0;
for(ll r = l; r <= n; ++r){
sumnow += year[r];
sumyear[l][r] = sumnow;
}
}
ll ans = 0;
for(ll digit = bitsize; digit >= 0; digit--){
if(a == 1){
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |