1706 | 2022-12-01 16:17:29 | PalotásMárton | Kvázi-Izogram | cpp14 | Wrong answer 30/100 | 17ms | 3760 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;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1680 KiB | ||||
2 | Accepted | 2ms | 1852 KiB | ||||
subtask2 | 30/30 | ||||||
3 | Accepted | 2ms | 2052 KiB | ||||
4 | Accepted | 2ms | 2252 KiB | ||||
5 | Accepted | 2ms | 2504 KiB | ||||
6 | Accepted | 2ms | 2536 KiB | ||||
7 | Accepted | 4ms | 2532 KiB | ||||
subtask3 | 0/50 | ||||||
8 | Wrong answer | 2ms | 2784 KiB | ||||
9 | Wrong answer | 2ms | 2988 KiB | ||||
10 | Wrong answer | 2ms | 3112 KiB | ||||
11 | Wrong answer | 2ms | 3364 KiB | ||||
12 | Wrong answer | 2ms | 3436 KiB | ||||
13 | Wrong answer | 2ms | 3504 KiB | ||||
subtask4 | 0/20 | ||||||
14 | Wrong answer | 3ms | 3516 KiB | ||||
15 | Wrong answer | 4ms | 3520 KiB | ||||
16 | Wrong answer | 4ms | 3592 KiB | ||||
17 | Wrong answer | 8ms | 3596 KiB | ||||
18 | Wrong answer | 13ms | 3592 KiB | ||||
19 | Wrong answer | 16ms | 3684 KiB | ||||
20 | Wrong answer | 17ms | 3760 KiB |