题目链接 题目描述 Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N! 就是算n!。 解题思路 没啥说的,高精度吧,注意一个数组足矣,不然会t。 代码 ...
分类:
其他好文 时间:
2018-06-07 19:42:58
阅读次数:
158
RSA 算法 若要生成密钥对,可以从创建名为 p 和 q 的两个大的质数开始。 这两个数相乘,结果称为 n。 因为 p 和 q 都是质数,所以 n 的全部因数为 1、 p、 q 和 n。 如果仅考虑小于 n 的数,则与 n 为互质数(即与 n 没有公因数)的数的个数等于 (p - 1)(q - 1) ...
分类:
编程语言 时间:
2018-06-06 21:49:48
阅读次数:
282
第一步、Ctrl+Alt+F1进终端,log in之后,输入watch nvidia-smi,查看英伟达的显卡驱动还在不在。如果有显卡信息显示,转到第三步,如果没有转第二步。第二步、安装Nvidia显卡驱动,按部就班:sudo service lightdm stopsudo apt-get rem ...
分类:
其他好文 时间:
2018-06-06 15:55:28
阅读次数:
439
For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient. Input Sp ...
分类:
其他好文 时间:
2018-06-06 00:55:02
阅读次数:
261
1081 Rational Sum (20)(20 分) Given N rational numbers in the form "numerator/denominator", you are supposed to calculate their sum. Input Specificatio ...
分类:
其他好文 时间:
2018-06-05 00:43:07
阅读次数:
187
题目在最后,FG还不会做,等着$NicoDafaGood$和$Achen$给我讲 A 对于每一个质因子建一棵线段树,直接查询就好了 主要是看到所有数的大小都不是很大,然后质因子最多只有log个,复杂度两个log又是能承受的 B 一开始一直在想用最小的替换最大的,然后就在纠结什么前20种我选了多少,前 ...
分类:
其他好文 时间:
2018-06-04 19:45:52
阅读次数:
175
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re ...
分类:
其他好文 时间:
2018-06-04 16:56:42
阅读次数:
309
ZOJ Problem Set - 1001 Calculate a + b Input The input will consist of a series of pairs of integers a and b,separated by a space, one pair of integer ...
分类:
其他好文 时间:
2018-06-04 16:52:39
阅读次数:
145
模板与泛型编程 ? 定义模板(16.1) 类模板(16.1.2) 类前置声明范例 ? ...
分类:
编程语言 时间:
2018-06-03 19:28:49
阅读次数:
136
在使用ArcMap中的Raster calculate中出现的报错 查到解决办法 https://jingyan.baidu.com/article/d8072ac466b41bec95cefdd3.html 一定要注意最后一步重启电脑 不然不生效。 附如何查看报错代码 http://resourc ...
分类:
其他好文 时间:
2018-06-02 20:05:51
阅读次数:
375