일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 스택
- vector
- 알고리즘
- coding
- 개발
- 정석학술정보관
- Stack
- 브루트포스
- 정석
- Computer science
- 백준
- 컴공
- 그래프
- 컴퓨터공학과
- c++
- Operating System
- 문제풀이
- cs
- bfs
- 컴공과
- 너비우선탐색
- 북리뷰
- 구현
- 코테
- 오에스
- 코딩
- DP
- 오퍼레이팅시스템
- OS
- 자료구조
- Today
- Total
목록알고리즘 (210)
Little Jay
#include using namespace std; int main() { int testCase; cin >> testCase; for (int i = 0; i > a >> b; sum1 += a; sum2 += b; } if (sum1 > sum2) { cout
#include using namespace std; int main() { int arr[5][4]; int score = 0; int winner = 0; for (int i = 0; i > arr[i][k]; sum += arr[i][k]; } if (sum > score) { score = sum; winner = i + 1; } } cout
#include using namespace std; int calc(int i) { int a, b, c, d; a = i / 100; b = (i / 10) % 10; c = i % 10; d = a + b * 10 + c * 100; return d; } int main() { int a, b; cin >> a >> b; a = calc(a); b = calc(b); if (a > b) { cout
#include using namespace std; int young(int arr[], int& calls) { int result = 0; for (int i = 0; i > calls; int a[10000]; for (int..
간단한 피보나치 문제 재귀를 아마 못쓰는 문제인 것 같다 #include using namespace std; int main() { int first = 0; int second = 1; int input; cin >> input; for (int i = 1; i < input; i++) { int third = first + second; first = second; second = third; } cout
벡터로 풀기 #include #include #include using namespace std; int main() { int testCase; cin >> testCase; vector arr; int input; for (int i = 0; i > input; arr.push_back(input); } sort(arr.begin(), arr.end()); cout a; int N = 7; for (int i = 0; i > ary[k]; } sort(ary, ary + 10); cout
간단한 입출력 문제 문제가 번역이 안되어 있어서 좀 그랬을 뿐! #include using namespace std; int main() { int num; cin >> num; int count = 0; if (num
백준 문제풀이를 통해 이런것도 있나 싶다 역시 불교국가..... #include #include #include #include using namespace std; int main() { int a; cin >> a; cout
string에서 length메소드 생각하 #include #include using namespace std; int main() { string input; cin >> input; int len = input.length(); cout
vector 기능 중 pair을 처음 써본 문제 pair만 제대로 이해했다면 조금은 쉬운 예제 #include #include #include #include #include using namespace std; int main() { vector inputList; const int INPUT_NUM = 8; int inputNumber; for (int i = 0; i > inputNumber; inputList.push_back(make_pair(inputNumber, i + 1)); } sort(inputList.begin(), inputList.end(), greater()); int sum = 0; vector index; for (int i = 0..