목록Algorithm/문자열 (2)
:: ADVANCE ::
BAEKJOON ONLINE JUDGE 9935번 문자열 폭발 https://www.acmicpc.net/problem/9935 풀이 입력 받은 문자열을 하나씩 검사하면서 폭발 문자열과 일치할 경우 stack에 넣고 비교괄호 비교 문자와 비슷하게 풀면 된다. 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081#include #include #include using namespace std; char input[1000010];char boom[40];int inputsize, boo..
ALGOSPOT 문자열 암호화 https://www.algospot.com/judge/problem/read/ENCRYPT 123456789101112131415161718192021#include int main(void){ int t, i; scanf("%d", &t); while (t--) { char input[110] = { 0, }; scanf("%s", input); for (i = 0; input[i]; i += 2) printf("%c", input[i]); for (i = 1; input[i]; i += 2) printf("%c", input[i]); printf("\n"); } return 0;}Colored by Color Scriptercs