- 博客(13)
- 资源 (4)
- 收藏
- 关注
原创 NOIP 2011 Day1 Problem3
谢谢 Vfleaking 的大力支持!#include #include #include #include #include using namespace std;const int N = 7, M = 5;const int MaxDepth = 5;int a[N][M];int depth;bool successed = false;struct s
2011-11-20 17:08:18 266
原创 NOIP 2011 Day2 Problem3 (调试中)
#include#define MAXN 1010#define max(a,b) (a>b?a:b)int arrive[MAXN],last[MAXN],dis[MAXN],range[MAXN],num[MAXN];int main(){ int m,n,k,sum=0; freopen("bus.in","r",stdin); freopen("bus.out","w",s
2011-11-20 17:00:57 346
原创 NOIP 2011 Day2 Problem2
#include#define max(a,b) (a>b?a:b)long long abs(long long x){ if(x>0) return x; else return (-1)*x;}struct node{ int weight; int value;}a[200010],total[200010];struct note{
2011-11-20 16:58:22 312 1
原创 NOIP 2011 Day2 Problem1
#include#define min(a,b) (a>b?b:a)int zs[]={0,2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,1
2011-11-20 16:56:42 304 1
原创 NOIP 2011 Day1 Problem2
#include#includeusing namespace std;struct node{ int color; int cost;}a[200010];int number[60],number1[60];int main(){ freopen("hotel.in","r",stdin); freopen("hotel.out","w",st
2011-11-20 16:54:33 308 1
原创 NOIP 2011 Day1 Problem1
#includestruct node{ int start_x; int start_y; int end_x; int end_y;}a[10010];int main(){ freopen("carpet.in","r",stdin); freopen("carpet.out","w",stdout); int n;
2011-11-20 16:49:05 262
原创 POJ 1789
超时。。。。。。#include #define MAX 99999int a[201][201];int main(){ int que[201],top=0,book[201]={0},min,min1,min2,all=0,n,i,j,k; ch
2011-10-17 09:41:20 205
原创 ZOJ 1093
#include#includeusing namespace std;struct node{ int x;int y;int z;}a[200],temp;int main(){ int now,max,p,q,r,n,i,j,c_number=
2011-10-16 15:25:50 334
原创 ZOJ 1089
#include#includeusing namespace std;int main(){ int i,j,k,n,p,q,r,a[50],line=0; while(1) { scanf("%d",&n); i
2011-10-16 15:19:13 241
原创 ZOJ 1082(POJ 1125)
#include#define MAX 999999int a[101][101];int main(){ int n,i,j,p,k,min,min1,max,flag; while(1) { scanf("%d",&n);
2011-10-16 15:15:01 276
原创 RQNOJ 34
尚在调试中。。。。。#include struct note{ int x; int y; int s;};int main(){ struct note que[2501]; int a[51][51]={0},book[
2011-10-16 14:17:12 267
原创 POJ 3615
尚在调试中。。。。。#include#include#define MAX 299999999using namespace std;long long a[301][301];int main(){ int m,n,t; int i,j,k;
2011-10-16 14:15:49 225
原创 POJ 1789
尚在调试中。。。。。#include#include#includeusing namespace std;struct node{ int x,y,len;}e[1000];int f[100]={0},n,m,k,sum;int cmp(con
2011-10-16 14:14:22 214
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人