自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(6)
  • 收藏
  • 关注

原创 hdu 1879

Kruscal 模板题,此题用输入输出流会超时#include #include #include using namespace std;typedef struct dis{    int x;    int y;    int d;}dis;int father[50005],n;dis D[50005];boo

2016-02-23 20:59:03 169

原创 POJ 1543

http://poj.org/problem?id=1543要想到CUBE最小为6.#include#include#include#includeusing namespace std;int main(){   int n,i,j,a,b,c,d;   scanf("%d",&n);   for(a=6;a   {       for

2016-02-18 15:27:21 112

原创 POJ 1006

http://poj.org/problem?id=1006中国剩余定理解题步骤已知 n%3=2,  n%5=3,  n%7=2,  求n。1.令x= n%3=2 , y= n%5=3 ,z= n%7=2  令5×7×a被3除余1,有35×2=70,即为70;   令3×7×b被5除余1,用21×1=21,即为21;   令3×5×c被7除余1,用15×1=

2016-02-18 10:49:00 96

原创 POJ 2965

http://poj.org/problem?id=2965借用某大神的思想。他的思路是:先看一个简单的问题,如何把'+'变成'-'而不改变其他位置上的状态? 答案是将该位置(i,j)及位置所在的行(i)和列(j)上所有的handle更新一次。 结果该位置被更新了7次,相应行(i)和列(j)的handle被更新了4次,剩下的被更新了2次. 被更新偶数次的hand

2016-02-17 14:52:06 120

原创 Flip Game POJ1753

http://poj.org/problem?id=1753;首先要想到所有情况可以穷尽,可以用枚举。答案范围为0~16步,列出1,2....16步的所有可能,如果存在正确情况就输出结束程序,否则一直枚举到16步为止。核心枚举思想是让每一个棋子都做一次第一步操作的棋子。#include #include using namespace std;int fla

2016-02-17 02:11:41 126

原创 二分初练

DescriptionKarafs is some kind of vegetable in shape of an 1 × h rectangle. Tavaspolis people love Karafs and they use Karafs in almost any kind of food. Tavas, himself, is crazy about Karafs.

2015-07-18 23:24:33 94

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除