#include <bits/stdc++.h>
#define int int64_t
using namespace std;
void setIO() {
cin.tie(0)->sync_with_stdio(0);
}
void solve() {
//cout << "zco";
int h, w;
cin >> h >> w;
set<char> animals;
vector<string> grid(h);
for(auto &x : grid) {
cin >> x;
for(char &c : x) animals.insert(c);
}
cout << animals.size()-1;
}
int32_t main() {
setIO();
solve();
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
3 ms |
860 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 |
856 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
604 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 |
592 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
348 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
604 KB |
Output isn't correct |
13 |
Incorrect |
1 ms |
604 KB |
Output isn't correct |
14 |
Incorrect |
1 ms |
604 KB |
Output isn't correct |
15 |
Incorrect |
3 ms |
860 KB |
Output isn't correct |
16 |
Incorrect |
3 ms |
824 KB |
Output isn't correct |
17 |
Incorrect |
2 ms |
828 KB |
Output isn't correct |
18 |
Incorrect |
2 ms |
604 KB |
Output isn't correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
604 KB |
Output isn't correct |
2 |
Incorrect |
11 ms |
3420 KB |
Output isn't correct |
3 |
Incorrect |
96 ms |
33652 KB |
Output isn't correct |
4 |
Incorrect |
20 ms |
8020 KB |
Output isn't correct |
5 |
Incorrect |
41 ms |
19028 KB |
Output isn't correct |
6 |
Incorrect |
82 ms |
33616 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
600 KB |
Output isn't correct |
8 |
Incorrect |
2 ms |
604 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 |
600 KB |
Output isn't correct |
12 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
13 |
Incorrect |
11 ms |
3420 KB |
Output isn't correct |
14 |
Incorrect |
7 ms |
2140 KB |
Output isn't correct |
15 |
Incorrect |
7 ms |
2396 KB |
Output isn't correct |
16 |
Incorrect |
5 ms |
1628 KB |
Output isn't correct |
17 |
Incorrect |
26 ms |
8496 KB |
Output isn't correct |
18 |
Incorrect |
24 ms |
8532 KB |
Output isn't correct |
19 |
Incorrect |
19 ms |
8376 KB |
Output isn't correct |
20 |
Incorrect |
20 ms |
7292 KB |
Output isn't correct |
21 |
Incorrect |
51 ms |
19536 KB |
Output isn't correct |
22 |
Incorrect |
49 ms |
19024 KB |
Output isn't correct |
23 |
Incorrect |
51 ms |
16464 KB |
Output isn't correct |
24 |
Incorrect |
59 ms |
19280 KB |
Output isn't correct |
25 |
Incorrect |
93 ms |
33620 KB |
Output isn't correct |
26 |
Incorrect |
40 ms |
25776 KB |
Output isn't correct |
27 |
Incorrect |
86 ms |
33624 KB |
Output isn't correct |
28 |
Incorrect |
95 ms |
33652 KB |
Output isn't correct |
29 |
Incorrect |
82 ms |
33724 KB |
Output isn't correct |
30 |
Incorrect |
97 ms |
33108 KB |
Output isn't correct |
31 |
Incorrect |
105 ms |
21564 KB |
Output isn't correct |
32 |
Incorrect |
106 ms |
33768 KB |
Output isn't correct |