20032022-12-13 21:45:274bs0lute0Szózatcpp11Wrong answer 0/1003ms4352 KiB
//#include <iostream>
#include <bits/stdc++.h>
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 answer3ms1880 KiB
2Wrong answer2ms2116 KiB
subtask20/10
3Wrong answer2ms2316 KiB
4Wrong answer2ms2420 KiB
5Wrong answer2ms2616 KiB
subtask30/20
6Wrong answer2ms2700 KiB
7Wrong answer2ms2696 KiB
8Wrong answer2ms2808 KiB
9Wrong answer2ms2932 KiB
10Wrong answer2ms3072 KiB
11Wrong answer2ms3428 KiB
subtask40/30
12Wrong answer2ms3444 KiB
13Wrong answer2ms3560 KiB
14Wrong answer2ms3688 KiB
15Wrong answer2ms3760 KiB
16Wrong answer2ms3788 KiB
17Wrong answer2ms3908 KiB
subtask50/40
18Wrong answer2ms4036 KiB
19Wrong answer2ms4232 KiB
20Wrong answer2ms4352 KiB
21Wrong answer2ms4244 KiB
22Wrong answer2ms4328 KiB
23Wrong answer2ms4320 KiB
24Wrong answer2ms4280 KiB