题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5009题目意思:给出两个mass:x 
和 y,问如何将其中一个 mass 一分为二(当然分完之后它们的和要等于原来的mass,或x 或 y),使得利用这三个mass 可称...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 16:32:19   
                                阅读次数:
405
                             
                    
                        
                            
                            
                                2014-04-28 
23:28题目:给定一个数字,用英语把它读出来。解法:ZOJ上有相反的题目。如果我要用中文读书来呢?代码: 1 // 17.7 Read an integer 
in English. 2 #include 3 #include 4 using namespace s...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 15:29:44   
                                阅读次数:
423
                             
                    
                        
                            
                            
                                点击打开链接
Modular Inverse
Time Limit: 2 Seconds      Memory Limit: 65536 KB
The modular modular multiplicative inverse of an integer a modulo m is an integer x such that a-1≡x (mod m).
 This is...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:15:22   
                                阅读次数:
326
                             
                    
                        
                            
                            
                                这题我很二的折腾了一下午,唉,还是太弱了。这题的关键在于标记的更新与更新每个点的权值,更新标记我很快就写好了,思路很清晰,但是查找答案就头晕了,在处理下传标记、更新权值中纠结。。。。这题我用sum来记录一段区间内1的个数,lest记录该区间从左往右连续的1的个数,rest记录该区间从右往左连续的1的...
                            
                            
                                分类:
其他好文   时间:
2014-04-27 22:01:03   
                                阅读次数:
549