#include <iostream>
#include <string>
using namespace std;
int cw(char t[], int s){
int count = 0;
for (int i = 0; i < s; i++){
if (t[i] == '_'){
count++;
}
}
return count;
}
int n;
int main(){
cin >> n;
char N[n];
int value = 1;
const int c = cw(N, n);
for (int i = 0; i < n; i++){
cin >> N[i];
}
value = 26 - (n-c);
for (int i = c; i > 1; i--){
value *= 26-i;
}
cout << value;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 2144 KiB | ||||
2 | Wrong answer | 2ms | 2208 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Wrong answer | 2ms | 2388 KiB | ||||
4 | Wrong answer | 2ms | 2556 KiB | ||||
5 | Wrong answer | 2ms | 2628 KiB | ||||
subtask3 | 0/20 | ||||||
6 | Wrong answer | 2ms | 2824 KiB | ||||
7 | Wrong answer | 2ms | 3060 KiB | ||||
8 | Accepted | 2ms | 3020 KiB | ||||
9 | Wrong answer | 2ms | 3272 KiB | ||||
10 | Wrong answer | 2ms | 3360 KiB | ||||
11 | Wrong answer | 2ms | 3480 KiB | ||||
subtask4 | 0/30 | ||||||
12 | Wrong answer | 2ms | 3732 KiB | ||||
13 | Wrong answer | 2ms | 3760 KiB | ||||
14 | Wrong answer | 2ms | 4012 KiB | ||||
15 | Wrong answer | 2ms | 4124 KiB | ||||
16 | Wrong answer | 2ms | 4096 KiB | ||||
17 | Wrong answer | 2ms | 4208 KiB | ||||
subtask5 | 0/40 | ||||||
18 | Wrong answer | 2ms | 4088 KiB | ||||
19 | Wrong answer | 2ms | 4092 KiB | ||||
20 | Wrong answer | 2ms | 4168 KiB | ||||
21 | Wrong answer | 2ms | 4168 KiB | ||||
22 | Wrong answer | 2ms | 4284 KiB | ||||
23 | Wrong answer | 2ms | 4168 KiB | ||||
24 | Wrong answer | 2ms | 4168 KiB |