06 2015 档案

实现计算机重启
摘要:1.新建工程2.添加3个控件按钮 ID分别为 IDC_BTCLOSE IDC_BTRESET IDC_BTLOGOUT 分别为“关闭计算机”,“重新启动”,“注销计算机”3. 在OnInitDialog中设置实现关机的权限static HANDLE hToken; static TOKEN... 阅读全文

posted @ 2015-06-25 09:53 yifi 阅读(316) 评论(0) 推荐(0)

True bar
摘要:真彩bar 1 /***========================================================================= 2 ==== ... 阅读全文

posted @ 2015-06-25 09:50 yifi 阅读(284) 评论(0) 推荐(0)

cf 307
摘要:一开始我是不想打的 又因为307这个数字太特殊了毕竟307 希望今天的考试不要挂掉http://codeforces.com/contest/551/problem/A 1 #include 2 #include 3 #include 4 using namespace std; 5 6 cons... 阅读全文

posted @ 2015-06-13 11:38 yifi 阅读(168) 评论(0) 推荐(0)

一道离散化+线段树+扫描线的题
摘要:http://poj.org/problem?id=1151这道题感觉快哭了 卡了一个差不多礼拜 然后发现 输出用%.2lf是过不了的 必须用%.2f才能过 这是一道好(lan)题;%f 一般对应单精度类型 float%lf 一般对应双精度类型 double 1 #include 2 #incl... 阅读全文

posted @ 2015-06-12 20:21 yifi 阅读(164) 评论(0) 推荐(0)

uva -- 10766
摘要:一开始我感觉是模板题 是不想写的 后来发现我的模板上没有 就敲了一遍 可以忽略这句屁话 在信息学竞赛中,有关生成树的最优化问题如最小生成树等是我们经常遇到的,而对生成树的计数及其相关问题则少有涉及。事实上,生成树的计数是十分有意义的,在许多方面都有着广泛的应用。 1 #include 2 #i... 阅读全文

posted @ 2015-06-10 21:48 yifi 阅读(278) 评论(0) 推荐(0)

poj -- 3468
摘要:很明显用线段树 节点类型 :typedef struct _NODE_{ int L,R; _NODE_* pLeft; _NODE_* pRight; LL nSum;//原来的和 LL lnc; //增加量c的累加}NODE;感觉用孩子节点比较好一点 开到2n就行了 用2*n+1/2*n+2的话... 阅读全文

posted @ 2015-06-10 20:24 yifi 阅读(193) 评论(0) 推荐(0)

poj --3264
摘要:又手贱的用cin 结果t掉;感觉自己的代码风格太差了http://poj.org/problem?id=3264 1 #include 2 #include 3 #include 4 using namespace std; 5 const int INF = 0xffffff0; 6 ... 阅读全文

posted @ 2015-06-10 19:09 yifi 阅读(170) 评论(0) 推荐(0)

cstring 的重载
摘要: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 ... 阅读全文

posted @ 2015-06-09 20:58 yifi 阅读(281) 评论(0) 推荐(0)

hihocode ---1032
摘要: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... 阅读全文

posted @ 2015-06-09 20:51 yifi 阅读(292) 评论(0) 推荐(0)

省赛总结
摘要:这次省赛 虽然签到题有一点坑(神奇的是我们队还给改对了)但是后面的题没做出来 我感觉还是学的太浅;从今天开始 刷够500题在打比赛;本周目标:后缀数组刷完的话 把上周剩下的rmq补完 阅读全文

posted @ 2015-06-07 21:08 yifi 阅读(133) 评论(0) 推荐(0)

13周总结
摘要:这周主要是准备了一下省赛 (虽然很水)复习了一下以前做过的题 顺便刷了rmq的题这周开始写博客http://www.cnblogs.com/yifi/archive/2015/06/03.html 阅读全文

posted @ 2015-06-06 23:00 yifi 阅读(122) 评论(0) 推荐(0)

uva 1428
摘要: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... 阅读全文

posted @ 2015-06-04 17:10 yifi 阅读(146) 评论(0) 推荐(0)

hduacm 2888 ----二维rmq
摘要: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 ... 阅读全文

posted @ 2015-06-04 15:50 yifi 阅读(154) 评论(0) 推荐(0)

hduacm 3183 rmq
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=3183问题等价与取N-M个数,每次取的时候保证后面能取的个数足够,并且取的数最小 查询最小用rmq 1 #include 2 #include 3 #include 4 #include 5 6 using na... 阅读全文

posted @ 2015-06-04 13:55 yifi 阅读(169) 评论(0) 推荐(0)

心情
该文被密码保护。

posted @ 2015-06-03 01:05 yifi 阅读(5) 评论(0) 推荐(0)

铁人系列(2)LA2218
摘要:思路:对于每个人 都会有n-1个半片面 加上x>0,y>0,1-x-y>0(这里的1抽象为总长)代码是粘贴的 原来写的不见了 orz............// LA2218 Triathlon// Rujia Liu#include #include #include #include using... 阅读全文

posted @ 2015-06-03 00:54 yifi 阅读(207) 评论(0) 推荐(0)

铁人系列 (1) uva 10385
摘要:uva 10385列出n-1个一元方程,对应成单峰函数,所以用三分求解即可。#include #include #include using namespace std;const int maxn = 30;int N;double L, vr[maxn], vk[maxn];void init ... 阅读全文

posted @ 2015-06-03 00:46 yifi 阅读(186) 评论(0) 推荐(0)

数据结构基础
摘要:#include #include using namespace std;typedef struct _NODE_{ _NODE_* pRight; _NODE_* pLeft; int e; int Count; void InitMember(int e) ... 阅读全文

posted @ 2015-06-03 00:15 yifi 阅读(182) 评论(0) 推荐(0)

基于TCP的通信 客户端
摘要:#include #include // socket 套接字#pragma comment (lib,"Ws2_32") //library DWORD WINAPI ThreadInput(LPVOID lpParam);DWORD WINAPI ThreadOutput(LPVOI... 阅读全文

posted @ 2015-06-03 00:12 yifi 阅读(310) 评论(0) 推荐(0)

基于TCP的通信 服务端
该文被密码保护。

posted @ 2015-06-03 00:10 yifi 阅读(0) 评论(0) 推荐(0)

hduacm 5255
摘要: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... 阅读全文

posted @ 2015-06-03 00:08 yifi 阅读(160) 评论(0) 推荐(0)

uva 10668
摘要:#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) {... 阅读全文

posted @ 2015-06-02 20:29 yifi 阅读(223) 评论(0) 推荐(0)

hduacm 5104
摘要: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 ... 阅读全文

posted @ 2015-06-02 19:34 yifi 阅读(304) 评论(0) 推荐(0)

uva 10491
摘要: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... 阅读全文

posted @ 2015-06-02 19:08 yifi 阅读(127) 评论(0) 推荐(0)

uva 1210
摘要:#include#includeusing namespace std;const int MAXN = 10000 + 10;bool notprime[MAXN];//值为false表示素数,值为true表示非素数int s[MAXN];int c[100000000];void init(){... 阅读全文

posted @ 2015-06-02 11:36 yifi 阅读(218) 评论(0) 推荐(0)

基于UDP的通信 CLient
该文被密码保护。

posted @ 2015-06-01 23:15 yifi 阅读(1) 评论(0) 推荐(0)

基于UDP的通信
该文被密码保护。

posted @ 2015-06-01 23:06 yifi 阅读(3) 评论(0) 推荐(0)

大数相加 用栈
摘要:#include "StdAfx.h"using namespace std;const int Maxn = 1000+10;#define DATA chartypedef struct _STACKNODE_{ DATA* Data; _STACKNODE_* Next; ... 阅读全文

posted @ 2015-06-01 21:29 yifi 阅读(137) 评论(0) 推荐(0)

一道数学题 hduacm 5144
摘要:题目大意: 一直初速度v和抛出速度h 求标枪抛出的最远距离;题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5144显然 d=v/g*sqrt(v*v+2*g*h);《此处略去推导过程》 阅读全文

posted @ 2015-06-01 21:28 yifi 阅读(144) 评论(0) 推荐(0)

导航