
二分法与hash
文章平均质量分 74
xieqinghuang
我是长沙理工大学软件工程1101班的学生,向更了解可直接百度Ambition club
展开
-
Pie解题报告
My birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming to my party and each of原创 2012-03-25 20:39:26 · 546 阅读 · 0 评论 -
Expanding Rods解题报告
The input contains multiple lines. Each line of input contains three non-negative numbers: the initial lenth of the rod in millimeters, the temperature change in degrees and the coefficient of heat ex原创 2012-03-25 20:28:53 · 345 阅读 · 0 评论 -
River Hopscotch解题报告
Every year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The excitement takes place on a long, straight river with a ro原创 2012-03-25 20:15:16 · 522 阅读 · 0 评论 -
Monthly Expense解题报告
Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the exact amount of money (1 ≤moneyi ≤ 10,000) that he原创 2012-03-25 19:22:26 · 650 阅读 · 0 评论 -
D - Eqs解题报告
DescriptionConsider equations having the following form: a1x13+ a2x23+ a3x33+ a4x43+ a5x53=0The coefficients are given integers from the interval [-50,50]. It is consider a solution a system原创 2012-03-25 18:19:21 · 452 阅读 · 0 评论 -
A - SnowflakeSnowSnowflakes解题报告
#include#includeconst int MAX=50021;int hash [50022][7],sel[50022],a[100001][7];int main(){ int N,i,j,sum,o1,o3,k; memset(hash,0,sizeof(hash)); memset(sel,0,sizeof(sel)); scanf(原创 2012-03-23 08:51:47 · 529 阅读 · 0 评论 -
F - Babelfish解题报告
DescriptionYou have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them.原创 2012-03-25 18:38:30 · 550 阅读 · 0 评论