17552022-12-02 19:38:06levente19Szózatcpp11Wrong answer 0/1003ms4208 KiB
#include <bits/stdc++.h>
#define gyorsan ios::sync_with_stdio(0);cin.tie(0)

using namespace std;

int main()
{
    gyorsan;

    int abcHossz = 26;
    int valasz = 1;
    string szo;
    getline(cin, szo);

    for(int i = 0; i < szo.size(); i++) {
        if(szo[i] == '_') valasz *= abcHossz;
        if(szo[i] != ' ') abcHossz -= 1;
    }

    cout << valasz;

    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1828 KiB
2Wrong answer2ms2020 KiB
subtask20/10
3Wrong answer2ms2224 KiB
4Wrong answer2ms2428 KiB
5Wrong answer2ms2632 KiB
subtask30/20
6Wrong answer2ms2704 KiB
7Wrong answer2ms2736 KiB
8Wrong answer2ms2804 KiB
9Wrong answer2ms2936 KiB
10Wrong answer2ms3168 KiB
11Wrong answer2ms3236 KiB
subtask40/30
12Wrong answer2ms3372 KiB
13Wrong answer2ms3420 KiB
14Wrong answer2ms3548 KiB
15Wrong answer2ms3624 KiB
16Wrong answer2ms3756 KiB
17Wrong answer2ms3852 KiB
subtask50/40
18Wrong answer2ms3856 KiB
19Wrong answer2ms4208 KiB
20Wrong answer2ms4192 KiB
21Wrong answer2ms4088 KiB
22Wrong answer2ms4088 KiB
23Wrong answer2ms4092 KiB
24Wrong answer2ms4088 KiB