1711 | 2022-12-01 16:25:07 | PalotásMárton | Kvázi-Izogram | cpp14 | Accepted 100/100 | 17ms | 3900 KiB |
#include <iostream>
#include <string>
#include <vector>
#include <cctype>
using namespace std;
int main()
{
int n,i,s=0,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--;
break;
}
}
s++;
}
cout<<s;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1808 KiB | ||||
2 | Accepted | 2ms | 2008 KiB | ||||
subtask2 | 30/30 | ||||||
3 | Accepted | 2ms | 2080 KiB | ||||
4 | Accepted | 2ms | 2080 KiB | ||||
5 | Accepted | 2ms | 2204 KiB | ||||
6 | Accepted | 2ms | 2452 KiB | ||||
7 | Accepted | 4ms | 2708 KiB | ||||
subtask3 | 50/50 | ||||||
8 | Accepted | 2ms | 2864 KiB | ||||
9 | Accepted | 2ms | 3116 KiB | ||||
10 | Accepted | 2ms | 3184 KiB | ||||
11 | Accepted | 2ms | 3164 KiB | ||||
12 | Accepted | 2ms | 3152 KiB | ||||
13 | Accepted | 2ms | 3284 KiB | ||||
subtask4 | 20/20 | ||||||
14 | Accepted | 3ms | 3360 KiB | ||||
15 | Accepted | 4ms | 3432 KiB | ||||
16 | Accepted | 4ms | 3508 KiB | ||||
17 | Accepted | 8ms | 3540 KiB | ||||
18 | Accepted | 12ms | 3620 KiB | ||||
19 | Accepted | 14ms | 3628 KiB | ||||
20 | Accepted | 17ms | 3900 KiB |