백준 9996번 한국이 그리울 땐 서버에 접속하지 (C++)


백준  9996번 한국이 그리울 땐 서버에 접속하지 (C++)

문제정답 코드#include #include using namespace std; char result[101]; int main() { ios :: sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; cin >> n; string input; cin >>input; string head; string tail; for (int i=0; i < input.size(); i++) { if (input[i] == '*') { head = input.substr(0, i); tail = input.substr(i+1, input.size()); break; } } string cmp; int i; for (i=0; i < n; i++) { cin >> cmp; if (..


원문링크 : 백준 9996번 한국이 그리울 땐 서버에 접속하지 (C++)