strfry
[BaekJoon] 백준 11328번 Strfry
백준 11328 Strfry 문제 https://www.acmicpc.net/problem/11328 내 코드 -memset을 잘못써서 계속 오류.. 초기화 할때는 memset사용 자제하기 #include #include "string" using namespace std; int main(void) { ios::sync_with_stdio(false); cin.tie(0); int n = 0; cin >> n; int length = 'z' - 'a' + 1;//알파벳 개수 int *cntA = new int[length]; int *cntB = new int[length]; while (n--) { string a, b; cin >> a >> b; //cntA, cntB를 0으로 초기화 for (in..