摘要: 这篇博客主要参考刘汝佳的《算法竞赛入门经典》。 下面是一个杨辉三角: 我们再把(a+b)n展开,将得到一个关于x的多项式: (a+b)0 = 1 (a+b)1 = a + b (a+b)2 = a2 + 2ab + b2 (a+b)3 = a3 + 3a2b + 3ab2 + b3 (a+b)4 = 阅读全文
posted @ 2018-08-19 20:44 王陸 阅读(4390) 评论(0) 推荐(0) 编辑
摘要: Description A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of knight moves tha 阅读全文
posted @ 2018-08-19 17:28 王陸 阅读(842) 评论(0) 推荐(0) 编辑
摘要: Description A family consisting of father bear, mother bear and son bear owns three cars. Father bear can climb into the largest car and he likes it. 阅读全文
posted @ 2018-08-19 11:06 王陸 阅读(548) 评论(0) 推荐(0) 编辑