-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
50 lines (43 loc) · 809 Bytes
/
main.cpp
File metadata and controls
50 lines (43 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include <bits/stdc++.h>
#include <cstdio>
using namespace std;
typedef double ld;
typedef unsigned long ul;
typedef long long ll;
typedef unsigned long long ull;
const int maxn = 1050;
const int inf = 0x3f3f3f;
char mp[maxn][maxn];
void solve() {
int n, m;
cin >> n >> m;
int cntk = 0, cntd = 0;
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
cin >> mp[i][j];
if (mp[i][j] == 'K')
cntk++;
else if (mp[i][j] == 'D')
cntd++;
}
}
if (cntk == cntd) {
cout << "Draw\n";
} else if (cntk > cntd) {
cout << "Kokomi\n";
} else {
cout << "Dodola\n";
}
}
void init() {}
int main(void) {
ios::sync_with_stdio(false);
cin.tie(0);
init();
int t = 1;
// cin >> t;
// cin.get();
while (t--)
solve();
return 0;
}