摘要:1.新建工程2.添加3个控件按钮 ID分别为 IDC_BTCLOSE IDC_BTRESET IDC_BTLOGOUT 分别为“关闭计算机”,“重新启动”,“注销计算机”3. 在OnInitDialog中设置实现关机的权限static HANDLE hToken; static TOKEN...
阅读全文
摘要:真彩bar 1 /***========================================================================= 2 ==== ...
阅读全文
摘要:一开始我是不想打的 又因为307这个数字太特殊了毕竟307 希望今天的考试不要挂掉http://codeforces.com/contest/551/problem/A 1 #include 2 #include 3 #include 4 using namespace std; 5 6 cons...
阅读全文
摘要:http://poj.org/problem?id=1151这道题感觉快哭了 卡了一个差不多礼拜 然后发现 输出用%.2lf是过不了的 必须用%.2f才能过 这是一道好(lan)题;%f 一般对应单精度类型 float%lf 一般对应双精度类型 double 1 #include 2 #incl...
阅读全文
摘要:一开始我感觉是模板题 是不想写的 后来发现我的模板上没有 就敲了一遍 可以忽略这句屁话 在信息学竞赛中,有关生成树的最优化问题如最小生成树等是我们经常遇到的,而对生成树的计数及其相关问题则少有涉及。事实上,生成树的计数是十分有意义的,在许多方面都有着广泛的应用。 1 #include 2 #i...
阅读全文
摘要:很明显用线段树 节点类型 :typedef struct _NODE_{ int L,R; _NODE_* pLeft; _NODE_* pRight; LL nSum;//原来的和 LL lnc; //增加量c的累加}NODE;感觉用孩子节点比较好一点 开到2n就行了 用2*n+1/2*n+2的话...
阅读全文
摘要:又手贱的用cin 结果t掉;感觉自己的代码风格太差了http://poj.org/problem?id=3264 1 #include 2 #include 3 #include 4 using namespace std; 5 const int INF = 0xffffff0; 6 ...
阅读全文
摘要:1 #include 2 #include 3 4 using namespace std; 5 6 7 8 9 const int Max = 100000 +10; 10 class MyString 11 { 12 public: 13 14 ...
阅读全文
摘要:1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 const int MAXN = 1000000 + 10; 8 char Ma[MAXN*2]; 9 int Mp[MAXN*2];10 void Manacher(c...
阅读全文
摘要:这次省赛 虽然签到题有一点坑(神奇的是我们队还给改对了)但是后面的题没做出来 我感觉还是学的太浅;从今天开始 刷够500题在打比赛;本周目标:后缀数组刷完的话 把上周剩下的rmq补完
阅读全文
摘要:这周主要是准备了一下省赛 (虽然很水)复习了一下以前做过的题 顺便刷了rmq的题这周开始写博客http://www.cnblogs.com/yifi/archive/2015/06/03.html
阅读全文
摘要:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4174 1 #include 2 #include 3 #include 4 #include 5 us...
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2888模板题 直接用二维rmq读入数据时比较坑爹 cin 会超时 1 #include 2 #include 3 #include 4 5 using namespace std; 6 const int ...
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=3183问题等价与取N-M个数,每次取的时候保证后面能取的个数足够,并且取的数最小 查询最小用rmq 1 #include 2 #include 3 #include 4 #include 5 6 using na...
阅读全文
摘要:思路:对于每个人 都会有n-1个半片面 加上x>0,y>0,1-x-y>0(这里的1抽象为总长)代码是粘贴的 原来写的不见了 orz............// LA2218 Triathlon// Rujia Liu#include #include #include #include using...
阅读全文
摘要:uva 10385列出n-1个一元方程,对应成单峰函数,所以用三分求解即可。#include #include #include using namespace std;const int maxn = 30;int N;double L, vr[maxn], vk[maxn];void init ...
阅读全文
摘要:#include #include using namespace std;typedef struct _NODE_{ _NODE_* pRight; _NODE_* pLeft; int e; int Count; void InitMember(int e) ...
阅读全文
摘要:#include #include // socket 套接字#pragma comment (lib,"Ws2_32") //library DWORD WINAPI ThreadInput(LPVOID lpParam);DWORD WINAPI ThreadOutput(LPVOI...
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=5255枚举a和c 求解b#include #include #include #include #include using namespace std ;typedef long long LL ;#define...
阅读全文
摘要:#include #include #include #include using namespace std;int main(){ double L,n,C,R; while (~scanf("%lf%lf%lf",&L,&n,&C)) { if (L 1e-6) {...
阅读全文
摘要:http://acm.hdu.edu.cn/show#include #include #include using namespace std;const int maxn = 10000;int np, pri[maxn+5], vis[maxn+5];void prime_table(int ...
阅读全文
摘要:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1432#include int main () { int a, b, c; while (s...
阅读全文
摘要:#include#includeusing namespace std;const int MAXN = 10000 + 10;bool notprime[MAXN];//值为false表示素数,值为true表示非素数int s[MAXN];int c[100000000];void init(){...
阅读全文
摘要:#include "StdAfx.h"using namespace std;const int Maxn = 1000+10;#define DATA chartypedef struct _STACKNODE_{ DATA* Data; _STACKNODE_* Next; ...
阅读全文
摘要:题目大意: 一直初速度v和抛出速度h 求标枪抛出的最远距离;题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5144显然 d=v/g*sqrt(v*v+2*g*h);《此处略去推导过程》
阅读全文