180423_1003_피보나치 함수
//https://www.acmicpc.net/problem/1003 #include using namespace std; int dp[41][2];int main(){ int n; cin >> n; dp[0][0]=1; dp[1][1]=1; for(int i=2; i
//https://www.acmicpc.net/problem/1003 #include using namespace std; int dp[41][2];int main(){ int n; cin >> n; dp[0][0]=1; dp[1][1]=1; for(int i=2; 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