#include <iostream>
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;
for (int i = 0; i < n; i++){
cin >> N[i];
}
const int c = cw(N, n);
for (int i = 1; i <= c; i++){
value *= 26-n + i;
}
cout << value;
system("pause");
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1880 KiB | ||||
2 | Accepted | 2ms | 2208 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 2ms | 2568 KiB | ||||
4 | Accepted | 2ms | 2564 KiB | ||||
5 | Accepted | 2ms | 2444 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 2ms | 2772 KiB | ||||
7 | Accepted | 2ms | 2984 KiB | ||||
8 | Accepted | 2ms | 2980 KiB | ||||
9 | Accepted | 2ms | 3220 KiB | ||||
10 | Accepted | 2ms | 3580 KiB | ||||
11 | Accepted | 2ms | 3860 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 2ms | 4096 KiB | ||||
13 | Accepted | 2ms | 4084 KiB | ||||
14 | Accepted | 2ms | 4216 KiB | ||||
15 | Accepted | 2ms | 4316 KiB | ||||
16 | Accepted | 2ms | 4196 KiB | ||||
17 | Accepted | 2ms | 4452 KiB | ||||
subtask5 | 40/40 | ||||||
18 | Accepted | 2ms | 4668 KiB | ||||
19 | Accepted | 2ms | 4664 KiB | ||||
20 | Accepted | 2ms | 4668 KiB | ||||
21 | Accepted | 2ms | 4916 KiB | ||||
22 | Accepted | 2ms | 5044 KiB | ||||
23 | Accepted | 2ms | 5044 KiB | ||||
24 | Accepted | 2ms | 5144 KiB |