摘要: 描述很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。这让很多学生很反感。不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 输入本题目包含多组测试,请处理到文件结束。在每个测试的第一行,有两个正整数 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 阅读全文
posted @ 2014-01-28 19:13 chen2013 阅读(229) 评论(0) 推荐(0)
摘要: 描述 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... 阅读全文
posted @ 2014-01-28 12:57 chen2013 阅读(205) 评论(0) 推荐(0)
摘要: 描述 有N个比赛队(1#include #include #include using namespace std;#define MAXN 505int n,m,cnt;int head[MAXN];int indgree[MAXN];int flag[MAXN];struct EdgeNode{... 阅读全文
posted @ 2014-01-28 10:50 chen2013 阅读(241) 评论(0) 推荐(0)
摘要: 描述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... 阅读全文
posted @ 2014-01-28 08:52 chen2013 阅读(407) 评论(0) 推荐(0)