首页 > TAG信息列表 > 1642

CF 1642 E. Anonymity Is Important 线段树 + 离线

文章目录 题意思路 传送门 题意 有 n n n个人,给你 q q q个请求,分以下三种:

PAT (Advanced Level) Practice 1117 Eddington Number (25 分) 凌宸1642

PAT (Advanced Level) Practice 1117 Eddington Number (25 分) 凌宸1642 题目描述: British astronomer Eddington liked to ride a bike. It is said that in order to show off his skill, he has even defined an "Eddington number", E -- that is, the maximum integ

PAT (Advanced Level) Practice 1145 Hashing - Average Search Time (25 分) 凌宸1642

PAT (Advanced Level) Practice 1145 Hashing - Average Search Time (25 分) 凌宸1642 题目描述: The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of integer keys from t

PAT (Advanced Level) Practice 1109 Group Photo (25 分) 凌宸1642

PAT (Advanced Level) Practice 1109 Group Photo (25 分) 凌宸1642 题目描述: Formation is very important when taking a group photo. Given the rules of forming K rows with N people as the following: The number of people in each row must be N/K (round down to the

PAT (Advanced Level) Practice 1120 Friend Numbers (20 分) 凌宸1642

PAT (Advanced Level) Practice 1120 Friend Numbers (20 分) 凌宸1642 题目描述: Two integers are called "friend numbers" if they share the same sum of their digits, and the sum is their "friend ID". For example, 123 and 51 are friend numbers s

DFS 深搜专题 入门典例 -- 凌宸1642

DFS 深搜专题 入门典例 -- 凌宸1642 深度优先搜索 是一种 枚举所有完整路径以遍历所有情况的搜索方法 ,使用 递归 可以很好的实现 深度优先搜索。 1 最大价值 题目描述 ​ 有 n 件物品,每件物品的重量为 w[i] , 价值为 c[i] 。现在需要选出若干件物品放入一个容器为 V 的背包中,使得

PAT (Advanced Level) Practice 1035 Password (20 分) 凌宸1642

PAT (Advanced Level) Practice 1035 Password (20 分) 凌宸1642 题目描述: To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish 1 (one