随笔分类 - 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
阅读全文
摘要: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;/
阅读全文

浙公网安备 33010602011771号