https://i2.wp.com/eblogarithm.com/wp-content/uploads/2016/11/Codeforces-Round-379-Div-2-problem-A-Anton-and-Danik-Solution-in-CC1.png?fit=640%2C360

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"<

(Visited 321 times, 1 visits today)



There are no comments

Add yours

Leave a Reply

%d bloggers like this: