# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1010688 | 2024-06-29T09:34:56 Z | lrancic | Round words (IZhO13_rowords) | C++17 | 1 ms | 604 KB |
#include <iostream> #include <string> int main() { int a[26] = {0}, b[26] = {0}; std::string str1, str2; std::cin >> str1 >> str2; for (char x : str1) a[x-'a']++; for (char x : str2) b[x-'a']++; int ans = 0; for (int i = 0; i < 26; i++) ans += std::min(a[i], b[i]); std::cout << ans << '\n'; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 0 ms | 344 KB | Output is correct |
4 | Correct | 0 ms | 344 KB | Output is correct |
5 | Incorrect | 0 ms | 348 KB | Output isn't correct |
6 | Correct | 0 ms | 348 KB | Output is correct |
7 | Correct | 0 ms | 348 KB | Output is correct |
8 | Incorrect | 1 ms | 344 KB | Output isn't correct |
9 | Incorrect | 1 ms | 348 KB | Output isn't correct |
10 | Incorrect | 0 ms | 348 KB | Output isn't correct |
11 | Incorrect | 0 ms | 348 KB | Output isn't correct |
12 | Correct | 0 ms | 348 KB | Output is correct |
13 | Incorrect | 1 ms | 604 KB | Output isn't correct |
14 | Incorrect | 1 ms | 348 KB | Output isn't correct |
15 | Incorrect | 0 ms | 348 KB | Output isn't correct |
16 | Incorrect | 0 ms | 348 KB | Output isn't correct |
17 | Incorrect | 0 ms | 348 KB | Output isn't correct |
18 | Incorrect | 1 ms | 600 KB | Output isn't correct |
19 | Incorrect | 0 ms | 344 KB | Output isn't correct |
20 | Incorrect | 0 ms | 344 KB | Output isn't correct |
21 | Incorrect | 0 ms | 344 KB | Output isn't correct |
22 | Incorrect | 0 ms | 348 KB | Output isn't correct |
23 | Incorrect | 1 ms | 348 KB | Output isn't correct |
24 | Incorrect | 0 ms | 348 KB | Output isn't correct |
25 | Incorrect | 0 ms | 348 KB | Output isn't correct |