#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
int main()
{
int wordlength;
scanf("%d\n", &wordlength);
int db = 0;
char c;
while(true)
{
scanf("%c", &c);
if (c == '_')
{
db++;
}
if (c == '\n') break;
}
int sol = 1;
for (int i = 26 - wordlength + 1; i <= 26 - (wordlength - db); i++) {
sol *= i;
}
printf("%d", sol);
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Time limit exceeded | 1.082s | 1364 KiB | ||||
2 | Time limit exceeded | 1.082s | 1480 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 2ms | 1804 KiB | ||||
4 | Accepted | 2ms | 1948 KiB | ||||
5 | Accepted | 2ms | 2344 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 2ms | 2456 KiB | ||||
7 | Accepted | 2ms | 2624 KiB | ||||
8 | Accepted | 2ms | 2832 KiB | ||||
9 | Accepted | 2ms | 2944 KiB | ||||
10 | Accepted | 2ms | 2912 KiB | ||||
11 | Accepted | 2ms | 3096 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 2ms | 3176 KiB | ||||
13 | Accepted | 2ms | 3372 KiB | ||||
14 | Accepted | 2ms | 3212 KiB | ||||
15 | Accepted | 2ms | 3320 KiB | ||||
16 | Accepted | 2ms | 3160 KiB | ||||
17 | Accepted | 2ms | 3144 KiB | ||||
subtask5 | 40/40 | ||||||
18 | Accepted | 2ms | 3124 KiB | ||||
19 | Accepted | 2ms | 3084 KiB | ||||
20 | Accepted | 2ms | 3136 KiB | ||||
21 | Accepted | 2ms | 3372 KiB | ||||
22 | Accepted | 2ms | 3280 KiB | ||||
23 | Accepted | 2ms | 3352 KiB | ||||
24 | Accepted | 2ms | 3280 KiB |