![[C++] 백준 5단계 - 11720번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcFUtXT%2Fbtr7hve2oOJ%2FiKMwrbd1jIq2BVNvjA23iK%2Fimg.png)
문제설명 소스코드 #include #include //stoi()함수를 쓰기위해 using namespace std; int main() { string input; int N; int sum = 0; string tmp; cin >> N; cin >> input; for (int i = 0; i N; for (int i = 0; i > input; sum += input - 48; } cout
![[C++] 백준 5단계 - 11654번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F3y7Ho%2Fbtr7f0mNXE0%2FZJjPUt97SknK6MCq0BKRG1%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { char input; cin >> input; cout
![[C++] 백준 5단계 - 9086번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FKHX9p%2Fbtr7mtgFN0v%2FCXP3yJQ2lkkUd2fIk75Ky1%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int N; string input; cin >> N; for (int i = 0; i > input; cout
![[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