上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 98 下一页
摘要: A sequence of numbers is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the 阅读全文
posted @ 2019-02-28 08:59 Veritas_des_Liberty 阅读(288) 评论(0) 推荐(0)
摘要: 1091 N-自守数 (15 分) 如果某个数 K 的平方乘以 N 以后,结果的末尾几位数等于 K,那么就称这个数为“N-自守数”。例如 3,而 2 的末尾两位正好是 9,所以 9 是一个 3-自守数。 本题就请你编写程序判断一个给定的数字是否关于某个 N 是 N-自守数。 输入格式: 输入在第一行 阅读全文
posted @ 2019-02-27 12:18 Veritas_des_Liberty 阅读(524) 评论(0) 推荐(0)
摘要: 距离上次我一个人参加PAT考试已经过去快一个学期了,想想上次自己也是搞笑,自己一个人被这个书包就去了ZZ,人生地不熟的,乘坐公交车还坐反了。考完试因为不知道要等到考试结束就可以领取成绩证书,自己连那张不及格的证书都没有领,就急着赶火车回到了学校。因为这个周末就参加考试了,所以考试前做几道题熟悉一下试 阅读全文
posted @ 2019-02-26 18:33 Veritas_des_Liberty 阅读(1052) 评论(0) 推荐(0)
摘要: 记得之前电脑上的那个Ubuntu是去年寒假的时候安装的,算下来自己用Linux也快一年了。虽然在去年暑假的时候我也曾经想过要把Ubuntu升级到18.04可是当时安装了几次都没有成功,自己也就放弃了。于是就用Ubuntu17.10用了将近一年,从刚开始的的小白对linux一窍不通,到现在的大白。在使 阅读全文
posted @ 2019-02-25 21:55 Veritas_des_Liberty 阅读(4018) 评论(0) 推荐(0)
摘要: Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both 阅读全文
posted @ 2019-02-19 23:22 Veritas_des_Liberty 阅读(257) 评论(0) 推荐(0)
摘要: A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the 阅读全文
posted @ 2019-02-19 22:56 Veritas_des_Liberty 阅读(200) 评论(0) 推荐(0)
摘要: A frog is crossing a river. The river is divided into x units and at each unit there may or may not exist a stone. The frog can jump on a stone, but i 阅读全文
posted @ 2019-02-19 22:10 Veritas_des_Liberty 阅读(191) 评论(0) 推荐(0)
摘要: Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target. 阅读全文
posted @ 2019-02-18 00:21 Veritas_des_Liberty 阅读(205) 评论(0) 推荐(0)
摘要: We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron 阅读全文
posted @ 2019-02-17 23:25 Veritas_des_Liberty 阅读(182) 评论(0) 推荐(0)
摘要: Given a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of elements in this subset satisfies: Si % Sj = 0 or 阅读全文
posted @ 2019-02-16 22:59 Veritas_des_Liberty 阅读(191) 评论(0) 推荐(0)
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 98 下一页