Skip to content

Commit b521a05

Browse files
committed
Added 1373B - 01 Game.cpp
1 parent 7e0d027 commit b521a05

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

1373B - 01 Game.cpp

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
4+
// Code Written By: Vikash Patel
5+
6+
// Codeforces Profile: https://codeforces.com/profile/vikashpatel
7+
8+
int main()
9+
{
10+
int t;
11+
cin>>t;
12+
while(t--)
13+
{
14+
string s;
15+
cin>>s;
16+
int zero=0, one=0;
17+
for(auto i:s)
18+
{
19+
if(i == '0')
20+
zero++;
21+
else
22+
one++;
23+
}
24+
if((min(zero,one))%2)
25+
cout<<"DA"<<endl;
26+
else
27+
cout<<"NET"<<endl;
28+
}
29+
}

0 commit comments

Comments
 (0)