随笔 - 58  文章 - 1  评论 - 5  阅读 - 10万
06 2013 档案
SDT OJ 1334
摘要:#include #include #include struct stud{ char name[15][10]; int mark[10];}student;int main(){ int i,j,l; for(i=0;i0) { strcpy(student.name[11],student.name[j]); strcpy(student.name[j],student.name[j+1]); strcpy(student.name[j+1],stud... 阅读全文
posted @ 2013-06-26 21:14 lie隼 阅读(153) 评论(0) 推荐(0) 编辑
p283-贪心-事件序列
摘要:#include //#define M 1000#define N 12void out(int select[],int n){ int i; printf("{0"); for(i=1;i=timestart) { select[i]=1; timestart=ent[i][1]; } i++;*/ if(begin[i]>=timestart) { select[i]=1; timestart=end[i]; ... 阅读全文
posted @ 2013-06-22 21:17 lie隼 阅读(265) 评论(0) 推荐(0) 编辑
p281-贪心-删数问题
摘要:#include #include int main(){ int i,s,len; char a[100]; scanf("%s",a); scanf("%d",&s); while(s>0) { i=0; len=strlen(a); while(i<len&&a[i]<=a[i+1]) i++; while(i<len) { a[i]=a[i+1]; i++; } s--; } ... 阅读全文
posted @ 2013-06-22 16:20 lie隼 阅读(140) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示