![[C++] 백준 5단계 - 5622번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FuQrX4%2Fbtr7NQW6sO6%2FAAAAAAAAAAAAAAAAAAAAADJCOzObntNtvD9h--WRJajZXwgI9PerwqpDvaKGOZLc%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3Dit8bETjB9kUrKjGl3UD8r%252BFAhJ8%253D)
문제설명 소스코드 #include using namespace std; int main() { string input; int sum = 0; cin >> input; for (int i = 0; i < input.length(); ++i) { if (input[i] == 'A' || input[i] == 'B' || input[i] == 'C') sum += 3; else if (input[i] == 'D' || input[i] == 'E' || input[i] == 'F') sum += 4; else if (input[i] == 'G' || input[i] == 'H' || input[i] == 'I') sum += 5; else if (input[i] == 'J' || input[i] == 'K' ..
![[C++] 백준 5단계 - 2908번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbaPyPn%2Fbtr7n06XWdR%2FAAAAAAAAAAAAAAAAAAAAAPd0mgtq5tpH4eJQCHYtPo4Lxf-3drZb4R-gUeYBKn4V%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DDBJYEca5g0eLMce1Biyu7TycgtM%253D)
문제설명 소스코드 #include #include using namespace std; int main() { string a; string b; cin >> a >> b; for (int i = 0; i d ? cout
![[C++] 백준 5단계 - 1152번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FcmqdY1%2Fbtr7gQcYCdw%2FAAAAAAAAAAAAAAAAAAAAAAqQ9kJPJ5dOA1klAJJY1T6JdJhQ9oqq7Fo9QF4nyqtJ%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DHnLkf2qIy8tX%252F3WBENHKD2CpJ6w%253D)
문제설명 소스코드 #include #include using namespace std; int main() { string input; int count = 0; getline(cin, input); if (input.empty() || ((input[0] == ' ') && input.length() == 1)) { //문자열이 없거나 있어도 공백을 포함한 1글자라면 0을 출력한다. cout
![[C++] 백준 5단계 - 2675번 문제](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbnspDq%2Fbtr7iK4opde%2FAAAAAAAAAAAAAAAAAAAAAE_6oDslQsT4zQAf6AJ7Ttm44MRGgbKiSfITVLcoa45H%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DkjZD8mMFV8tOmBfBXV8GxgVdK3M%253D)
문제설명 소스코드 #include using namespace std; int main() { int T; int N; string input; cin >> T; for (int i = 0; i > N >> input; for (int j = 0; j < input.length(); ++j) { for (int k = 0; k < N; ++k) cout
![[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%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3Dn1ajnM5C9MDMncEZrVXAH1H7ge4%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%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DjzUyRTcAiNoe7PamCJ38yX6t1Mk%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%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3D%252FyVGWNTGyf88mOHriWPvW0P4DiQ%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%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DJ5nsGnqgnl%252BJUoM5J9hMnC2TBUo%253D)
문제설명 소스코드 #include using namespace std; int main() { int N; string input; cin >> N; for (int i = 0; i > input; cout