#include <bits/stdc++.h>
#define speed ios::sync_with_stdio(0);cin.tie(0)
using namespace std;
int main() {
speed;
int n, cnt = 0, res = 1;
cin >> n;
for (int i = 0; i < n; i++) {
string s;
cin >> s;
if (s == "_") cnt++;
}
for (int i = 0; i < cnt; i++) {
res *= (27 - n + i);
}
cout << res;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 2104 KiB | ||||
2 | Accepted | 2ms | 2232 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 2ms | 2352 KiB | ||||
4 | Accepted | 2ms | 2444 KiB | ||||
5 | Accepted | 2ms | 2368 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 2ms | 2492 KiB | ||||
7 | Accepted | 2ms | 2716 KiB | ||||
8 | Accepted | 2ms | 2928 KiB | ||||
9 | Accepted | 2ms | 3104 KiB | ||||
10 | Accepted | 2ms | 3200 KiB | ||||
11 | Accepted | 2ms | 3176 KiB | ||||
subtask4 | 30/30 | ||||||
12 | Accepted | 2ms | 3292 KiB | ||||
13 | Accepted | 2ms | 3508 KiB | ||||
14 | Accepted | 2ms | 3720 KiB | ||||
15 | Accepted | 2ms | 3916 KiB | ||||
16 | Accepted | 2ms | 4124 KiB | ||||
17 | Accepted | 2ms | 4160 KiB | ||||
subtask5 | 40/40 | ||||||
18 | Accepted | 2ms | 4160 KiB | ||||
19 | Accepted | 2ms | 4236 KiB | ||||
20 | Accepted | 2ms | 4136 KiB | ||||
21 | Accepted | 2ms | 4244 KiB | ||||
22 | Accepted | 2ms | 4236 KiB | ||||
23 | Accepted | 2ms | 4140 KiB | ||||
24 | Accepted | 2ms | 4244 KiB |