Task: | Sanalista |
Sender: | Rixu |
Submission time: | 2020-10-02 00:17:51 +0300 |
Language: | C++ (C++17) |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 100 |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.01 s | details |
#2 | ACCEPTED | 0.01 s | details |
#3 | ACCEPTED | 0.01 s | details |
Code
#include <iostream> #include <string> #define unt unsigned int int main() { std::string TEMP; std::getline(std::cin, TEMP); unt length = atoi(TEMP.c_str()); unt out = 0; for(unt i = 0; i < length; i++) { std::string input; std::getline(std::cin, input); bool wm = true; for(unt x1 = 0; x1 < input.length(); x1++) { char X = input[x1]; int count = 0; for(unt x2 = 0; x2 < input.length(); x2++) { if(X == input[x2]) { count++; } } if (count % 2 == 1) { wm = false; } } if (wm) { out++; } } printf("%u", out); return 0; }
Test details
Test 1
Verdict: ACCEPTED
input |
---|
1000 korvata sopimusaika nuhatartunta korttiautomaatti ... |
correct output |
---|
15 |
user output |
---|
15 |
Test 2
Verdict: ACCEPTED
input |
---|
1000 pub hansikaslokero erikoisvalmisteinen unijukka ... |
correct output |
---|
42 |
user output |
---|
42 |
Test 3
Verdict: ACCEPTED
input |
---|
1000 haapalastu toipumisaika mustalaiskieli taidelainaamo ... |
correct output |
---|
70 |
user output |
---|
70 |