摘要: 正整数A的“DA(为1位整数)部分”定义为由A中所有DA组成的新整数PA。例如:给定A = 3862767,DA = 6,则A的“6部分”PA是66,因为A中有2个6。 现给定A、DA、B、DB,请编写程序计算PA + PB。 输入格式: 输入在一行中依次给出A、DA、B、DB,中间以空格分隔,其中 阅读全文
posted @ 2018-04-11 21:24 还是说得清点吧 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 题目描述 输入描述: 输出描述: 输入例子: 输出例子: 以上是我第一次想的,不知道哪里出错了,希望看到的各位帮忙review一下~~ 接下来是参考牛客某童鞋写的: 阅读全文
posted @ 2018-04-11 20:30 还是说得清点吧 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 题目描述 输入描述: 输出描述: 输入例子: 输出例子: 阅读全文
posted @ 2018-04-11 15:14 还是说得清点吧 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 题目描述 输入描述: 输出描述: 输入例子: 输出例子: 我觉得PAT乙级这些题审题真的太重要了。。。 阅读全文
posted @ 2018-04-11 12:20 还是说得清点吧 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 题目描述 输入描述: 输出描述: 输入例子: 输出例子: 阅读全文
posted @ 2018-04-11 10:34 还是说得清点吧 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 实习上班好累哇~_~刷些简单的~~ 题目描述 输入描述: 输出描述: 输入例子: 输出例子: 阅读全文
posted @ 2018-04-10 21:42 还是说得清点吧 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime complex 阅读全文
posted @ 2018-03-29 21:08 还是说得清点吧 阅读(183) 评论(0) 推荐(0) 编辑
摘要: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul 阅读全文
posted @ 2018-03-29 19:48 还是说得清点吧 阅读(809) 评论(0) 推荐(0) 编辑
摘要: Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. Not 阅读全文
posted @ 2018-03-28 22:11 还是说得清点吧 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexi 阅读全文
posted @ 2018-03-28 21:09 还是说得清点吧 阅读(94) 评论(0) 推荐(0) 编辑