![[C++] 백준 8단계 - 2745번 문제 (진법 변환)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fcybm4O%2FbtsbRzY9LKu%2FpuYuUINqHuM610mLdsVVw1%2Fimg.png)
문제설명 소스코드 #include #include #include using namespace std; int main() { string N; int B; int result = 0; string dchar = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; cin >> N >> B; for (int i = 0; i < N.length(); ++i) { int d = dchar.find(N[i]); result += d * pow(B, N.length() - 1 - i); } cout
![[C++] 백준 - 4470번 문제 (줄 번호)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FducBaO%2FbtsbT1zLYc4%2FwTdGIWwd1DLzK4wi3pduaK%2Fimg.png)
문제설명 소스코드 #include #include using namespace std; int main() { int N; string input; cin >> N; cin.ignore(); for (int i = 0; i < N; ++i) { getline(cin, input); cin.clear(); cout
![[C++] 백준 7단계 - 2563번 문제 (색종이)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcdQNkS%2FbtsbDF4UWCu%2FmidWlJmz4B2ZA6QMu6Bhjk%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int whitepaper[100][100] = { 0 }; int N; int row; int col; int total = 0; cin >> N; for (int i = 0; i > row >> col; for (int j = row; j col; for (int j = ro..
![[C++] 백준 7단계 - 10798번 문제 (세로읽기)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Febs3NM%2Fbtsa9Kypb0A%2FALLNyTVkoGCgeqF6GyVCc1%2Fimg.png)
문제설명 소스코드 #include #include using namespace std; int main() { string arr[5]; for(int i = 0; i > arr[i]; for (int i = 0; i i) cout
![[C++] 백준 7단계 - 2566번 문제 (최댓값)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbHnDEA%2FbtsaVdCcD42%2FTn2AzJNky8W8n41V3XTjV1%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int arr[9][9]; int input; int max = -1; int x; int y; for (int i = 0; i > input; arr[i][j] = input; if (arr[i][j] > max) { max = arr[i][j]; x = i; y = j; } } } cout
![[C++] 백준 7단계 - 2738번 문제 (행렬 덧셈)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F1cEj0%2FbtsayU4Fc5b%2FTAdJKvbklVYv7k6tw3xuh0%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int N; int M; cin >> N >> M; int** arr = new int* [N]; //2차원 배열 동적할당을 위한 더블 포인터 선언 for (int i = 0; i > arr[i][j]; //첫 ..
![[C++] 백준 6단계 - 25206번 문제 (너의 평점은)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fw0Qg9%2FbtsaKx8ef97%2Fp6HKzxxL2aJeLSBcHdY2jK%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { string majorName; double avg = 0; float sumGrade = 0; double score[20]; float grade[20]; string input; for (int i = 0; i > majorName >> grade[i] >> input; if (input == "A+") score[i] = 4.5; else if (input == "A0") score[i] = 4.0; else if (input == "B+") score[i] = 3.5; else if (input == "B0") score[i] = 3.0; else if (input ==..
![[C++] 백준 6단계 - 1316번 문제 (그룹 단어 체커)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fbgtku5%2Fbtsaw9lyVgU%2F5t7aeZ3QzgQwe9V3QcSTK1%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { string input; int N; int count = 0; cin >> N; for (int i = 0; i > input; for (int j = 0; j < input.length(); ++j) { for (int u = 0; u < j; ++u) { if ((input[j] == input[u]) && (input[j] != input[j - 1])){ TF = false; break; } } } if (TF) ++count; } cout