Beautiful Subarrays 题解: 把数字转化成2进制之后,用字典树去维护。 想到字典树之后就应该是一道很容易写的题目了。 代码: #include<bits/stdc++.h> using namespace std; #define Fopen freopen("_in.txt"," ...
分类:
其他好文 时间:
2019-05-20 16:56:08
阅读次数:
107
在用VS2013开发一AntiRootkit程序时遇到下面错误: error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation ...
分类:
其他好文 时间:
2019-05-17 13:31:57
阅读次数:
356
环境里一直是跑PHP7.1版本,为了适应未来发展,现在升级为PHP7.3.5但是发现无法安装SSH2扩展。/ssh2-1.1.2/ssh2_fopen_wrappers.c:737:20:note:expected‘char’butargumentisoftype‘structzend_string’staticphp_streamphp_ssh2_exec_command(LIBSSH2_SES
分类:
Web程序 时间:
2019-05-16 15:06:28
阅读次数:
599
Anton and School - 2 题解: 枚举每个左括号作为必选的。 那么方案数就应该是下面的 1 , 然后不断化简, 通过范德蒙恒等式 , 可以将其化为一个组合数。 代码: #include<bits/stdc++.h> using namespace std; #define Fopen ...
分类:
其他好文 时间:
2019-05-12 20:11:31
阅读次数:
162
Three Statesy 题解: 以3个大陆为起点,都dfs一遍,求出该大陆到其他点的最小距离是多少, 然后枚举每个点作为3个大陆的路径交点。 代码: #include<bits/stdc++.h> using namespace std; #define Fopen freopen("_in.t ...
分类:
其他好文 时间:
2019-05-12 14:06:37
阅读次数:
131
#define mm(a) memset(a,0,sizeof(a));#define max(x,y) (x)>(y)?(x):(y) #define min(x,y) (x)<(y)?(x):(y) #define Fopen freopen("1.in","r",stdin);freopen( ...
分类:
移动开发 时间:
2019-05-05 20:46:15
阅读次数:
226
#include<stdio.h>#include<stdlib.h>#include<string.h>#include<time.h> int main(){ int j=0,x,a[1024]; char rand_num[5]; FILE *stream=fopen("1.txt","w") ...
分类:
其他好文 时间:
2019-05-02 11:51:27
阅读次数:
100
1、SGXSDKSGXSDK给开发者提供了一个精简版的C标准函数库?因为enclave里面是一个和Windows操作系统隔离的运行环境,这个环境并不能直接访问电脑的显卡和硬盘文件系统,所以SDK提供的C标准函数库并不包含我们常用的printf()或者fread(),fopen()之类的I/O函数?2、实现OpenSGX应用实现一个OpenSGX程序类似于正常的C程序。由于对SGX程序的操作系统支持
分类:
其他好文 时间:
2019-04-29 18:46:26
阅读次数:
217
upstream : read-timeout,connection-timeout,分级别 500ms,1S,100S,长链接 颗粒度[每个服务api health-check] openresty lua--rest--dynamic upstream traefik--三个出问题了--如何摘掉 ...
分类:
其他好文 时间:
2019-04-28 15:44:12
阅读次数:
119
#include "stdafx.h" #include <stdio.h> #include <stdlib.h> #define DATAFILE "../web/data.txt" int main(void) { FILE *f = fopen(DATAFILE,"r"); int ch; ...
分类:
其他好文 时间:
2019-04-28 09:48:09
阅读次数:
116