轻 风 子 扬
百度首页 | 百度空间
 
文章列表
 
2008-08-25 05:45
    昨晚的雨下的很大, 每次遇到这样的雨, 特别是在夜深人静时, 心中就会有些特别.......

    好强, 聪明, 积极的你, 现在还好吗?

    想起你的音容, 心中就会泛起一股暖暖....

    不知道你是否遇到了知心的人? 希望他不要象一般男孩那么只是哄哄你开心, 骗骗你......
 
2008-08-23 15:57
我使用的dp, o(30000),也可以使用greed, 如果使用greed, 估计要排序, 花费n (long n)

-----------------------------------------------------
#include <stdio.h>
#include <string.h>

long result[30001];

int main ()
{
    long i, n, m, s, e;
    scanf ("%ld", &n);
    memset (result, 0, sizeof (result));
    for (i = 1; i <= n; i ++) {   
 
2008-08-21 00:17
题目大意是由N个人组成一组, 组里面的人至少有一个或一个以上朋友, 把这个组分成两个团队, 第一个团队里面的成员必须有朋友在另外一个团队里面


题目不难, 可是我有几个问题:
           1: 怎么才能使结果不成立, 不是说组里面的人至少有一个或一个以上朋友吗? 怎么会有孤点呢?
           2: 我用BFS着色, 不知道怎么就过不了, wa 在 #20,   郁闷了......下面是过了的代码, 用的
 
2008-08-17 03:55

Backgrounda

Zinium is a miracle of our world - and probably of all the worlds. Found at the close of the XIX-th century during archeological dig on the territory of modern Albania, Zinium belonged to Caesar himself and was lost in his last campaign.
 
2008-08-14 23:29

We consider a geographical map with N countries numbered from 1 to N (0 < N < 99). For every country we know the numbers of other countries which are connected with its border. From every country we can reach to any other one, eventually crossing some borders. Write a program which determines whether it is possible to colour the map only in two colours
 
     
 
 
个人档案
 
421668239
男, 21岁
重庆 沙坪坝区 
上次登录:
12小时前
加为好友
 
   
 
文章分类
 
 
 
算法(13)
 
 
 
 
 
 
 
 
     
 
我的照片秀
 
   
 
最新评论
   
文章评论|照片评论


我这儿也下雨了
 

学习写 in-ex ,^_^
谢谢~~
 

呵呵........
 
 
 
     
 
最近访客
 
 

BluelosのCount

瑛儿妹

hinicke

变成桔子的苹果

liyajun69

完颜清

stablish

changzhiwin
     


©2008 Baidu