![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
选符合条件
埙声
银子金贵,可一旦碰上命了,就如同尘土草芥一般。
展开
-
c++对合数的简单应用
点击打开链接#include #include #include> using namespace std; int s[1000000]; int main() { int n,i,j,l,m,b; while(scanf("%d",&n)!=EOF) { memset(s,0,sizeof(s)); for(i=2;i<=n;原创 2015-01-31 14:27:55 · 1261 阅读 · 0 评论 -
选夫婿
#include #include using namespace std; struct E { char name [40]; int high; int weight; }s[1000]; int cmp(E q,E w) { if(q.high==w.high) return q.weight<w.weight; else return原创 2015-01-24 17:12:29 · 388 阅读 · 0 评论