# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1010557 | bornag | Round words (IZhO13_rowords) | C++14 | 1 ms | 348 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 <bits/stdc++.h>
using namespace std;
#define ll long long
ll lts[2][30];
string a, b;
int main(){
cin >> a >> b;
for(auto x : a){
lts[0][x-'a']++;
}
for(auto x : b){
lts[1][x-'a']++;
}
ll sol = 0;
for(int i = 0; i < 30; i++) sol+=min(lts[1][i], lts[0][i]);
cout << sol << '\n';
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |