题目 Given two strings S1 and S2, S = S1 – S2 is defined to be the remaining string afer taking all the characters in S2 from S1. Your task is simply to ...
分类:
其他好文 时间:
2020-01-28 21:02:59
阅读次数:
65
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we c ...
分类:
其他好文 时间:
2020-01-28 19:08:30
阅读次数:
82
题目 Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a nu ...
分类:
其他好文 时间:
2020-01-28 19:02:09
阅读次数:
70
原理流程分析 Map端: 文件存储在HDFS中,每个文件切分成多个一定大小(默认128M)的Block(默认3个备份)存储在多个数据节点上,数据格定义以"\n"分割每条记录,以空格区分一个目标单词。 每读取一条记录,调用一次map函数,然后继续读取下一条记录直到split尾部。 map 输出的结果暂 ...
分类:
其他好文 时间:
2020-01-28 16:02:42
阅读次数:
109
题解 利用前缀和维护钻石的价值,然后枚举左端点,二分查找右端点。 代码 #include<bits/stdc++.h> using namespace std; int n,m,pre_sum[100005]; vector<int> ans; void check(int i,int &j,int ...
分类:
其他好文 时间:
2020-01-28 15:33:52
阅读次数:
65
题解 排队模拟。需要注意的是,如果一个人在17:00及以后还没有开始服务,这种情况才输出“Sorry”。一个人在17:00之前已经开始了服务,就算结束服务在17:00之后,这样也是没问题的。 代码 #include<bits/stdc++.h> using namespace std; const ...
分类:
其他好文 时间:
2020-01-28 09:41:55
阅读次数:
66
问题描述:原来在2.2版本中使用autofac作为注入时的管理容器,现在要升级到3.1版本,遇到了很多的问题,各种解析不了。。。 解决方案:最后因为水平太low就放弃了,改用微软自带的容器管理,改造过程中也遇到了一些问题 1、注册顺序需要注意,尤其是有依赖关系的;还有就是注册类型,静态的不能引用会话 ...
分类:
Web程序 时间:
2020-01-27 23:29:49
阅读次数:
238
题解 now - 当前位的数值 left - 在now左边的所有数字 right - 在now右边的所有数字 mul - right的数量级,如 10,100,100 ① 如果 now == 0 ,当now可以为1时,左边的数值必须为(0 ~ (left-1)),右边的数值可以是 0 ~ 999… ...
分类:
其他好文 时间:
2020-01-27 19:32:46
阅读次数:
71
Consider a positive integer N written in standard notation with k+1 digits a?i?? as a?k???a?1??a?0?? with 0 for all i and a?k??>0. Then N is palindrom ...
分类:
其他好文 时间:
2020-01-27 17:31:19
阅读次数:
64
Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list. Input Specification: Each input file contains ...
分类:
其他好文 时间:
2020-01-27 17:28:02
阅读次数:
71