Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Codeforces Round 734A
- #include <iostream>
- using namespace std;
- int main()
- {
- int n, arez=0, drez=0;
- char nn[100001];
- cin >> n;
- for(int i=0;i<n;i++)
- {
- cin >> nn[i];
- if(nn[i]=='A'){arez++;}
- else{drez++;}
- }
- if(arez>drez){cout<<"Anton";}
- else if(drez>arez){cout<<"Danik";}
- else if(drez==arez){cout<<"Friendship";}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement