18492022-12-05 10:30:32peterSzózatcpp17Time limit exceeded 100/1001.082s3372 KiB
#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;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Time limit exceeded1.082s1364 KiB
2Time limit exceeded1.082s1480 KiB
subtask210/10
3Accepted2ms1804 KiB
4Accepted2ms1948 KiB
5Accepted2ms2344 KiB
subtask320/20
6Accepted2ms2456 KiB
7Accepted2ms2624 KiB
8Accepted2ms2832 KiB
9Accepted2ms2944 KiB
10Accepted2ms2912 KiB
11Accepted2ms3096 KiB
subtask430/30
12Accepted2ms3176 KiB
13Accepted2ms3372 KiB
14Accepted2ms3212 KiB
15Accepted2ms3320 KiB
16Accepted2ms3160 KiB
17Accepted2ms3144 KiB
subtask540/40
18Accepted2ms3124 KiB
19Accepted2ms3084 KiB
20Accepted2ms3136 KiB
21Accepted2ms3372 KiB
22Accepted2ms3280 KiB
23Accepted2ms3352 KiB
24Accepted2ms3280 KiB