We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e0d027 commit b521a05Copy full SHA for b521a05
1373B - 01 Game.cpp
@@ -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
27
+ cout<<"NET"<<endl;
28
29
+}
0 commit comments