题意大概为有一个箱子被格成n+1部分,往箱子里随机放m个玩具,问各个部分最终各有几个玩具。#include<iostream>#include<cstdio>#include<string.h>using namespace std;const int maxn=1<<13;struct LINE{ int x_1,y_1,x_2,y_2;}line[maxn];int point[maxn][2];bool judge(int x1,int y1,int x0,int y0,int x2,int y2){ int p=(x1-x0)*(y2-y Read More
posted @ 2013-03-12 13:31 longlongago Views(116) Comments(0) Diggs(0) Edit