摘要:
排队模型先把每个窗口的黄线排满如果还有人的话,前面完事儿一个插入一个。最后把每个队伍的人服务完。时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose a bank has N windows open for service. There is a yellow line in front of the windows ... 阅读全文
posted @ 2015-12-06 10:14
白夜行zz
阅读(182)
评论(0)
推荐(0)
摘要:
It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if we nee... 阅读全文
posted @ 2015-12-06 10:12
白夜行zz
阅读(122)
评论(0)
推荐(0)
摘要:
To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Linear Algebra), and E - Eng... 阅读全文
posted @ 2015-12-06 10:11
白夜行zz
阅读(209)
评论(0)
推荐(0)
摘要:
时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueWith the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams ... 阅读全文
posted @ 2015-12-06 10:07
白夜行zz
阅读(149)
评论(0)
推荐(0)
摘要:
简直是哭着做出来的,起码提交了22遍。创纪录了。。。首先不能像上次那样枚举进制数,那样输入987654321 10 1 10 的话十分钟都算不完,题中只有一个超时很照顾人了。。。考虑近似计算,利用y=a*x^n+b 算出n,进制数如果有,也不会超过n,因此考虑由n向下寻找。注意,进制数不能小于数中最大的数字。如果将两个数字作为字符串输入,注意排除字符串前面的0.时间限制400 ms内存限制6553... 阅读全文
posted @ 2015-12-06 10:06
白夜行zz
阅读(170)
评论(0)
推荐(0)
摘要:
时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors ... 阅读全文
posted @ 2015-12-06 09:59
白夜行zz
阅读(156)
评论(0)
推荐(0)
摘要:
Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1 #include #include using namespace std;vector num;int main(void) { int n; ci... 阅读全文
posted @ 2015-12-06 09:57
白夜行zz
阅读(131)
评论(0)
推荐(0)
摘要:
注意字符串的输入方法char a[100] = { 0 };scanf("%s", &a);时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a non-negative integer N, your task is to compute the sum of all the digits of N, and outp... 阅读全文
posted @ 2015-12-06 09:55
白夜行zz
阅读(190)
评论(0)
推荐(0)
摘要:
注意:1,结构体的应用。2,向量的应用,#include vectorp; 用于不定数目的时候的数组创建3,cin 和cout的使用,#include4,字符串的使用 用#include 可以使用string s;时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAt the beginning of every day, t... 阅读全文
posted @ 2015-12-06 09:55
白夜行zz
阅读(162)
评论(0)
推荐(0)
摘要:
使用map保存树,使用DFS进行树的搜索时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.In... 阅读全文
posted @ 2015-12-06 09:49
白夜行zz
阅读(183)
评论(0)
推荐(0)
浙公网安备 33010602011771号