1692 | 2022-12-01 15:50:06 | PalotásMárton | Szózat | cpp14 | Wrong answer 30/100 | 3ms | 4088 KiB |
#include <iostream>
#include <string>
using namespace std;
int main()
{
int n,i,s=0,m=1;
cin>>n;
char x;
cin>>x;
string t;
getline(cin,t);
for(i=0;i<t.length();i++){
x=t[i];
if(x=='_'){
s++;
}
}
n=26-(n-s);
for(i=0;i<s;i++){
m=m*n;
n--;
}
cout<<m;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1680 KiB | ||||
2 | Accepted | 2ms | 1928 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 2ms | 2180 KiB | ||||
4 | Accepted | 2ms | 2208 KiB | ||||
5 | Accepted | 2ms | 2464 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 2ms | 2532 KiB | ||||
7 | Accepted | 2ms | 2592 KiB | ||||
8 | Accepted | 2ms | 2800 KiB | ||||
9 | Accepted | 2ms | 2996 KiB | ||||
10 | Accepted | 2ms | 3084 KiB | ||||
11 | Accepted | 2ms | 3324 KiB | ||||
subtask4 | 0/30 | ||||||
12 | Accepted | 2ms | 3532 KiB | ||||
13 | Wrong answer | 2ms | 3612 KiB | ||||
14 | Accepted | 2ms | 3568 KiB | ||||
15 | Accepted | 2ms | 3696 KiB | ||||
16 | Accepted | 2ms | 3884 KiB | ||||
17 | Wrong answer | 2ms | 3992 KiB | ||||
subtask5 | 0/40 | ||||||
18 | Accepted | 2ms | 4088 KiB | ||||
19 | Wrong answer | 2ms | 4076 KiB | ||||
20 | Wrong answer | 2ms | 3956 KiB | ||||
21 | Wrong answer | 2ms | 3952 KiB | ||||
22 | Wrong answer | 2ms | 3952 KiB | ||||
23 | Wrong answer | 2ms | 4080 KiB | ||||
24 | Wrong answer | 2ms | 4076 KiB |