The King Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 7499 Accepted: 4060 Description Once upon a time in a country far away lived a kin ...
                            
                            
                                分类:
其他好文   时间:
2017-03-20 18:41:40   
                                阅读次数:
207
                             
                         
                    
                        
                            
                            
                                    思路: 简单贪心,每次选择性价比最高的。 实现: ...
                            
                            
                                分类:
其他好文   时间:
2017-03-19 11:43:05   
                                阅读次数:
128
                             
                         
                    
                        
                            
                            
                                    Problem C: The Dragon of Loowater Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem. The shores of Rellau Cre ...
                            
                            
                                分类:
其他好文   时间:
2017-03-12 23:29:20   
                                阅读次数:
235
                             
                         
                    
                        
                            
                            
                                UVA 11292 The Dragon of Loowater(简单贪心) 题意: n条恶龙,m个勇士,用勇士来杀恶龙。一个勇士只能杀一个恶龙。而且勇士只能杀直径不超过自己能力值的恶龙。每个勇士需要支付能力值一样的金币。问杀掉所有恶龙需要的最少金币。 UVA 11729 Commando War( ...
                            
                            
                                分类:
其他好文   时间:
2017-03-01 00:06:01   
                                阅读次数:
310
                             
                         
                    
                        
                            
                            
                                    简单贪心。 按分值排序,一个一个取,不能取的对答案就作出了贡献。 ...
                            
                            
                                分类:
其他好文   时间:
2016-05-02 16:53:22   
                                阅读次数:
197
                             
                         
                    
                        
                            
                            
                                简单贪心,每次合并长度最小的两段,优先级队列维护一下。 #include<cstdio> #include<cstring> #include<cmath> #include<queue> #include<algorithm> using namespace std; const int maxn
                            
                            
                                分类:
其他好文   时间:
2016-03-11 13:56:10   
                                阅读次数:
106
                             
                         
                    
                        
                            
                            
                                简单贪心。注意输出格式,每到80个字符就换一行。 #include<cstdio> #include<cstring> #include<cmath> #include<stack> #include<algorithm> using namespace std; const int maxn =
                            
                            
                                分类:
其他好文   时间:
2016-03-10 20:15:31   
                                阅读次数:
158