정렬

알고리즘 문제 풀이/1DP_과제(~180615)

180423_10825_국영수

//https://www.acmicpc.net/problem/10825 #include #include #include #include #include using namespace std; struct stu{public: string name; int kor; int eng; int math;}; bool cmp(stu a, stu b){ if(a.kor>b.kor) return true; if(a.kor==b.kor){ if(a.eng b.math) return true; if(a.math==b.math) { if(a.name.compare(b.name) a.name; scanf("%d %d %d", &a.kor..

알고리즘 문제 풀이/1DP_과제(~180615)

180423_11004_K번째 수

//https://www.acmicpc.net/problem/11004 #include #include #include #include using namespace std; int main(){ int n, k; vector v; scanf("%d %d", &n, &k); k--; for(int i=0; i

알고리즘 문제 풀이/1DP_과제(~180615)

180423_11650_좌표 정렬하기

//https://www.acmicpc.net/problem/11650 #include #include #include #include using namespace std; struct xy{ int x; int y;}; bool cmp(xy a, xy b){ if(a.x < b.x) return true; else if(a.x==b.x) return a.y

알고리즘 문제 풀이/1DP_과제(~180615)

180423_10989_수 정렬하기 3

//https://www.acmicpc.net/problem/10989 #include #include using namespace std; int num[10001];int main(){ int n; scanf("%d",&n); int input; for(int i=0; i

bong sue
'정렬' 태그의 글 목록