===해제알고리즘/수진&재동===
~cpp #include <iostream> using namespace std; int main() { char input[20]; cin >> input; int i=0; char standard = input[0]; i++; while(input[i] != '\0'){ char c = input[i]; if(isdigit(c) != 0){ if (c == '-') { i++; char c = input[i]; int diff = atoi(&c); cout << (char)((int)standard - diff); } else { int diff = atoi(&c); cout << (char)((int)standard + diff); } } else { cout << c; standard = c; } i++; } cout << endl; return 0; }