# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1157758 | aritro_ | Nile (IOI24_nile) | C++20 | 0 ms | 0 KiB |
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define int ll
/*vector<int> calculate_costs(
vector<int>W,vector<int>A,
vector<int>B,vector<int>E){
vector<int> costs(e.size(),2);
return costs;
}*/
int main(){
int n;
cin>>n;
int w[n],a[n],b[n];
for(int i=0;i<n;i++) cin>>w[i]>>a[i]>>b[i];
int q;
cin>>q;
while(q--){
int x;
cin>>x;
cout<<2<<endl;
}
}