摘要:
##Problem A 并不知道我为什么wa2的原因是什么..大概就是分情况讨论,当n和k相等时很明显就是1,当n>k时很明显答案就是二,那么n<k的时候,我们算出一共需要多少的数量,然后一排排放,算一下是否整除就行。 ##Problem B 让我们为维护一个通货膨胀率,那么很容易我们可以看得出,所 阅读全文
摘要:
##Problem A 问有多少不同面积的三角形,数据量较小,那么我们暴力扫过去丢set就好了。 ##Problem B 首先我扫完一边后一定是有些位置被站住了,那么根据桶排的思想,每个位置可能存在多个,那么这些多个我们要使它尽可能的多做贡献,就贪心的往后加,最后统计一共有多少位置就可以了。 ##P 阅读全文
摘要:
##题目 Problem Description As we know,the shape of a binary search tree is greatly related to the order of keys we insert. To be precisely: insert a key 阅读全文
摘要:
##题目 Problem Description Sean owns a company and he is the BOSS.The other Staff has one Superior.every staff has a loyalty and ability.Some times Sean 阅读全文
摘要:
##题目 A group of K friends is going to see a movie. However, they are too late to get good tickets, so they are looking for a good way to sit all nearb 阅读全文
摘要:
##题目 In Frobnia, a far-away country, the verdicts in court trials are determined by a jury consisting of members of the general public. Every time a t 阅读全文