![[C++] 백준 11718번 문제 (그대로 출력하기)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FF4yZx%2FbtscCCyQYlK%2FWBGVEB2DbSSaoPydGKPeXK%2Fimg.png)
문제설명 소스코드 #include #include using namespace std; int main() { string input; while (true) { getline(cin, input); if (input == "") return 0; cout
![[C++] 백준 8단계 - 2903번 문제 (중앙 이동 알고리즘)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F0ojvs%2FbtsbUrfcQlN%2FHkUchDNTGseP1hnoJNlZN1%2Fimg.png)
문제설명 소스코드 #include #include using namespace std; int main() { int N; int arr[16] = { 0 }; arr[0] = 0; int dot = 0; cin >> N; for (int i = 1; i 5² -> 9²...로 증가하는 수열이다. 밑인 2, 3, 5, 9...의 수열(a')의 규칙은 아래와 같다. 따라서 밑수를 제곱한 값이 정답이 된다.
![[C++] 백준 8단계 - 2720번 문제 (세탁소 사장 동혁)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fb7JLvc%2FbtsbTWzwiol%2FKBkbPMK4cs4HLnXdrQNgdK%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { int T; int Q; int D; int N; int P; cin >> T; int* arr = new int[T]; for (int i = 0; i > arr[i]; Q = arr[i] / 25; P = arr[i] % 25; D = P / 10; P %= 10; N = P / 5; P %= 5; cout
![[C++] 백준 8단계 - 11005번 문제 (진법 변환 2)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcyzQZQ%2FbtsbTuCUABI%2FHeOIhCRkuBYx2hU7p4D6y1%2Fimg.png)
문제설명 소스코드 #include using namespace std; int main() { long long N; int B; int digits = 0; char arr[20]; string dchar = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; cin >> N >> B; while (N != 0) { arr[digits++] = dchar[N % B]; N /= B; } for (int i = digits - 1; i >= 0; i--) cout
![[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