2015年3月2日
摘要:
#include#include#includeusing namespace std;struct Student{ int ID; int score[6]; int perfect; int sum; int rank;}S[10066];int p[6]; //1-5存题号1...
阅读全文
posted @ 2015-03-02 11:20
Evence
阅读(111)
推荐(0)
2015年3月1日
摘要:
#include#include#includeusing namespace std;struct Person{ char name[10]; int age,money;}P[100010];bool cmp(Person a,Person b){ if(a.money!=b.money...
阅读全文
posted @ 2015-03-01 22:47
Evence
阅读(111)
推荐(0)
摘要:
#include#include#includeusing namespace std;struct Student{ char ID[10]; char name[10]; int gread;}STU[100010];bool cmp1(Student a,Student b){ ret...
阅读全文
posted @ 2015-03-01 20:42
Evence
阅读(130)
推荐(0)
摘要:
#include#include //【warning】刚开始少了这个头文件,但是VS2010中被系统自动优化没有察觉#includeusing namespace std;struct Student{ char ID[15]; int score,final_rank,lo...
阅读全文
posted @ 2015-03-01 13:39
Evence
阅读(167)
推荐(0)
2015年2月27日
摘要:
#include#includeusing namespace std;int main(){ int A[10]; fill(A,A+10,0); for(int i=0 ; i0) { printf("%d",i); --A[i]; break; ...
阅读全文
posted @ 2015-02-27 20:59
Evence
阅读(152)
推荐(0)
摘要:
#include#includeusing namespace std;struct cake{ double amount; double sum_price,price;}M[1010];bool cmp(cake a,cake b){ return a.price>b.price;}in...
阅读全文
posted @ 2015-02-27 19:47
Evence
阅读(680)
推荐(0)
2015年2月26日
摘要:
#include#includeusing namespace std;struct Student{ int mID; int grade[4]; //0对应平均A,1对应C,2对应M,3对应E}STU[2010];char course[4]={'A','C','M...
阅读全文
posted @ 2015-02-26 00:57
Evence
阅读(377)
推荐(0)
2015年2月24日
摘要:
#include#includebool isprime(int num) //判断素数的子函数{ int sqr=(int)sqrt(num*1.0); for(int i=2 ; i<sqr+1 ; ++i) if(num%i==0) return 0; re...
阅读全文
posted @ 2015-02-24 13:11
Evence
阅读(241)
推荐(0)
摘要:
#include#includebool isprime(int num){ int sqr=(int)sqrt(num*1.0); //【skill】判断素数只要判断到开平方就可以了 for(int i=2 ; i=l && cnt=r) break; ...
阅读全文
posted @ 2015-02-24 12:55
Evence
阅读(326)
推荐(0)
2015年2月23日
摘要:
#include#include#includeusing namespace std;struct Student{ char mID[10]; int de,cai,sum; int tag; //标明是第几类:1德才都们组,2德胜才,3}STU[100010];bool c...
阅读全文
posted @ 2015-02-23 15:00
Evence
阅读(213)
推荐(0)