18442022-12-05 08:04:35peterSzózatcpp17Wrong answer 0/1003ms3520 KiB
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>

int factorial(int num)
{
    return num == 1 ? 1 : num * factorial(num - 1);
}


int main()
{
    int wordlength;
    scanf("%d\n", &wordlength);
    char* letters = (char*)malloc(sizeof(char) * (wordlength + 1));
    
    scanf("%s", letters);
    
    fputs(letters, stdout);
    int db = 0;
    for (int i = 0; i < wordlength; i++)
    {
        if (letters[i] == '_')
        {
            db++;
        }
    }
    int sol = 1;
    for (int i = 26 - wordlength + 1; i <= 26 - (wordlength - db); i++) {
        sol *= i;
    }
    printf("%d", sol);


    free(letters);

    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1348 KiB
2Wrong answer2ms1496 KiB
subtask20/10
3Wrong answer2ms1692 KiB
4Wrong answer2ms2020 KiB
5Wrong answer2ms1992 KiB
subtask30/20
6Wrong answer2ms2172 KiB
7Wrong answer2ms2192 KiB
8Wrong answer2ms2224 KiB
9Wrong answer2ms2524 KiB
10Wrong answer2ms2736 KiB
11Wrong answer2ms3064 KiB
subtask40/30
12Wrong answer2ms2852 KiB
13Wrong answer2ms3092 KiB
14Wrong answer2ms3116 KiB
15Wrong answer2ms3000 KiB
16Wrong answer2ms3032 KiB
17Wrong answer2ms3264 KiB
subtask50/40
18Wrong answer2ms3520 KiB
19Wrong answer2ms3280 KiB
20Wrong answer2ms3296 KiB
21Wrong answer2ms3296 KiB
22Wrong answer2ms3240 KiB
23Wrong answer2ms3512 KiB
24Wrong answer2ms3444 KiB