Description Description Input Output Input Input Output Output Sample Input 5 2 1 5 3 4 Sample Output 5 4 3 1 2 Sample Input 5 2 1 5 3 4 Sample Input ...
分类:
编程语言 时间:
2017-08-16 20:14:07
阅读次数:
201
Atlantis Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 9032 Accepted Submission(s): 3873 Probl ...
分类:
其他好文 时间:
2017-08-16 11:41:15
阅读次数:
159
题目链接: https://acm.zzuli.edu.cn/zzuliacm/problem.php?id=1134 Description 输入一个以回车结束的字符串,它由数字和字母组成,请过滤掉所有非数字字符,然后将数字字符串转换成十进制整数后乘以2输出。 输入一个以回车结束的字符串,它由数字 ...
分类:
其他好文 时间:
2017-08-15 23:34:13
阅读次数:
1307
1、获取网站IP地址[root@plinuxos~]#yuminstall-ybind-utils##安装dig命令
[root@plinuxos~]#digbaidu.com
;<<>>DiG9.9.4-RedHat-9.9.4-50.el7_3.1<<>>baidu.com
;;globaloptions:+cmd
;;Gotanswer:
;;->>HEADER<<-opcode:QUERY,status:N..
分类:
其他好文 时间:
2017-08-15 23:08:44
阅读次数:
167
扩展:针对请求的uri来代理http://ask.apelearn.com/question/1049根据访问的目录来区分后端webhttp://ask.apelearn.com/question/92012.17Nginx负载均衡1.安装dig命令:[root@hao-01~]#yuminstall-ybind-utils2.用dig获取qq.com的ip地址:[root@hao-01~]#digqq.com3.创建ld.co..
分类:
其他好文 时间:
2017-08-15 23:08:37
阅读次数:
232
题目:洛谷P1069、Vijos P1814、codevs1152。 题目大意:给你一个$m_1$和$m_2$,和n个数$s_i$,要你求这n个数中是否有一个数满足$s_i ^t \equiv 0(mod\ m_1^{m_2})$,如果有则输出最小的t,没有输出-1。 解题思路:由于$m_1^{m_ ...
分类:
其他好文 时间:
2017-08-14 20:08:53
阅读次数:
174
package com.suning.hrqz.utils;import java.io.UnsupportedEncodingException;import java.security.MessageDigest;import java.security.NoSuchAlgorithmExcep... ...
分类:
其他好文 时间:
2017-08-14 12:44:50
阅读次数:
155
看不出是逆序对...感觉药丸 首先要看出最优解就是两个数组均有序的时候 再对两个数组的下标求逆序对即可 归并&树状数组 1 #include<cstdio> 2 #include<cstring> 3 #include<algorithm> 4 #include<cmath> 5 #include< ...
分类:
其他好文 时间:
2017-08-13 12:19:47
阅读次数:
114
传送门 显然吃饭时间越长的人排在前面越好,所以先排序。 f[i][j]表示前i个人,A队的打饭时间为j的最优解,每个人只有两种选择,去A队或是去B队。 ...
分类:
其他好文 时间:
2017-08-11 22:07:42
阅读次数:
117
1.引言 项目需要做爬虫并能提供个性化信息检索及推送,发现各种爬虫框架。其中比较吸引的是这个: Nutch+MongoDB+ElasticSearch+Kibana 搭建搜索引擎 E文原文在:http://www.aossama.com/search-engine-with-apache-nutch ...
分类:
系统相关 时间:
2017-08-11 17:25:29
阅读次数:
511