# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1010688 | lrancic | Round words (IZhO13_rowords) | C++17 | 1 ms | 604 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |