上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 68 下一页
摘要: Game Problem Description Bob and Alice are playing a new game. There are n boxes which have been numbered from 1 to n. Each box is either empty or con 阅读全文
posted @ 2017-02-16 08:21 勿忘初心0924 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Queuing Problem Description Queues and Priority Queues are data structures which are known to most computer scientists. The Queue occurs often in our 阅读全文
posted @ 2017-02-16 07:40 勿忘初心0924 阅读(258) 评论(0) 推荐(0) 编辑
摘要: The Balance Problem Description Now you are asked to measure a dose of medicine with a balance and a number of weights. Certainly it is not always ach 阅读全文
posted @ 2017-02-16 07:34 勿忘初心0924 阅读(230) 评论(0) 推荐(0) 编辑
摘要: A Very Simple Problem Problem Description This is a very simple problem. Given three integers N, x, and M, your task is to calculate out the following 阅读全文
posted @ 2017-02-16 01:48 勿忘初心0924 阅读(191) 评论(0) 推荐(0) 编辑
摘要: #define is unsafe Problem Description Have you used #define in C/C++ code like the code below?#include <stdio.h>#define MAX(a , b) ((a) > (b) ? (a) : 阅读全文
posted @ 2017-02-15 02:34 勿忘初心0924 阅读(345) 评论(0) 推荐(0) 编辑
摘要: Stars Problem Description Yifenfei is a romantic guy and he likes to count the stars in the sky.To make the problem easier,we considerate the sky is a 阅读全文
posted @ 2017-02-14 21:58 勿忘初心0924 阅读(970) 评论(0) 推荐(0) 编辑
摘要: 推箱子 Problem Description 推箱子是一个很经典的游戏.今天我们来玩一个简单版本.在一个M*N的房间里有一个箱子和一个搬运工,搬运工的工作就是把箱子推到指定的位置,注意,搬运工只能推箱子而不能拉箱子,因此如果箱子被推到一个角上(如图2)那么箱子就不能再被移动了,如果箱子被推到一面墙 阅读全文
posted @ 2017-02-14 09:15 勿忘初心0924 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 无题 Problem Description 就要复试了,外地的考生都要在学校附近住宾馆了。假设在学校附近有C家宾馆,并且这些宾馆只有单人房,而每家宾馆的价格不一样,学生们都想找价格便宜的住,所以现在需要你的帮助,当有学生需要住宾馆的时候,告诉他哪个宾馆还有空的房间并且价格最便宜。而且有一个要求,同 阅读全文
posted @ 2017-02-14 05:50 勿忘初心0924 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 引自:http://blog.csdn.net/acmmaxx/article/details/18409701 逆元: 若,b*b1 % c == 1 则,b1称为b模c的乘法逆元。 在ACM中,许多除法取模都要用到求逆元。 但是,逆元,为什么能给我们带来 ( a/b ) % c == ( a*b 阅读全文
posted @ 2017-02-14 05:30 勿忘初心0924 阅读(5413) 评论(0) 推荐(0) 编辑
摘要: Perfect Squares Problem Description A number x is called a perfect square if there exists an integer b satisfying x=b^2. There are many beautiful theo 阅读全文
posted @ 2017-02-14 05:22 勿忘初心0924 阅读(454) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 68 下一页