#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "debug.h"
#else
#define debug(...) 42
#endif
int main() {
ios::sync_with_stdio(false); cin.tie(nullptr);
int n, m; cin >> n >> m;
map<char, int> mp;
for (int i = 0; i < n; ++i) {
for (int j = 0; j < m; ++j) {
char c; cin >> c;
if (c != '.') {
mp[c]++;
}
}
}
cout << mp.size();
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
604 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
4 |
Incorrect |
2 ms |
604 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
6 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
7 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
8 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
9 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
12 |
Incorrect |
2 ms |
348 KB |
Output isn't correct |
13 |
Incorrect |
2 ms |
348 KB |
Output isn't correct |
14 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
15 |
Incorrect |
4 ms |
600 KB |
Output isn't correct |
16 |
Incorrect |
5 ms |
464 KB |
Output isn't correct |
17 |
Incorrect |
4 ms |
692 KB |
Output isn't correct |
18 |
Incorrect |
2 ms |
856 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
2 |
Incorrect |
17 ms |
1884 KB |
Output isn't correct |
3 |
Incorrect |
153 ms |
16028 KB |
Output isn't correct |
4 |
Incorrect |
38 ms |
3920 KB |
Output isn't correct |
5 |
Incorrect |
77 ms |
8992 KB |
Output isn't correct |
6 |
Incorrect |
182 ms |
15952 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
512 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
12 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
13 |
Incorrect |
18 ms |
1848 KB |
Output isn't correct |
14 |
Incorrect |
10 ms |
1116 KB |
Output isn't correct |
15 |
Incorrect |
13 ms |
1368 KB |
Output isn't correct |
16 |
Incorrect |
8 ms |
1076 KB |
Output isn't correct |
17 |
Incorrect |
45 ms |
4272 KB |
Output isn't correct |
18 |
Incorrect |
49 ms |
4132 KB |
Output isn't correct |
19 |
Incorrect |
42 ms |
3920 KB |
Output isn't correct |
20 |
Incorrect |
34 ms |
3676 KB |
Output isn't correct |
21 |
Incorrect |
88 ms |
9512 KB |
Output isn't correct |
22 |
Incorrect |
78 ms |
9040 KB |
Output isn't correct |
23 |
Incorrect |
85 ms |
7764 KB |
Output isn't correct |
24 |
Incorrect |
93 ms |
9300 KB |
Output isn't correct |
25 |
Incorrect |
202 ms |
15960 KB |
Output isn't correct |
26 |
Correct |
110 ms |
12372 KB |
Output is correct |
27 |
Incorrect |
159 ms |
15952 KB |
Output isn't correct |
28 |
Incorrect |
190 ms |
15908 KB |
Output isn't correct |
29 |
Incorrect |
185 ms |
15956 KB |
Output isn't correct |
30 |
Incorrect |
177 ms |
15520 KB |
Output isn't correct |
31 |
Incorrect |
175 ms |
10288 KB |
Output isn't correct |
32 |
Incorrect |
158 ms |
15956 KB |
Output isn't correct |