摘要: Soon after he decided to design a T-shirt for our Algorithm Board on Free-City BBS, XKA found that he was trapped by all kinds of sugg... 阅读全文
posted @ 2018-01-18 10:07 besti_kuroko 阅读(108) 评论(0) 推荐(0) 编辑
摘要: The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers i... 阅读全文
posted @ 2017-11-12 21:20 besti_kuroko 阅读(101) 评论(0) 推荐(0) 编辑
摘要: FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled ... 阅读全文
posted @ 2017-11-09 20:49 besti_kuroko 阅读(118) 评论(0) 推荐(0) 编辑
摘要: FatMouse has stored some cheese in acity. The city can be considered as a square grid of dimension n:each grid location is labelled (p,q) where 0 0... 阅读全文
posted @ 2017-11-09 20:44 besti_kuroko 阅读(80) 评论(0) 推荐(0) 编辑
摘要: Tom和Jerry正在玩一种Northcott游戏,可是Tom老是输,因此他怀疑这个游戏是不是有某种必胜策略,郁闷的Tom现在向你求救了,你能帮帮他么?游戏规则是这样的: 如图所示,游戏在一个n行m列(1 ≤ n ≤ 1000且2 ≤ m ≤ 100)的棋盘上进行,... 阅读全文
posted @ 2017-10-30 20:26 besti_kuroko 阅读(151) 评论(0) 推荐(0) 编辑
摘要: We all love recursion! Don't we?Consider a three-parameter recursive function w(a, b,c):if a 20 or b > 20 or c > 20, then w(a, b, c)returns: w(20... 阅读全文
posted @ 2017-10-29 15:38 besti_kuroko 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionA message from humans to extraterrestrial intelligence wassent through the Arecibo radio telescope in Puerto Rico on theafternoo... 阅读全文
posted @ 2017-10-28 20:27 besti_kuroko 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionSpeakless很早就想出国,现在他已经考完了所有需要的考试,准备了所有要准备的材料,于是,便需要去申请学校了。要申请国外的任何大学,你都要交纳一定的申请费用,这可是很惊人的。Speakless没有多少钱,总共只攒了n万美元。他将在m个学校中选择若干的(... 阅读全文
posted @ 2017-10-27 19:28 besti_kuroko 阅读(88) 评论(0) 推荐(0) 编辑
摘要: This game is a two-player game and isplayed as follows:1. There are n boxes; each box has its size. The box can hold up tos stones if the size is s... 阅读全文
posted @ 2017-10-26 21:04 besti_kuroko 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 设计函数int sqrt(int x),计算 xx 的平方根。输入格式输入一个 整数 xx,输出它的平方根。直到碰到文件结束符(EOF)为止。输出格式对于每组输入,输出一行一个整数,表示输入整数的平方根。样例输入123456789样例输出111222223实现代码#include#includ... 阅读全文
posted @ 2017-10-24 17:28 besti_kuroko 阅读(165) 评论(0) 推荐(0) 编辑