Submission #1120248

#TimeUsernameProblemLanguageResultExecution timeMemory
1120248vjudge1Tracks in the Snow (BOI13_tracks)C++17
2.19 / 100
192 ms2636 KiB
#include <bits/stdc++.h> #define all(v) v.begin(), v.end() #define int long long using namespace std; const int mod = 1e9 + 7; int n, m; signed main() { ios_base::sync_with_stdio(0); cin.tie(0); cin >> n >> m; bool l[26] = {0}; for(int i = 0; i < n; i++) { for(int j = 0; j < m; j++) { char x; cin >> x; if(x != '.') l[x - 'A'] = 1; } } int ans = 0; for(int i : l) ans += i; cout << ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...