Task: | Sanalista |
Sender: | lady-stardust |
Submission time: | 2020-09-28 00:12:36 +0300 |
Language: | C++ (C++17) |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | RUNTIME ERROR | 0 |
test | verdict | time | |
---|---|---|---|
#1 | RUNTIME ERROR | 0.01 s | details |
#2 | RUNTIME ERROR | 0.01 s | details |
#3 | RUNTIME ERROR | 0.01 s | details |
Code
#include <bits/stdc++.h> using namespace std; vector<int> kirjaimet(100); int main() { int n; cin >> n; int t = 0; for (int i = 0; i < n; i++) { string sana; cin >> sana; for (int j = 0; j < 100; j++) { kirjaimet[j] = 0; } for (auto c : sana) { kirjaimet[c]++; } bool skip = false; for (auto x : kirjaimet) { if (x % 2 != 0) { skip = true; continue; } } if (skip) continue; t++; } cout << t; return 1; }
Test details
Test 1
Verdict: RUNTIME ERROR
input |
---|
1000 korvata sopimusaika nuhatartunta korttiautomaatti ... |
correct output |
---|
15 |
user output |
---|
549 |
Test 2
Verdict: RUNTIME ERROR
input |
---|
1000 pub hansikaslokero erikoisvalmisteinen unijukka ... |
correct output |
---|
42 |
user output |
---|
536 |
Test 3
Verdict: RUNTIME ERROR
input |
---|
1000 haapalastu toipumisaika mustalaiskieli taidelainaamo ... |
correct output |
---|
70 |
user output |
---|
548 |