#include <iostream>
#include <set>
using namespace std;
int main()
{
int N, i, ures=0,betu;
long long int megoldas=0;
string s;
cin>>N>>s;
for (i=0; i<N; 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 | Wrong answer | 3ms | 1996 KiB | ||||
2 | Wrong answer | 2ms | 2016 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Wrong answer | 2ms | 2140 KiB | ||||
4 | Wrong answer | 2ms | 2344 KiB | ||||
5 | Wrong answer | 2ms | 2464 KiB | ||||
subtask3 | 0/20 | ||||||
6 | Wrong answer | 2ms | 2552 KiB | ||||
7 | Wrong answer | 2ms | 2796 KiB | ||||
8 | Wrong answer | 2ms | 2836 KiB | ||||
9 | Wrong answer | 2ms | 2964 KiB | ||||
10 | Wrong answer | 2ms | 3164 KiB | ||||
11 | Wrong answer | 2ms | 3244 KiB | ||||
subtask4 | 0/30 | ||||||
12 | Wrong answer | 2ms | 3368 KiB | ||||
13 | Wrong answer | 2ms | 3576 KiB | ||||
14 | Wrong answer | 2ms | 3780 KiB | ||||
15 | Wrong answer | 2ms | 3848 KiB | ||||
16 | Wrong answer | 2ms | 3992 KiB | ||||
17 | Wrong answer | 2ms | 4056 KiB | ||||
subtask5 | 0/40 | ||||||
18 | Wrong answer | 2ms | 4056 KiB | ||||
19 | Wrong answer | 2ms | 4056 KiB | ||||
20 | Wrong answer | 2ms | 4168 KiB | ||||
21 | Wrong answer | 2ms | 4176 KiB | ||||
22 | Wrong answer | 2ms | 4296 KiB | ||||
23 | Wrong answer | 2ms | 4368 KiB | ||||
24 | Wrong answer | 2ms | 4384 KiB |