用这个函数转成罗马数字统计就行了。 string intToRoman(int num) { string c[4][10]={ {"","I","II","III","IV","V","VI","VII","VIII","IX"}, {"","X","XX","XXX","XL","L& ...
分类:
其他好文 时间:
2018-10-20 21:10:30
阅读次数:
183
题目链接:https://www.luogu.org/problemnew/show/SP2713 真暴力啊。 开方你开就是了,开上6次就都没了。 include include include include include define ll long long using namespace ...
分类:
其他好文 时间:
2018-10-17 14:46:47
阅读次数:
160
复变函数的积分 Author : Benjamin142857 Date : 2018/10/1 [TOC] 1. 有关的几个定理与公式 1.1 C R 方程 Cauchy Riemann equation 柯西黎曼方程,对于 $f(z) = u + iv$ $$ \frac{\part u}{\p ...
分类:
其他好文 时间:
2018-10-12 01:17:12
阅读次数:
286
Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target. E ...
分类:
其他好文 时间:
2018-10-11 12:58:51
阅读次数:
181
"题目链接" 题意 N个城市M条路径,给定起点A,终点B,求有几条从A到B的最短路(其中每经过的路径不能重复) 解题思路 先用最短路求出A到B的最短路Min,也求出A到每个城市的距离dis[N],然后反向求B到A的最短路,得到B到每个城市的最短距离dis2[N],然后遍历每条路径edge,如果dis ...
分类:
其他好文 时间:
2018-10-04 12:20:27
阅读次数:
149
Marriage Match IV 题意:现在有n城市,m条单向路,现在男生在A城市,女生在B城市,现在男生要从A -> B 去看女生,每条路只能走一次,并且男生很懒,他第一次走的是A -> B的最短路,以后每次走的路都不能超过这个,求 男生从A->B次数最多有多少次。 题解:就是求有多少个不相干的 ...
分类:
其他好文 时间:
2018-10-04 09:01:45
阅读次数:
163
在Android里放置一个ImageView,宽和高都是200.1、在Android OnCreate里如果直接使用iv.GetWidth()返回值为0. 2、如果使用网上int i = View.MeasureSpec.makeMeasureSpec(0, 0); int j = View.Mea ...
分类:
其他好文 时间:
2018-10-03 00:21:00
阅读次数:
216
1.安装Jenkins i:下载Jenkins安装包(war文件):https://jenkins.io/download/ ii:这里采用Tomcat的war包方式安装,讲下载好的安装包放到Tomcat的webapps目录中 iii:启动Tomcat iv:常用插件安装 更改升级站点:http:/ ...
分类:
系统相关 时间:
2018-09-30 14:42:25
阅读次数:
469
const CryptoJS = require('crypto-js'); //引用AES源码js const key = CryptoJS.enc.Utf8.parse("1234123412ABCDEF"); //十六位十六进制数作为密钥 const iv = CryptoJS.enc.Utf ...
分类:
Web程序 时间:
2018-09-29 00:03:49
阅读次数:
818
学习参考: 1.Mooophy/Cpp-Primer. GitHub上star最多的一个答案,英文版,但是编程用到的单词也不多,查查就懂了。但是到第IV部分,很多题目的没有答案,或者不完整。 2.huangmingchuan/Cpp_Primer_Answers. 中文版的答案,和上一个答案差不多。 ...
分类:
编程语言 时间:
2018-09-27 10:32:51
阅读次数:
165