# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1010698 | 2024-06-29T09:42:14 Z | tarpent | 원형 문자열 (IZhO13_rowords) | C++14 | 1 ms | 348 KB |
#include<bits/stdc++.h> using namespace std; string a,b; int m,pr,od; vector<char> ch; int aa[26] = {0}; int bb[26] = {0}; int main(){ cin>>a>>b; for(int i = 0; i<a.size(); i++){ aa[a[i]-'a']++; } for(int i = 0; i<b.size(); i++){ bb[a[i]-'a']++; } for(int i = 0;i<26; i++) od+=min(aa[i],bb[i]); cout<<od; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 344 KB | Output is correct |
2 | Correct | 0 ms | 344 KB | Output is correct |
3 | Incorrect | 0 ms | 348 KB | Output isn't correct |
4 | Incorrect | 0 ms | 348 KB | Output isn't correct |
5 | Incorrect | 0 ms | 348 KB | Output isn't correct |
6 | Incorrect | 0 ms | 348 KB | Output isn't correct |
7 | Incorrect | 1 ms | 348 KB | Output isn't correct |
8 | Incorrect | 0 ms | 348 KB | Output isn't correct |
9 | Incorrect | 0 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 | 0 ms | 348 KB | Output isn't correct |
14 | Incorrect | 0 ms | 348 KB | Output isn't correct |
15 | Incorrect | 0 ms | 348 KB | Output isn't correct |
16 | Incorrect | 1 ms | 344 KB | Output isn't correct |
17 | Incorrect | 0 ms | 348 KB | Output isn't correct |
18 | Incorrect | 0 ms | 348 KB | Output isn't correct |
19 | Incorrect | 0 ms | 348 KB | Output isn't correct |
20 | Incorrect | 1 ms | 348 KB | Output isn't correct |
21 | Incorrect | 0 ms | 348 KB | Output isn't correct |
22 | Incorrect | 0 ms | 348 KB | Output isn't correct |
23 | Incorrect | 0 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 |