挺水的一题。其实只要理解了RSA算法,就知道要使用大整数分解的方法来直接模拟了。不过,要注意两个INT64的数相乘来超范围#include #include #include #include #include #include #define LL __int64 using namespace ...
分类:
其他好文 时间:
2014-09-17 23:16:32
阅读次数:
246
题目参考了别人的博客,百度来的博客#include#include#include#include#include#includeusing namespace std;//暴力//a?≤?a1; b?≤?b1int main(){ __int64 n,a,b; scanf("%I64d...
分类:
其他好文 时间:
2014-09-17 20:23:12
阅读次数:
205
刚调试一个项目,配置好参数,运行,一会儿在printf语句处出了异常。仔细一想感觉好奇怪,printf又没有什么数组越界,怎么会出这个问题。后经大神指点,是否有64位的int什么的,仔细一排查,果真有,先写下来备忘吧。 vs 支持 long long 和 __int64 定义的64位整形,输出...
分类:
其他好文 时间:
2014-09-16 20:28:10
阅读次数:
191
在Windows Qt-4.8.x平台上编译Qt-5.0+ WebKit(即qtwebkit-2.3.x) Debug版注意事项
跳转至:
导航、
搜索
目录
1
C++编译问题
1.1
从idl生成.h/.cpp失败?1.2
VS编译器版本1.3
名字导出问题1.4
找不到int64_t类型?1.5
Windows上需要pt...
//nim博弈
//有n堆石头,两人轮流每次从一堆中拿至少1,之多全部的石头,没有石头可拿为lose
//判断先手是win还是lose
# include
# include
# include
using namespace std;
int main()
{
int n,i;
__int64 a,sum;
while(~scanf("%d",&n))
{
...
分类:
其他好文 时间:
2014-09-15 21:24:20
阅读次数:
234
http://acm.hdu.edu.cn/showproblem.php?pid=4911一场多校的签到题,树状数组离散化求逆序数#include #include #include #include using namespace std ;typedef __int64 ll ;int n,k...
分类:
其他好文 时间:
2014-09-12 20:35:44
阅读次数:
233
TRecord2 = record a: Integer; b: Integer; c: Integer; end; TRecord1 = record a: Byte; case Integer of 0: (a1: TRecord2); 1: (a2: Int64); end; 第一步是要知道结...
分类:
其他好文 时间:
2014-09-11 22:23:32
阅读次数:
261
1 #include 2 int main() 3 { 4 int i, j, n; 5 __int64 d[51] = {1, 1, 2,}; 6 for (i = 3; i j ? 0 : d[j-i]);11 return 0;12 }因为爬到第n格可以是...
分类:
其他好文 时间:
2014-09-10 08:21:00
阅读次数:
200
关于__int64的使用!类型long long__int64intmax_t格式%lld%I64d%I64d在Dev C++中,三种类型均需用%I64d格式输出 ,c语言中intmax_t需要用到头文件stdint.hC++采用cin输入时,两种类型均可。eg1eg2eg3#includeint ...
分类:
其他好文 时间:
2014-09-09 22:47:09
阅读次数:
278
//f[n]=2*f[n-2]+f[n-1]+1
//矩阵快速幂
# include
# include
# include
# include
using namespace std;
struct node
{
__int64 m[3][3];
};
__int64 mod;
node answ,origin,d;
node f(node a,node b)
{
__int64...
分类:
其他好文 时间:
2014-09-09 13:20:58
阅读次数:
147