17072022-12-01 16:18:23PalotásMártonKvázi-Izogramcpp14Wrong answer 30/10017ms3724 KiB
#include <iostream>
#include <string>
#include <vector>
#include <cctype>

using namespace std;

int main()
{
    int n,i,s=0,m=1,j;
    cin>>n;
    char x;
    cin>>x;
    string t;

    for(i=0;i<n;i++){
        getline(cin,t);
        int a[26]={};
        for(j=0;j<t.size();j++){
            x=tolower(t[j]);
            if(x>='a' && x<='z'){
                a[x-'a']++;
            }
        }
        for(j=0;j<26;j++){
            if(a[j]>2){
                s--;
            }
        }
        s++;
    }
    cout<<s;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1684 KiB
2Accepted2ms1928 KiB
subtask230/30
3Accepted2ms2176 KiB
4Accepted2ms2376 KiB
5Accepted2ms2616 KiB
6Accepted2ms2820 KiB
7Accepted4ms3016 KiB
subtask30/50
8Wrong answer2ms3104 KiB
9Wrong answer2ms3176 KiB
10Wrong answer2ms3172 KiB
11Wrong answer2ms3180 KiB
12Wrong answer2ms3180 KiB
13Wrong answer2ms3180 KiB
subtask40/20
14Wrong answer3ms3272 KiB
15Wrong answer4ms3292 KiB
16Wrong answer4ms3260 KiB
17Wrong answer8ms3228 KiB
18Wrong answer13ms3272 KiB
19Wrong answer16ms3524 KiB
20Wrong answer17ms3724 KiB