![[C++] 백준 5단계 - 10809번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbaplLX%2Fbtr7gycvVpl%2FAAAAAAAAAAAAAAAAAAAAAEa2bx3VlN0PXykQ2V1dSF5VrDggTA-ltEdBKD_5c-mz%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1759244399%26allow_ip%3D%26allow_referer%3D%26signature%3DFHppdbr4cjm6Tq9%252BKy%252BbNF10DuI%253D)
문제설명 소스코드 #include using namespace std; int main() { string input; string alphabet = "abcdefghijklmnopqrstuvwxyz"; cin >> input; for (int i = 0; i < alphabet.length(); ++i) { if (input.find(alphabet[i]) != string::npos) { cout
![[C++] 백준 5단계 - 11720번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FcFUtXT%2Fbtr7hve2oOJ%2FAAAAAAAAAAAAAAAAAAAAACgHMEf9bXpC9xNZk6hd11hpsXz8fPu2yxD4SmHG14wh%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1759244399%26allow_ip%3D%26allow_referer%3D%26signature%3DLsbqvV9bzw1DOwPh8YtjJ5wI4vo%253D)
문제설명 소스코드 #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%2Fdna%2F3y7Ho%2Fbtr7f0mNXE0%2FAAAAAAAAAAAAAAAAAAAAAPiuh-3InMQTBCQEYcos_H-YaalMLQF7WWg1ymSSY1yt%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1759244399%26allow_ip%3D%26allow_referer%3D%26signature%3De7XSx%252FghtLVBbG0a34ZO5dpPoj0%253D)
문제설명 소스코드 #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%2Fdna%2FKHX9p%2Fbtr7mtgFN0v%2FAAAAAAAAAAAAAAAAAAAAAIr-976z_1zbGJynOAXm7HAh9scPdNfoD7-eQ4yLSbUQ%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1759244399%26allow_ip%3D%26allow_referer%3D%26signature%3DXvep5pZEorYUAYj%252FeKykQJ%252Ft188%253D)
문제설명 소스코드 #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%2Fdna%2FcV2nFJ%2Fbtr7dNVusqz%2FAAAAAAAAAAAAAAAAAAAAAMTQKip5NhFRGm0BEonstfudgZsFwy3zNBMRjedG5KjG%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1759244399%26allow_ip%3D%26allow_referer%3D%26signature%3DvTRAZMvI%252F8lx9ps4HYgnBeE5yVM%253D)
문제설명 소스코드 #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%2Fdna%2Fctart1%2Fbtr7dM1v78v%2FAAAAAAAAAAAAAAAAAAAAAMoQUB6WtZAn0NDbOlVUN2lCJJH-4qGhO8jucxfc1ZNk%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1759244399%26allow_ip%3D%26allow_referer%3D%26signature%3DlQmeipA0KZv7xuZdj04bcrfQFlE%253D)
문제설명 소스코드 #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%2Fdna%2FycPII%2Fbtr6QUyTZPo%2FAAAAAAAAAAAAAAAAAAAAADo31NMAtIXemmKeJDa12rvF8TDGxFpVR8W_e6tOaO2Z%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1759244399%26allow_ip%3D%26allow_referer%3D%26signature%3DQrJRVO33Ue5Sp5YQkDsouyOK7fo%253D)
문제설명 소스코드 #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%2Fdna%2Fbw2puW%2Fbtr6N3QTvG9%2FAAAAAAAAAAAAAAAAAAAAAIjTuR0_tPyW6q6H_HXWnmXySqOR8qCOI6exMrZKi5UJ%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1759244399%26allow_ip%3D%26allow_referer%3D%26signature%3Dxhn8s8P25ncLzgCTVL%252BGC0TmL%252F4%253D)
문제설명 소스코드 #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