1707 | 2022-12-01 16:18:23 | PalotásMárton | Kvázi-Izogram | cpp14 | Wrong answer 30/100 | 17ms | 3724 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;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1684 KiB | ||||
2 | Accepted | 2ms | 1928 KiB | ||||
subtask2 | 30/30 | ||||||
3 | Accepted | 2ms | 2176 KiB | ||||
4 | Accepted | 2ms | 2376 KiB | ||||
5 | Accepted | 2ms | 2616 KiB | ||||
6 | Accepted | 2ms | 2820 KiB | ||||
7 | Accepted | 4ms | 3016 KiB | ||||
subtask3 | 0/50 | ||||||
8 | Wrong answer | 2ms | 3104 KiB | ||||
9 | Wrong answer | 2ms | 3176 KiB | ||||
10 | Wrong answer | 2ms | 3172 KiB | ||||
11 | Wrong answer | 2ms | 3180 KiB | ||||
12 | Wrong answer | 2ms | 3180 KiB | ||||
13 | Wrong answer | 2ms | 3180 KiB | ||||
subtask4 | 0/20 | ||||||
14 | Wrong answer | 3ms | 3272 KiB | ||||
15 | Wrong answer | 4ms | 3292 KiB | ||||
16 | Wrong answer | 4ms | 3260 KiB | ||||
17 | Wrong answer | 8ms | 3228 KiB | ||||
18 | Wrong answer | 13ms | 3272 KiB | ||||
19 | Wrong answer | 16ms | 3524 KiB | ||||
20 | Wrong answer | 17ms | 3724 KiB |