随笔分类 -  greed

摘要:View Code #include<stdio.h>#include<string.h>#include<algorithm>using namespace std;struct node{ int l, r;}p[303];bool vis[303];int n;bool cmp(node a, node b){ return a.r < b.r || a.r == b.r && a.l > b.l;}int main(){ int i, j, k; int ll, rr; while( ~scanf("%d&quo 阅读全文
posted @ 2012-09-16 10:22 To be an ACMan 阅读(176) 评论(0) 推荐(0)
摘要:zstu2511-Delete Number题目来源:http://acmpj.zstu.edu.cn/JudgeOnline/showproblem?problem_id=2511View Code #include<stdio.h>#include<string.h>int main(){ int n,num,T,i; char s[1001]; scanf("%d",&T); while(T--) { scanf("%d%s",&n,s); num=strlen(s); int cnt=0,x=0,y=1;/ 阅读全文
posted @ 2012-05-31 23:07 To be an ACMan 阅读(346) 评论(0) 推荐(0)