Submission #757436

#TimeUsernameProblemLanguageResultExecution timeMemory
757436The_SamuraiTracks in the Snow (BOI13_tracks)C++17
2.19 / 100
333 ms20044 KiB
#include "bits/stdc++.h"

using namespace std;

int INF = 1e9;

int main() {
    ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
    clock_t startTime = clock();
    int n, m;
    cin >> n >> m;
    vector<vector<char>> a(n, vector<char>(m));
    set<char> st;
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
            cin >> a[i][j];
            if (a[i][j] != '.') {
                st.insert(a[i][j]);
            }
        }
    }
    cout << st.size();


#ifdef sunnitov
    cerr << "\nTime: " << (int)((double)(clock() - startTime) / CLOCKS_PER_SEC * 1000);
#endif
}

/*
 chefeddiefedjeffeachbigagedegghehad - 0
 chefeddiefedjeffeachbigagedegghehad - 0

*/

Compilation message (stderr)

tracks.cpp: In function 'int main()':
tracks.cpp:9:13: warning: unused variable 'startTime' [-Wunused-variable]
    9 |     clock_t startTime = clock();
      |             ^~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...