//#include <iostream>
#include <bits/stdc++.h>
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 | 1880 KiB | ||||
2 | Wrong answer | 2ms | 2116 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Wrong answer | 2ms | 2316 KiB | ||||
4 | Wrong answer | 2ms | 2420 KiB | ||||
5 | Wrong answer | 2ms | 2616 KiB | ||||
subtask3 | 0/20 | ||||||
6 | Wrong answer | 2ms | 2700 KiB | ||||
7 | Wrong answer | 2ms | 2696 KiB | ||||
8 | Wrong answer | 2ms | 2808 KiB | ||||
9 | Wrong answer | 2ms | 2932 KiB | ||||
10 | Wrong answer | 2ms | 3072 KiB | ||||
11 | Wrong answer | 2ms | 3428 KiB | ||||
subtask4 | 0/30 | ||||||
12 | Wrong answer | 2ms | 3444 KiB | ||||
13 | Wrong answer | 2ms | 3560 KiB | ||||
14 | Wrong answer | 2ms | 3688 KiB | ||||
15 | Wrong answer | 2ms | 3760 KiB | ||||
16 | Wrong answer | 2ms | 3788 KiB | ||||
17 | Wrong answer | 2ms | 3908 KiB | ||||
subtask5 | 0/40 | ||||||
18 | Wrong answer | 2ms | 4036 KiB | ||||
19 | Wrong answer | 2ms | 4232 KiB | ||||
20 | Wrong answer | 2ms | 4352 KiB | ||||
21 | Wrong answer | 2ms | 4244 KiB | ||||
22 | Wrong answer | 2ms | 4328 KiB | ||||
23 | Wrong answer | 2ms | 4320 KiB | ||||
24 | Wrong answer | 2ms | 4280 KiB |