20022022-12-13 21:39:324bs0lute0Szózatcpp11Wrong answer 0/1003ms4284 KiB
#include <iostream>
#include <string>
using namespace std;

int cw(char t[], int s){
    int count = 0;
    for (int i = 0; i < s; i++){
        if (t[i] == '_'){
            count++;
        }
    }
    return count;
}

int n;
int main(){
    cin >> n;
    char N[n];
    int value = 1;
    const int c = cw(N, n);
    for (int i = 0; i < n; i++){
        cin >> N[i];
    }
    value = 26 - (n-c);
    for (int i = c; i > 1; i--){
        value *= 26-i;
    }
    cout << value;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms2144 KiB
2Wrong answer2ms2208 KiB
subtask20/10
3Wrong answer2ms2388 KiB
4Wrong answer2ms2556 KiB
5Wrong answer2ms2628 KiB
subtask30/20
6Wrong answer2ms2824 KiB
7Wrong answer2ms3060 KiB
8Accepted2ms3020 KiB
9Wrong answer2ms3272 KiB
10Wrong answer2ms3360 KiB
11Wrong answer2ms3480 KiB
subtask40/30
12Wrong answer2ms3732 KiB
13Wrong answer2ms3760 KiB
14Wrong answer2ms4012 KiB
15Wrong answer2ms4124 KiB
16Wrong answer2ms4096 KiB
17Wrong answer2ms4208 KiB
subtask50/40
18Wrong answer2ms4088 KiB
19Wrong answer2ms4092 KiB
20Wrong answer2ms4168 KiB
21Wrong answer2ms4168 KiB
22Wrong answer2ms4284 KiB
23Wrong answer2ms4168 KiB
24Wrong answer2ms4168 KiB