![[C++] 백준 5단계 - 2743번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcV2nFJ%2Fbtr7dNVusqz%2FW8Tcc9ghcvKLzl6uIFVusK%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { string input; cin >> input; cout
![[C++] 백준 5단계 - 27866번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fctart1%2Fbtr7dM1v78v%2Fb5y5V7VZQ5FfDuatx8p8v0%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { string input; int n; cin >> input >> n; cout
![[C++] 백준 4단계 - 1546번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FycPII%2Fbtr6QUyTZPo%2FCNESBEtuIBN6VAPiKeGPaK%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int N; int max = 0; double score = 0; cin >> N; double* arr = new double[N]; for (int i = 0; i > arr[i]; if (arr[i] > max) max = arr[i]; } for (int i = 0; i < N; ++i) { if (arr[i] == max) { score += 100; continue; } score += (arr[i] / max) * 100; } cout
![[C++] 백준 4단계 - 10811번 문제 (바구니 뒤집기)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fbw2puW%2Fbtr6N3QTvG9%2Fs00ZfxVblyOAx7MoVqSI60%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int N; int M; cin >> N >> M; int* arr = new int[N]; //동적 할당 int a; int b; for (int i = 0; i > a >> b; for (int j = 0; j > M; int* arr = new int[N]; int a; int b; for (int i = 0; i > a >> b; for (int j = 0; j
![[C++] 백준 4단계 - 3052번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcqIXVQ%2Fbtr6qr5Dd8m%2F0KNP3M8p4L82K4omnPZh5K%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int array[42] = {}; int input; for (int i = 0; i > input; ++array[input % 42]; } int count = 0; for (int i = 0; i 0) ++count; cout
![[C++] 백준 4단계 - 5597번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FE49JT%2Fbtr6eVMXvQb%2FENEGJrmNs4qrIkWhjcQm6K%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int arr[30] = { 0 }; int input = 0; for (int i = 0; i > input; arr[input - 1] = 1; } for (int i = 0; i < 30; ++i) if (arr[i] != 1) cout
![[C++] 백준 4단계 - 10810번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FFA9Uy%2Fbtr5QAoYv1a%2FaHOrJr3IvIVNHsgIHAwh80%2Fimg.png)
문제설명 소스코드 #include using namespace std; int arr[101]; int N, M; int main() { cin >> N >> M; while (M--) { int i, j, k; cin >> i >> j >> k; for (int u = i; u
![[C++] 백준 4단계 - 2562번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fb0JABy%2Fbtr5O9efwMg%2F9VIS56mKzVfJ6RZKthHMM0%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int max = 0; int idx; int arr[9]; for (int i = 0; i > arr[i]; if (arr[i] > max) { max = arr[i]; idx = i; } } cout