Codeforces Round #379 (Div. 2), problem: (A) Anton and Danik Solution in C/C++

Hey guys I just tried the Anton and Danik problem , hope you might like my solution feel free to comment better solution .

#include
using namespace std;
int main()
{
int n, a, d, i;
string s;

cin>>n>>s;
a=0;
d=0;
for(i=0; id)
cout<<"Anton"<a)
cout<<"Danik"<

Leave a Reply

Your email address will not be published. Required fields are marked *