- 博客(3)
- 收藏
- 关注
转载 写比较函数的标准格式
#include<iostream>#include<algorithm>using namespace std;struct node{ int len,num; string w;}a[25];int cmp(node a,node b){ if(a.len!=b.len) return a.len>b.len; /...
2018-10-02 00:02:00 107
转载 P1056 排座椅
注意输入输出的格式!P1056 排座椅#include <iostream> #include<algorithm>#include<cstdio>using namespace std;int map[10005][10005];struct node{ int num,w;}lie[10005],han[10005];i...
2018-10-01 23:32:00 59
转载 P1579 哥德巴赫猜想(升级版)
https://www.luogu.org/problemnew/show/P1579注意 数组的大小为[0,n)不包括n一下为错误的代码#include<iostream>using namespace std;int is[20005];int n;void init(){ is[1]=1; for(int i=1;i<=n...
2018-09-30 21:12:00 65
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人