Submission #1294838

#TimeUsernameProblemLanguageResultExecution timeMemory
1294838JohanTracks in the Snow (BOI13_tracks)C++20
2.19 / 100
555 ms584 KiB
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ int n, m; cin >> n >> m; bool ok = false; set < char > st; for(int i = 1; i <= n; i++){ for(int j = 1; j <= m; j++){ char c; cin >> c; ok |= (c == '.'); st.insert(c); } } // for(auto i : st)cout << i << ' ';cout << endl; cout << st.size() - ok << endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...