自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 收藏
  • 关注

转载 opencmd注册表

windows右键添加open cmd命令 - 简书 (jianshu.com)

2024-04-02 14:47:04 27

原创 Automate setting for NVIDIA control panel(3D)

开启图像软件->更改垂直同步后应用->图像帧率不变。必须关闭图像软件重启才行。这么看软件应该是读取配置项然后自己做渲染策略了。测试不全面,后续使用过后再补全吧。本来准备看NVIDIAAPI能不能实现的,结果看了半天太零散了也没看懂,翻翻论坛发现好像思路错了,这个好像是个配置项,还不能用API去做。NVIDIA 3D管理配置文件位置:C:\ProgramData\NVIDIA Corporation\Drs。自动化配置NVIDIA控制面板里3D管理设置。

2024-02-01 16:14:52 214

原创 微软官网地址

因为老忘记,记录下微软WDK官网地址。

2022-12-12 14:49:56 222 1

转载 Linux 安装 Docker

学习

2022-11-17 08:57:43 131

原创 windows用户异常

1

2022-02-11 14:46:26 384

原创 windows服务器新增用户

方便同事使用和管理计算机管理->组用户->新增->添加隶属于administrators

2022-01-17 14:38:32 1131

转载 win访问linux NFS磁盘映射共享驱动器卡顿【转】

Linux上建立了NSF,在windows上用磁盘映射(共享),但是打开时候非常慢,而且修改文件后需要等待。解决方法:在windows客户端下,以管理员方式运行CMD,输入netsh int tcp set g a=d 看到ok即可。参考文章:https://zhidao.baidu.com/question/336198364.html...

2021-09-11 13:16:55 1268

转载 linux安装jsoncpp

【转】https://www.cnblogs.com/wuli-jishu-192-168-23333/p/6215532.html

2021-06-16 20:11:55 405

转载 linux boost库安装

【转】https://www.linuxprobe.com/linux-boost.html

2021-06-16 20:11:04 93

原创 abyy a+poj1062

A2. Oh Sweet Beaverettetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output— Oh my sweet Beaverette, would you fancy a walk along a ...

2013-07-19 07:39:36 632

原创 poj1850

今天搞大素数搞了一天没弄明白,这题是组合数学的,接上篇当习题做的,感觉不错,把26个字母填入10以内格子的组合方法累加#include <iostream>#include <algorithm>#include <cstring>#include <cstdio>#include <cstdlib>#include...

2013-07-15 19:35:29 611

原创 poj3252

转载请注明出处:優YoU http://user.qzone.qq.com/289065406/blog/1301472836题目很好玩,搞了半天搞不定只能看大神的解题报告,先dp打表,然后分类累加#include #include #include #include #include using namespace std;int c[40][40]={0};int b

2013-07-15 01:42:03 643

原创 hdu1104

本题是bfs,不过有点小阴谋,在num因为大量运算时会很大,于是我们要取余,但不能直接用%k,而是用%km(k*m),因为不止要和k线性同余还要和m线性同余,也就是说,如果只用%k,那么我对n做了一步处理后,产生的结果只对k线性同余,假如下一步用%m,那么就错了比如,8 3,10,op为+%,如果用%k,答案就是2,但正确答案是1。下面是代码:#include #include

2013-07-11 12:30:59 827

原创 hdu4476

Cut the ropeTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 13    Accepted Submission(s): 12Problem Description  Now we have som

2012-12-02 09:17:19 811

原创 hdu 1086

就是计算交点嘛,就是个判断两点是否在两线旁边,开始把点写成int了,wa了2次....因为是第一个自己写的完整的计算几何,所以丢上来了,话说xmult函数的作用真心强~#include #include #include #include using namespace std;struct point{double x,y;};point point1[101],poin

2012-09-24 11:05:31 386

原创 poj2479

题意就是两个不重叠的子序列和最大,一开始套循环暴力超时了,然后想求最长子序列,再求最短子序列,发现有重叠情况不成立,所以就分左右两边判断最长和最短子序列了,需要注意这里面子序列长度不能为0,就因为这wa了N次了#include#include#define INT_MIN -10000using namespace std;int main(){ int s[100001]

2012-09-24 03:38:14 775 2

原创 hdu 4282

因为y的限制条件比较多,所以循环x,z找y,用二分的思路,几乎是暴力过的#include #include #include #include using namespace std;__int64 powx(int x,int y){ int i; __int64 ans=1; for (i=0;i<y;i++) ans*=x; ret

2012-09-17 13:19:33 413

原创 hdu 1500

此题是dp,比较经典,先从大到小排序,然后每个筷子都有放前面和后面的情况,方程就为 dp[i][j]=min(dp[i][j-1],dp[i-1][j-2]+(a[j-1]-a[j])*(a[j-1]-a[j]));#include #include #include #include using namespace std;bool cmp(int x,int y){

2012-09-15 08:00:05 686

原创 hdu1061

我承认这题是用来找自信的。。。快速幂#include #include #include #include using namespace std;int qpow(int n){ int ans=1,b=n%10; while (n) { if (n%2==1) { n--;ans*=b;

2012-09-12 15:17:49 308

原创 hdu 1060

这题说穿了就水了,发现高精度跟快速幂都不能过,本来以为是打表的。。。后来看了大神的思路才明白的log10(n^n)=a+b;a为整数,b为小数;所以n^n最左边的就是10^b的整数部分,结束;#include #include using namespace std;//using std::cout;int main(){ int i,t,n,ans; __i

2012-09-12 14:30:12 377 1

原创 hdu 4278

这题是比较水的计算题了,分位看,每个位置上的判断为如果超过8自然减2,超过3减1,同时如果前一位有数字还要减前面的数(总和,比如4000的第三位是0,前面的数是40)*2,然后注意点就没问题了,这题比赛的时候题目都没看完学长就a了,我没话说了。。。需要注意,如果直接用pow的话有时候会精度遗失,所以我自己写了个int pow#include #include #include #in

2012-09-10 17:36:46 625 2

原创 hdu 1003

这题是经典的简单动归,方程用的是sum[i]=(sum[i-1]>=0?sum[i-1]+a[i]:a[i])然后用结构体把起点终点存进去,如果sum[i-1]>0则起点不变,终点加一,否则起点转化为i。我的代码跑得很慢,不过比较容易理解了#include #include #include #include using namespace std;

2012-09-10 17:32:28 342

原创 poj1860

这题算bellman算法的模板了,基本上bellman的思路在我印象中就是将能变的都变了,一直变到他不能变为止。。。题意就是给你n个城市,m个交换点,s是起点,v是原始资金,问通过几个交换点能不能使钱变多?感觉题意读着像走私神马的。。。#include #include #include #include #define eps 1e-8using namespace st

2012-09-01 08:13:18 454

原创 poj1321

dfs水题,按行搜索,判断列,主要就是注意回溯和最后空行的dfs#include #include #include #include using namespace std;int ans,n,k,cnt;bool visit[100];bool is[100][100];void dfs(int t,int a){ int i; if (cnt==k) {

2012-07-30 08:42:25 313

原创 hdu1005

方法一:找循环节点,因为最多49次,所以代码如下:#include #include #include int f[1000];int main(){ int a,b,n,i,j; int k[7][7]; f[1]=1;f[2]=1; while (scanf("%d%d%d",&a,&b,&n),a||b||n) { memse

2012-07-04 01:44:42 2615 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除