My issue
My code
#include <iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
while(t--){
int n;
cin>>n;
vector<int> a(n);
vector<int> b(n);
int countA = 0;
int countB = 0;
for(int i=0; i<n; i++){
cin>>a[i];
countA++;
if(a[i] == 0)
countA = 0;
}
for(int i=0; i<n; i++){
cin>>b[i];
countB++;
if(b[i] == 0)
countB = 0;
}
if(countB < countA){
cout<<"Om"<<endl;
}else if(countB > countA){
cout<<"Addy"<<endl;
} else{
cout<<"Draw"<<endl;
}
}
return 0;
}
Problem Link: CS2023_STK Problem - CodeChef