摘要:        
Problem Description Acesrc is a famous mathematician at Nanjing University second to none. Playing with interesting numbers is ...    阅读全文
posted @ 2022-09-20 22:50
老程序员111
阅读(20)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Problem Description When Cuber QQ was chatting happily in a QQ group one day, he accidentally noticed that there was a counterf...    阅读全文
posted @ 2022-09-20 22:50
老程序员111
阅读(17)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Problem Description "Good man never makes girls wait or breaks an appointment!" said the mandarin duck father. Softly touching ...    阅读全文
posted @ 2022-09-20 22:50
老程序员111
阅读(0)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Problem Description "Good man never makes girls wait or breaks an appointment!" said the mandarin duck father. Softly touching ...    阅读全文
posted @ 2022-09-20 22:50
老程序员111
阅读(0)
评论(0)
推荐(0)
        
            
        
        
摘要:        
题目描述 墨墨购买了一套N支彩色画笔(其中有些颜色可能相同),摆成一排,你需要回答墨墨的提问。墨墨会向你发布如下指令: 1、 Q L R代表询问你从第L支画笔到第R支画笔中共有几种不同颜色的画笔。 2、 R P Col 把第P支画笔替换为颜色Col。...    阅读全文
posted @ 2022-09-20 22:50
老程序员111
阅读(31)
评论(0)
推荐(0)
        
            
        
        
摘要:        
【题目描述】 有n个人,编号为1,2,……n,另外还知道存在K个关系。一个关.系的表达为二元组(α,β)形式,表示α,β为同一家庭的成员。 当n,k和k个关系给出之后,求出其中共有多少个家庭、最大的家庭中有多少人? 例如:n=6,k=3,三个关系为(...    阅读全文
posted @ 2022-09-20 22:50
老程序员111
阅读(123)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Problem Description Final Exam is coming! Cuber QQ has now one night to prepare for tomorrow's exam. The exam will be a exam o...    阅读全文
posted @ 2022-09-20 22:50
老程序员111
阅读(138)
评论(0)
推荐(0)
        
            
        
        
摘要:        
【概述】 所谓 k 短路问题,是指给定一个具有 n 个点 m 条边的带正权有向图,再给定起点 S 与终点 T,询问从 S 到 T 的所有权和中,第 k 短的路径的长度。 k 短路问题的解决方法有两种,一种是利用A*算法求解,另一种是利用最短路算法与可持久化堆结...    阅读全文
posted @ 2022-09-20 22:50
老程序员111
阅读(315)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Problem Description In computer science, a heap is a specialized tree-based data structure which is essentially an almost compl...    阅读全文
posted @ 2022-09-20 22:50
老程序员111
阅读(11)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Problem Description For a positive integer n, let's denote function f(n,m) as the m-th smallest integer x that x>n and gcd(x,n)...    阅读全文
posted @ 2022-09-20 22:50
老程序员111
阅读(174)
评论(0)
推荐(0)
        
 
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号