17062022-12-01 16:17:29PalotásMártonKvázi-Izogramcpp14Wrong answer 30/10017ms3760 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-97]++;
            }
        }
        for(j=0;j<26;j++){
            if(a[j]>2){
                s--;
            }
        }
        s++;
    }
    cout<<s;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1680 KiB
2Accepted2ms1852 KiB
subtask230/30
3Accepted2ms2052 KiB
4Accepted2ms2252 KiB
5Accepted2ms2504 KiB
6Accepted2ms2536 KiB
7Accepted4ms2532 KiB
subtask30/50
8Wrong answer2ms2784 KiB
9Wrong answer2ms2988 KiB
10Wrong answer2ms3112 KiB
11Wrong answer2ms3364 KiB
12Wrong answer2ms3436 KiB
13Wrong answer2ms3504 KiB
subtask40/20
14Wrong answer3ms3516 KiB
15Wrong answer4ms3520 KiB
16Wrong answer4ms3592 KiB
17Wrong answer8ms3596 KiB
18Wrong answer13ms3592 KiB
19Wrong answer16ms3684 KiB
20Wrong answer17ms3760 KiB