#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
int chars = 26;
int unknowns = 0;
int size;
cin >> size;
for (int i = 0; i < size; i++)
{
char c;
cin >> c;
if (c == '_')
{
unknowns++;
}
else
{
chars--;
}
}
long int ans = 1;
for (int i = chars; unknowns > 0; chars--, unknowns--)
{
ans *= chars;
}
cout << ans;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1872 KiB | ||||
2 | Accepted | 3ms | 2124 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 3ms | 2368 KiB | ||||
4 | Accepted | 3ms | 2704 KiB | ||||
5 | Accepted | 2ms | 2768 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 3ms | 2988 KiB | ||||
7 | Accepted | 3ms | 3204 KiB | ||||
8 | Accepted | 3ms | 3384 KiB | ||||
9 | Accepted | 3ms | 3416 KiB | ||||
10 | Accepted | 3ms | 3596 KiB | ||||
11 | Accepted | 2ms | 3812 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 3ms | 4048 KiB | ||||
13 | Accepted | 2ms | 3996 KiB | ||||
14 | Accepted | 3ms | 4124 KiB | ||||
15 | Accepted | 2ms | 4204 KiB | ||||
16 | Accepted | 2ms | 4328 KiB | ||||
17 | Accepted | 2ms | 4204 KiB | ||||
subtask5 | 40/40 | ||||||
18 | Accepted | 2ms | 4320 KiB | ||||
19 | Accepted | 2ms | 4472 KiB | ||||
20 | Accepted | 3ms | 4436 KiB | ||||
21 | Accepted | 2ms | 4504 KiB | ||||
22 | Accepted | 2ms | 4492 KiB | ||||
23 | Accepted | 3ms | 4484 KiB | ||||
24 | Accepted | 2ms | 4480 KiB |