16412022-12-01 09:01:44TimiSzózatcpp11Wrong answer 0/1003ms4384 KiB
#include <iostream>
#include <set>

using namespace std;

int main()
{
    int N, i, ures=0,betu;
    long long int megoldas=0;
    string s;
    cin>>N>>s;
    for (i=0; i<N; i++)
    {
        if (s[i]=='_')
            ures++;
    }

    betu=26-(N-ures);

       megoldas=1;
       for (i=1;i<=ures; i++)
       {
         megoldas*=betu;
         betu--;
       }

    cout<<megoldas;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1996 KiB
2Wrong answer2ms2016 KiB
subtask20/10
3Wrong answer2ms2140 KiB
4Wrong answer2ms2344 KiB
5Wrong answer2ms2464 KiB
subtask30/20
6Wrong answer2ms2552 KiB
7Wrong answer2ms2796 KiB
8Wrong answer2ms2836 KiB
9Wrong answer2ms2964 KiB
10Wrong answer2ms3164 KiB
11Wrong answer2ms3244 KiB
subtask40/30
12Wrong answer2ms3368 KiB
13Wrong answer2ms3576 KiB
14Wrong answer2ms3780 KiB
15Wrong answer2ms3848 KiB
16Wrong answer2ms3992 KiB
17Wrong answer2ms4056 KiB
subtask50/40
18Wrong answer2ms4056 KiB
19Wrong answer2ms4056 KiB
20Wrong answer2ms4168 KiB
21Wrong answer2ms4176 KiB
22Wrong answer2ms4296 KiB
23Wrong answer2ms4368 KiB
24Wrong answer2ms4384 KiB