1714 | 2022-12-01 16:32:33 | PalotásMárton | Szózat | cpp14 | Wrong answer 30/100 | 3ms | 4308 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);
//cout<<s<<n<<"dasds";
for(i=0;i<s;i++){
m=m*n;
n--;
}
cout<<m;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1808 KiB | ||||
2 | Accepted | 2ms | 2000 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 2ms | 2204 KiB | ||||
4 | Accepted | 2ms | 2280 KiB | ||||
5 | Accepted | 2ms | 2432 KiB | ||||
subtask3 | 20/20 | ||||||
6 | Accepted | 2ms | 2484 KiB | ||||
7 | Accepted | 2ms | 2736 KiB | ||||
8 | Accepted | 2ms | 2812 KiB | ||||
9 | Accepted | 2ms | 2944 KiB | ||||
10 | Accepted | 2ms | 3184 KiB | ||||
11 | Accepted | 2ms | 3392 KiB | ||||
subtask4 | 0/30 | ||||||
12 | Accepted | 2ms | 3548 KiB | ||||
13 | Wrong answer | 2ms | 3672 KiB | ||||
14 | Accepted | 2ms | 3672 KiB | ||||
15 | Accepted | 2ms | 3668 KiB | ||||
16 | Accepted | 2ms | 3788 KiB | ||||
17 | Wrong answer | 2ms | 3752 KiB | ||||
subtask5 | 0/40 | ||||||
18 | Accepted | 2ms | 3712 KiB | ||||
19 | Wrong answer | 2ms | 3828 KiB | ||||
20 | Wrong answer | 2ms | 3852 KiB | ||||
21 | Wrong answer | 2ms | 3928 KiB | ||||
22 | Wrong answer | 2ms | 3940 KiB | ||||
23 | Wrong answer | 2ms | 4192 KiB | ||||
24 | Wrong answer | 2ms | 4308 KiB |