#include <iostream>
using namespace std;
int main()
{
int n, x = 0, abc = 26, i, out = 1;
char temp;
cin >> n;
abc -= n;
for (i = 0; i < n; i++)
{
cin >> temp;
if (temp == '_')
{
x++, abc++;
}
}
for (i = 0; i < x; i++)
{
out *= abc;
abc--;
}
cout << out;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 2ms | 504 KiB | ||||
2 | Accepted | 2ms | 360 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 3ms | 528 KiB | ||||
4 | Accepted | 3ms | 400 KiB | ||||
5 | Accepted | 3ms | 428 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 2ms | 400 KiB | ||||
7 | Accepted | 3ms | 360 KiB | ||||
8 | Accepted | 3ms | 384 KiB | ||||
9 | Accepted | 3ms | 396 KiB | ||||
10 | Accepted | 2ms | 376 KiB | ||||
11 | Accepted | 2ms | 400 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 3ms | 420 KiB | ||||
13 | Accepted | 3ms | 380 KiB | ||||
14 | Accepted | 3ms | 680 KiB | ||||
15 | Accepted | 3ms | 524 KiB | ||||
16 | Accepted | 3ms | 376 KiB | ||||
17 | Accepted | 3ms | 384 KiB | ||||
subtask5 | 40/40 | ||||||
18 | Accepted | 2ms | 360 KiB | ||||
19 | Accepted | 3ms | 636 KiB | ||||
20 | Accepted | 3ms | 504 KiB | ||||
21 | Accepted | 3ms | 412 KiB | ||||
22 | Accepted | 3ms | 488 KiB | ||||
23 | Accepted | 3ms | 360 KiB | ||||
24 | Accepted | 3ms | 360 KiB |