5747 | 2023-09-16 11:27:35 | SzaniszloDora | Szózat | cpp11 | Accepted 100/100 | 3ms | 4496 KiB |
// Sziaaaaaa
// Zoli boldog :))
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin>>n;
int x=0;
for (int i=0; i<n; i++){
char y;
cin>>y;
if (y != '_'){
x++;
}
}
int p= n-x;
int osszeg=1;
for (int i=0; i<p; i++){
osszeg= osszeg*(26-i-x);
}
cout<<osszeg<<endl;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1908 KiB | ||||
2 | Accepted | 3ms | 2136 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 3ms | 2384 KiB | ||||
4 | Accepted | 2ms | 2604 KiB | ||||
5 | Accepted | 2ms | 2688 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 3ms | 2828 KiB | ||||
7 | Accepted | 3ms | 2932 KiB | ||||
8 | Accepted | 2ms | 3024 KiB | ||||
9 | Accepted | 2ms | 3108 KiB | ||||
10 | Accepted | 2ms | 3112 KiB | ||||
11 | Accepted | 3ms | 3248 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 3ms | 3372 KiB | ||||
13 | Accepted | 3ms | 3356 KiB | ||||
14 | Accepted | 2ms | 3444 KiB | ||||
15 | Accepted | 3ms | 3572 KiB | ||||
16 | Accepted | 2ms | 3664 KiB | ||||
17 | Accepted | 3ms | 3908 KiB | ||||
subtask5 | 40/40 | ||||||
18 | Accepted | 2ms | 3912 KiB | ||||
19 | Accepted | 3ms | 3912 KiB | ||||
20 | Accepted | 3ms | 4044 KiB | ||||
21 | Accepted | 3ms | 4292 KiB | ||||
22 | Accepted | 2ms | 4388 KiB | ||||
23 | Accepted | 3ms | 4408 KiB | ||||
24 | Accepted | 2ms | 4496 KiB |