This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std ;
int h , w ;
char arr[4010][4010];
int main(){
cin >> h >> w ;
map<char , int > mp ;
for(int i = 0 ; i < h ; i ++)
for(int j = 0 ;j < w ; j ++){
cin >> arr[i][j];
mp[arr[i][j] ]++;
}
cout << mp.size() - (mp['.' ] ? 1 : 0) ;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |