목록2020/07/07 (1)
개인공부용123 프로그래밍 블로그
[백준]boj2941
#include #include using namespace std; int main() { freopen("test.txt", "r", stdin); ios::sync_with_stdio(false); cin.tie(NULL); char str[101]; int cnt = 0; int i = 0; cin >> str; while (i < strlen(str)) { if (str[i] == 'c') { if (str[i + 1] == '=' || str[i + 1] == '-') ++i; } else if (str[i] == 'd') { if (str[i + 1] == '-') ++i; else if (str[i + 1] == 'z' && str[i + 2] == '=') i += 2; } else if..
카테고리 없음
2020. 7. 7. 23:11