![[C++] 백준 6단계 - 10988번 문제 (팰린드롬인지 확인하기)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fcaio6d%2Fbtr9BIa87sF%2FBTMiBBq9O7srFqNy4vk7b0%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { string input; cin >> input; for (int i = 0; i < input.length() / 2; ++i) { if (input[i] != input[input.length() - 1 - i]) { cout 4번 반복 input[input.length() - 1 - i] 이부분은 i가 증가할 수록 문자열 인덱스의 끝에서 점점 인덱스의 가운데를 비교하게 한다.
![[C++] 백준 - 5524번 문제 (입실 관리)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbXDAip%2Fbtr822ixNbf%2FPi9IuicOKGMArDsjmW42Lk%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int n; string input; cin >> n; for (int i = 0; i > input; for (int i = 0; i < input.length(); i++) { input[i] = tolower(input[i]); } cout
![[C++] 백준 - 5532번 문제 (방학 숙제)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FmxbY7%2Fbtr8LrQxv43%2FVpGHefR26BulxSK9gGysx0%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int L, A, B, C, D, tmp1, tmp2; cin >> L >> A >> B >> C >> D; if (A % C != 0) tmp1 = (A / C) + 1; else tmp1 = A / C; if (B % D != 0) tmp2 = (B / D) + 1; else tmp2 = B / D; if (tmp1 > tmp2) cout
![[C++] 백준 - 2752번 문제 (세수 정렬)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FumTD8%2Fbtr8InAIqHp%2FEA34Ct8752Md7KUuNKtsJ1%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int arr[3]; for (int i = 0; i > arr[i]; } int tmp; for (int i = 0; i arr[j]) { tmp = arr[j]; arr[j] = arr[i]; arr[i] = tmp; } } } for (int i = 0; i < 3; ++i) { cout
![[C++] 백준 - 1264번 문제 (모음의 개수)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FOUD8k%2Fbtr8gyiteg6%2FLbGzQ1mKSeG7PKyPQIEyF0%2Fimg.png)
문제설명 소스코드 #include #include using namespace std; int main() { string input; while (true) { int count = 0; getline(cin, input); for (int i = 0; i < input.length(); ++i) { if (input[i] == 'a' || input[i] == 'e' || input[i] == 'i' || input[i] == 'o' || input[i] == 'u' || input[i] == 'A' || input[i] == 'E' || input[i] == 'I' || input[i] == 'O' || input[i] == 'U') ++count; else if (input[i] == '#') r..
![[C++] 백준 - 25372번 문제 (성택이의 은밀한 비밀번호)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcRqXdq%2Fbtr8fZTRubK%2FUad6O8x0SlKPUKJYl6R7Bk%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int input; string pw; cin >> input; for (int i = 0; i > pw; if (pw.length() >= 6 && pw.length()
![[C++] 백준 5단계 - 2444번 문제(별 찍기 -7)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FdVSOmS%2Fbtr8gwc8AvQ%2FmQmMWIxXk1YCOG6CKzIfr1%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int input; cin >> input; for (int i = 1; i
![[C++] 백준 - 27433번 문제 (팩토리얼 2)(재귀 사용X)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F8FxD3%2Fbtr7Xc5QjFh%2FioC7bJKOfvDfoqT5RYv7j1%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int input; cin >> input; if (input == 0) { cout