#include <iostream>
#include <set>
using namespace std;
int main()
{
int N, i, ures=0,betu;
long long int megoldas=0;
string s;
cin>>N;
cin.get();
getline(cin, s);
for (i=0; i<s.size(); i++)
{
if (s[i]=='_')
ures++;
}
betu=26-(N-ures);
megoldas=1;
for (i=1;i<=ures; i++)
{
megoldas*=betu;
betu--;
}
cout<<megoldas;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1680 KiB | ||||
2 | Accepted | 2ms | 1848 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 2ms | 2048 KiB | ||||
4 | Accepted | 2ms | 2128 KiB | ||||
5 | Accepted | 2ms | 2132 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 2ms | 2376 KiB | ||||
7 | Accepted | 2ms | 2728 KiB | ||||
8 | Accepted | 2ms | 2848 KiB | ||||
9 | Accepted | 2ms | 2912 KiB | ||||
10 | Accepted | 2ms | 3076 KiB | ||||
11 | Accepted | 2ms | 3196 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 2ms | 3200 KiB | ||||
13 | Accepted | 2ms | 3328 KiB | ||||
14 | Accepted | 2ms | 3404 KiB | ||||
15 | Accepted | 2ms | 3648 KiB | ||||
16 | Accepted | 2ms | 3660 KiB | ||||
17 | Accepted | 2ms | 3788 KiB | ||||
subtask5 | 40/40 | ||||||
18 | Accepted | 2ms | 3868 KiB | ||||
19 | Accepted | 2ms | 3860 KiB | ||||
20 | Accepted | 2ms | 3744 KiB | ||||
21 | Accepted | 2ms | 3744 KiB | ||||
22 | Accepted | 2ms | 3876 KiB | ||||
23 | Accepted | 2ms | 3988 KiB | ||||
24 | Accepted | 2ms | 3988 KiB |