백준3048 개미 c++


백준3048 개미 c++

#include #include #include #include #include #include #include using namespace std; int n1,n2,t; string str1, str2; string temp; vectorv; int main() { ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin >> n1 >> n2;//각그룹의개미수 cin >> str1;//첫번째그룹 cin >> str2;//두번째그룹 cin >> t;//초 for (int i = str1.size()-1;i>=0;i--)//첫번째그룹 역순으로 temp에 저장 temp += str1[i]; for (int i = 0; i < temp.size(); ..


원문링크 : 백준3048 개미 c++