上一页 1 ··· 93 94 95 96 97
摘要: Problem Description You are given three positive integers N,x,y. Please calculate how many permutations of 1∼N satisfies the fo... 阅读全文
posted @ 2022-09-20 22:50 老程序员111 阅读(34) 评论(0) 推荐(0)
摘要: Problem Description String matching is a common type of problem in computer science. One string matching problem is as followin... 阅读全文
posted @ 2022-09-20 22:50 老程序员111 阅读(27) 评论(0) 推荐(0)
摘要: Problem Description A sequence of length n is called a permutation if and only if it's composed of the first n positive integer... 阅读全文
posted @ 2022-09-20 22:50 老程序员111 阅读(40) 评论(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 阅读(34) 评论(0) 推荐(0)
摘要: 【题目描述】 有n个人,编号为1,2,……n,另外还知道存在K个关系。一个关.系的表达为二元组(α,β)形式,表示α,β为同一家庭的成员。 当n,k和k个关系给出之后,求出其中共有多少个家庭、最大的家庭中有多少人? 例如:n=6,k=3,三个关系为(... 阅读全文
posted @ 2022-09-20 22:50 老程序员111 阅读(127) 评论(0) 推荐(0)
摘要: Problem Description You’ve finally got mad at “the world’s most stupid” employees of yours and decided to do some firings. You’... 阅读全文
posted @ 2022-09-20 22:50 老程序员111 阅读(63) 评论(0) 推荐(0)
上一页 1 ··· 93 94 95 96 97