2018年3月25日
摘要: 转自:https://www.nowcoder.com/discuss/70304?type=0&order=0&pos=5&page=1 阅读全文
posted @ 2018-03-25 14:45 北海盗 阅读(915) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h>using namespace std;/*在一大串数字和字符中,输出最大的数字串样例:输入:helloworld123heilllljsahkjfha1456872输出:1456872*/int main(){ long max = 0; strin 阅读全文
posted @ 2018-03-25 12:44 北海盗 阅读(474) 评论(0) 推荐(0) 编辑
摘要: /*今天头条2018春招笔试题在n个元素的数组中,找到差值为k的数字对去重后的个数输入描述:第一行,n和k,n表示数字个数,k表示差值第二行,n个正整数。示例1:输入:5 21 5 3 4 2输出:3示例2:输入:6 21 5 3 3 4 2输出:3示例3:输入:4 01 1 1 1输出:1*/// 阅读全文
posted @ 2018-03-25 10:14 北海盗 阅读(1381) 评论(0) 推荐(0) 编辑