제출 #1356673

#제출 시각아이디문제언어결과실행 시간메모리
1356673vjudge1Tracks in the Snow (BOI13_tracks)C++20
2.19 / 100
17 ms18100 KiB
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define bp '\n'
#define vp cout<<'\n';
int d[500];
signed main(){
    cin.tie(nullptr)->sync_with_stdio(false);
    int n,m,sum=0;
    cin>>n>>m;

    vector<string>a(n);
    for(auto&e:a){
        cin>>e;
        for(auto&c:e)d[c]=1;
    }
    for(auto&e:d)sum+=e;
    cout<<sum-d['.'];
    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...