题目比较简单,但作为长久不写题之后的热身题还是不错的。统计每组朋友的朋友圈的大小。如果a和b是朋友,这个朋友圈的大小为2,如果b和c也是朋友,那么a和c也是朋友,此时这个朋友圈的大小为3。输入t,表示接下来有t组数据。每组数据有n组朋友关系。接下来n行,每行一组朋友关系,然后输出这组朋友的朋友圈大小...
                            
                            
                                分类:
其他好文   时间:
2015-07-16 13:55:40   
                                阅读次数:
85
                             
                    
                        
                            
                            
                                Math is very important, for those who are also in school, make sure you will learn more about math.Salmon and Cat are good friends.Today Salmon ask Ca...
                            
                            
                                分类:
其他好文   时间:
2015-07-15 22:41:15   
                                阅读次数:
216
                             
                    
                        
                            
                            
                                Problem Description
There are n men ,every man has an ID(1..n).their ID is unique. Whose ID is i and i-1 are friends, Whose ID is i and i+1 are friends. These n men stand in line. Now we select an ...
                            
                            
                                分类:
其他好文   时间:
2015-07-14 13:38:29   
                                阅读次数:
82
                             
                    
                        
                            
                            
                                DescriptionPasha decided to invite his friends to a tea party. For that occasion, he has a large teapot with the capacity of w milliliters and 2n tea ...
                            
                            
                                分类:
其他好文   时间:
2015-07-13 15:55:43   
                                阅读次数:
94
                             
                    
                        
                            
                            
                                题目连接http://acm.hdu.edu.cn/showproblem.php?pid=1213How Many TablesDescriptionToday is Ignatius' birthday. He invites a lot of friends. Now it's dinner ...
                            
                            
                                分类:
其他好文   时间:
2015-06-29 13:03:41   
                                阅读次数:
109
                             
                    
                        
                            
                            
                                package com.billstudy.mr.friends;
import java.io.IOException;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs....
                            
                            
                                分类:
其他好文   时间:
2015-06-26 09:21:03   
                                阅读次数:
107
                             
                    
                        
                            
                            
                                Description
Emma and Eric are moving to their new house they bought after returning from their honeymoon. Fortunately, they have a few friends helping them relocate. To move the furniture, they onl...
                            
                            
                                分类:
其他好文   时间:
2015-06-23 18:05:04   
                                阅读次数:
100
                             
                    
                        
                            
                            
                                1106. Two Teams
Time limit: 1.0 second
Memory limit: 64 MB
The group of people consists of N members. Every member has one or more friends in the group. You are to write program that divides ...
                            
                            
                                分类:
其他好文   时间:
2015-06-20 11:56:45   
                                阅读次数:
138
                             
                    
                        
                            
                            
                                HDU 5119 Happy Matt Friends(DP)...
                            
                            
                                分类:
移动开发   时间:
2015-06-16 23:02:58   
                                阅读次数:
149
                             
                    
                        
                            
                            
                                Friends Find New Friends Poke A Friend ...
                            
                            
                                分类:
Web程序   时间:
2015-06-16 22:40:31   
                                阅读次数:
246