Submission #421328

#TimeUsernameProblemLanguageResultExecution timeMemory
421328ioiTracks in the Snow (BOI13_tracks)C++14
2.19 / 100
1125 ms18120 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...