| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 1165967 | ines | Pyramids (IOI24_pyramids) | C++20 | 0 ms | 0 KiB | 
#include <vector>
#include<numeric>
using namespace std;
vector<int> pyramidsA, pyramidsB;
void init(vector<int> A, vector<int> B) {
    pyramidsA = move(A);
    pyramidsB = move(B);
}
bool can_transform(int L, int R, int X, int Y) {
    return accumulate(pyramidsA.begin()+L,pyramidsA.begin()+R+1,0LL)==
      accumulate(pyramidsB.begin()+X,pyramidsB.begin()+Y+1,0LL);
    if (sumA != sumB) {
        return false;
    }
    else{
    return true;
    }
}
