Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
56828 | 董承诺 | 排队买票 | C++ | Wrong Answer | 11 | 0 MS | 248 KB | 233 | 2022-08-03 15:04:07 |
#include<bits/stdc++.h> using namespace std; int a,c,d[36]; string b; int main(){ cin>>a; for(int i=1;i<=a;i++){ cin>>b[i]; d[b[i]-'A']++; } for(int i=0;i<=27;i++){ if(d[i]>0) c++; } cout<<c+1; return 0; }