180423_3047_ABC
//https://www.acmicpc.net/problem/3047 #include #include using namespace std; int main(){ int order[3]; char abc[3]; int num[3]; for(int i=0; i> num[i]; cin >> abc; for(int i=0; i
//https://www.acmicpc.net/problem/3047 #include #include using namespace std; int main(){ int order[3]; char abc[3]; int num[3]; for(int i=0; i> num[i]; cin >> abc; for(int i=0; i
//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..
//https://www.acmicpc.net/problem/10814#include #include #include #include #include using namespace std; struct cus{ int age; int idx; char *name[20];}; bool cmp(cus a, cus b){ if(a.age < b.age) return true; if(a.age==b.age){ return a.idx
//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