摘要: 哪里不对??有重复时注意排名顺序。 1 2 3 3 5 不是 1 2 3 3 4 。。。。。#includetypedef struct tagStudent{ char id[7]; int grades[4]; //acme int ranks[4]; //acme}Student;typedef int (*CmpFun)(const void *a,const void *b);int cmpa(const void *a ,const void *b){ Student* sa = (Student*)a; Student* sb = (Studen... 阅读全文
posted @ 2013-07-09 17:51 summer_zhou 阅读(300) 评论(0) 推荐(0)
摘要: Q:Areversible primein any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its reverse 37 is also a prime.Now given any two positive integers N (1#includeint isPrime(int n){ int i; if(n==0||n= 阅读全文
posted @ 2013-07-09 10:26 summer_zhou 阅读(326) 评论(0) 推荐(0)