제출 #953635

#제출 시각아이디문제언어결과실행 시간메모리
953635KakarotTracks in the Snow (BOI13_tracks)C++98
0 / 100
106 ms33768 KiB
#include <bits/stdc++.h>
#define int int64_t
using namespace std;

void setIO() {
    cin.tie(0)->sync_with_stdio(0);
}

void solve() {
    //cout << "zco";
    int h, w;
    cin >> h >> w;
    set<char> animals;
    vector<string> grid(h);
    for(auto &x : grid) {
        cin >> x;
        for(char &c : x) animals.insert(c);
    }
    cout << animals.size()-1;
}

int32_t main() {
    setIO();
    solve();
    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...