摘要:
DescriptionGiven a set of sticks of various lengths, is it possible to join them end-to-end to form a square?InputThe first line of input contains N, ... 阅读全文
摘要:
描述In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjac... 阅读全文
摘要:
描述很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。这让很多学生很反感。不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 输入本题目包含多组测试,请处理到文件结束。在每个测试的第一行,有两个正整数 N 和 M ( 0#include using namespace std;#define lson l,m,rt >1; build(lson); build(rson); PushUP(rt); }void update(int p, int sc, int l, int r, in 阅读全文
摘要:
描述 Dandelion's uncle is a boss of a factory. As the spring festival is coming , he wants to distribute rewards to his workers. Now he has a trouble ab... 阅读全文
摘要:
描述You have n computers numbered from 1 to n and you want to connect them to make a small local area network (LAN). All connections are two-way (that i... 阅读全文
摘要:
描述 You are the owner of SmallCableCo and have purchased the franchise rights for a small town. Unfortunately, you lack enough funds to start your busi... 阅读全文
摘要:
描述Stockbrokers are known to overreact to rumours. You have been contracted to develop a method of spreading disinformation amongst the stockbrokers to... 阅读全文
摘要:
描述 Minya Konka decided to go to Fuzhou to participate in the ACM regional contest at their own expense.Through the efforts, they got a small amount of... 阅读全文