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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 //#define _CRT_SECURE_NO_WARNINGS //#include #include //using namespace std; void quickSort(int low, int high, int* array); int partition(int low, int high, int* array); int main() { int input; scanf("%d", &input); int* number = new int[input]; for (int i = 0; i
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 31 32 33 #include using namespace std; int main() { int N, M; cin >> N >> M; char** ary = new char* [N]; for (int i = 0; i > ary[i]; } int tmp, min = N * M; for (int i = 0; i
123456789101112131415161718192021222324252627282930313233343536373839#include using namespace std; class Person {private: int height, weight, rank;public: Person() { this->height = 0; this->weight = 0; this->rank = 1; } void setInfo(int weight, int height) { this->weight = weight; this->height = height; } static void compare(Person &person1, Person &person2) { if (person1.weight > person2.weight..
12345678910111213141516171819202122232425262728#include #include using namespace std; int main() { int input; cin >> input; for (int i = 0; i > x1 >> y1 >> r1 >> x2 >> y2 >> r2; double length = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)); if (x1 == x2 && y1 == y2) { if (r1 == r2) cout
1 2 3 4 5 6 7 8 9 10 11 #include #define _USE_MATH_DEFINES #include int main() { int rad; scanf("%d", &rad); rad *= rad; printf("%.6f\n%.6f\n", rad * M_PI, (double)rad * 2); } Colored by Color Scripter cs 문제는 쉽게 풀었다. 근데 계속 틀렸단다. 왜???? 출력할 때 자릿수 설정을 안해서 그렇단다.. 아니 애초에 문제에서 오차는 0.0001까지 허용한다고 써놨으면서 %f로 출력하면 틀리고 %.6f로 쓰면 맞는다는게 말이 되나? 참..
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 #include using namespace std; int main() { int a, b, c; cin >> a >> b >> c; while (a != 0 && b != 0 && c != 0) { bool isRight = false; if (a > b && a > c) { if (a * a == b * b + c * c) isRight = true; } else if (b > a && b > c) { if (b * b == a * a + c * c) isRight = true; } else { if (c * c == a * a + b * b) isRigh..
12345678910111213141516171819202122#include using namespace std; int main(){ int x1, x2, x3, y1, y2, y3, x4, y4; cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; if (x1 == x2) x4 = x3; else if (x1 == x3) x4 = x2; else x4 = x1; if (y1 == y2) y4 = y3; else if (y1 == y3) y4 = y2; else y4 = y1; cout
- Total
- Today
- Yesterday
- BaekJoon
- 피보나치
- 오픈소스
- 컨트리뷰톤
- 동적 계획법
- 완전탐색
- 정렬
- c
- c++
- 이분탐색
- 백준
- LG
- 백트래킹
- 브루트포스
- 구현
- 프로그래머스
- DFS
- 인공지능
- DP
- 한화큐셀
- 코딩
- PyPy3
- webOS
- 파이썬
- Dynamic Programming
- BFS
- 플로이드 와셜
- 카카오
- 알고리즘
- 1932
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |