제출 #1010557

#제출 시각아이디문제언어결과실행 시간메모리
1010557bornagRound words (IZhO13_rowords)C++14
28 / 100
1 ms348 KiB
#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 timeMemoryGrader output
Fetching results...