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 "Anna.h"
#include <utility>
#include <bits/stdc++.h>
using namespace std;
namespace {
int variable_example = 0;
}
#define REP(i,n) for(int i=0;i<n;i++)
#define pb push_back
int Declare() {
    return 180;
}
std::pair<std::vector<int>, std::vector<int> > Anna(long long A) {
    vector<int> a,b;
    REP(i,90) a.pb(0),a.pb(1);
    REP(i,60){
        bool bb=(A&(1LL<<i));
        REP(j,3) b.pb(bb);
    }
    return {a,b};
}
#include "Bruno.h"
#include <utility>
#include <bits/stdc++.h>
using namespace std;
namespace {
int variable_example = 0;
}
#define REP(i,n) for(int i=0;i<n;i++)
#define ll long long
long long Bruno(std::vector<int> u) {
    int cur=0;
    ll pw=1,ans=0;
    REP(i,360){
        if(u[i]==0) ++cur;
        else --cur;
        if(cur==3){
            pw*=2,cur-=3;
        }
        else if(cur==-2){
            ans+=pw;
            pw*=2;
            cur+=3;
        }
    }
    return ans;
}
Compilation message (stderr)
Anna.cpp:7:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
    7 | int variable_example = 0;
      |     ^~~~~~~~~~~~~~~~
Bruno.cpp:7:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
    7 | int variable_example = 0;
      |     ^~~~~~~~~~~~~~~~| # | 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... | 
| # | Verdict | Execution time | Memory | Grader output | 
|---|
| Fetching results... |