initial commit
This commit is contained in:
parent
93240d687d
commit
bec28e7ef8
18
734A Anton and Danik/734A.cpp
Normal file
18
734A Anton and Danik/734A.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
#include<bits/stdc++.h>
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
int n,a=0,d=0;
|
||||
cin>>n;
|
||||
string s;
|
||||
cin>>s;
|
||||
for(int i=0;i<n;i++)
|
||||
{
|
||||
if(s[i]=='A') a++;
|
||||
else d++;
|
||||
}
|
||||
if(a==d) cout<<"Friendship"<<endl;
|
||||
else if(a>d) cout<<"Anton"<<endl;
|
||||
else cout<<"Danik"<<endl;
|
||||
}
|
Loading…
Reference in New Issue
Block a user