摘要: 题目: The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region 阅读全文
posted @ 2018-12-26 20:08 星辰大海。 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 题目: Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2: Example 阅读全文
posted @ 2018-12-26 11:18 星辰大海。 阅读(272) 评论(0) 推荐(1) 编辑
摘要: 题目: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note:Assume we are dealing with an environment which 阅读全文
posted @ 2018-12-26 10:51 星辰大海。 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 题目: The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit 阅读全文
posted @ 2018-12-26 10:50 星辰大海。 阅读(202) 评论(0) 推荐(1) 编辑
摘要: 题目: 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. Y 阅读全文
posted @ 2018-12-26 10:49 星辰大海。 阅读(171) 评论(0) 推荐(1) 编辑
摘要: 描述: 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 阅读全文
posted @ 2018-12-26 10:48 星辰大海。 阅读(144) 评论(0) 推荐(1) 编辑
摘要: 题意: 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input: 输入含有多组测试数据。每组数据的第一行是两个正整数,n k,用一个空格隔开, 阅读全文
posted @ 2018-12-26 10:47 星辰大海。 阅读(265) 评论(0) 推荐(1) 编辑