摘要:
Parentheses 题目描述 Dave loves strings consisting only of '(' and ')'. Especially, he is interested in balanced strings. Any balanced strings can be cons 阅读全文
摘要:
题目描述 The people of a certain kingdom make a revolution against the bad government of the princess. The revolutionary army invaded the royal palace in 阅读全文
摘要:
题目描述 Given a positive integer k, we define a rooted tree to be k-perfect, if and only if it meets both conditions below:•Each node is either a leaf no 阅读全文
摘要:
题目描述 正整数 x 的约数是能整除x的正整数,其约数的个数记为div(x),例如div(10)=4。设 a 和 b 是两个正整数,找出 a 和 b 之间(包含a,b)约数个数最多的数 x 的约数个数 输入 两个正整数a和b,(1<=a<=b<=1e5) 输出 一个正整数表示答案。 样例输入 样例输 阅读全文