摘要: 推荐博客 :string 写的大数加法 : http://www.cnblogs.com/duanguyuan/p/3285836.html 阅读全文
posted @ 2017-10-26 22:10 楼主好菜啊 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将 阅读全文
posted @ 2017-10-26 19:01 楼主好菜啊 阅读(376) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You m 阅读全文
posted @ 2017-10-26 18:57 楼主好菜啊 阅读(293) 评论(0) 推荐(0) 编辑
摘要: Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which the 阅读全文
posted @ 2017-10-26 18:05 楼主好菜啊 阅读(197) 评论(0) 推荐(0) 编辑
摘要: Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a numb 阅读全文
posted @ 2017-10-26 17:21 楼主好菜啊 阅读(1227) 评论(0) 推荐(0) 编辑