摘要: Problem Description Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to 阅读全文
posted @ 2018-08-07 21:40 霜雪千年 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Problem Description 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 阅读全文
posted @ 2018-08-07 20:29 霜雪千年 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Description Bessie hears that an extraordinary meteor shower is coming; reports say that these meteors will crash into earth and destroy anything they 阅读全文
posted @ 2018-08-07 17:04 霜雪千年 阅读(327) 评论(0) 推荐(0) 编辑
摘要: Description 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k, 阅读全文
posted @ 2018-08-07 11:47 霜雪千年 阅读(521) 评论(0) 推荐(0) 编辑
摘要: Problem Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black til 阅读全文
posted @ 2018-08-07 11:36 霜雪千年 阅读(268) 评论(0) 推荐(0) 编辑
摘要: Description 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 阅读全文
posted @ 2018-08-07 10:06 霜雪千年 阅读(124) 评论(0) 推荐(0) 编辑