6137 - 문자열 생성
문제https://www.acmicpc.net/problem/6137느낀점응용 투포인터 문제, 어렵지 않았다풀이#include #include using namespace std;int main(){ int N; cin >> N; string s = ""; string answer = ""; for (int i = 0; i > c; s += c; } int left = 0, right = N - 1; while (left s[right]) { answer += s[right]; right--; } else { answer += s[left]..
2025.02.25