思路比较裸,但是要把答案存到哈希表里面,这里需要一定技巧,否则会被K=1且点权全是1的数据卡飞。预处理乘法逆元。TLE了一天。换了种点分治的姿势……#pragma comment(linker,"/STACK:102400000,102400000")#include#include#include...
分类:
其他好文 时间:
2015-02-15 12:03:27
阅读次数:
192
我还是用了很朴素的暴力匹配A了这题,不得不感叹USACO时间放的好宽.../*ID: wushuai2PROG: hammingLANG: C++*///#pragma comment(linker, "/STACK:16777216") //for c++ Compiler#include #in...
分类:
其他好文 时间:
2015-02-14 17:23:18
阅读次数:
194
13: key word: 桥 ,数的路径题意:求一个无向图的桥,然后加一条边使桥的数目最小。 先求出原图的桥数,然后找树的最长路径,答案就是桥数-最长路径; ADD question:假如减去一条路径求最多有多少条桥;CODE:#pragma comment(linker,"...
分类:
其他好文 时间:
2015-02-14 16:08:23
阅读次数:
95
公共的接口要求
//SocketProtocol.h
#pragma once
class SocketIF
{
public:
//客户端初始化 获取handle 上下文信息
virtual int cltSocketInit() = 0;
//客户端发报文
virtual int cltSocketSend(unsigned char *buf, int buflen) = 0;...
分类:
其他好文 时间:
2015-02-13 21:14:07
阅读次数:
188
存储过程中调用存储过程create or replace package body PF_Role_Pack is procedure sp_GetPage_Role(pageSize_ in number, --每页大小 pageIndex_ ...
分类:
数据库 时间:
2015-02-13 10:04:45
阅读次数:
185
You are given an n x n 2D matrixrepresenting an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
HideTags
Array
#pragma once
#include
#include
using n...
分类:
其他好文 时间:
2015-02-12 22:52:50
阅读次数:
157
自己练习D3D 程序搭的小框架,记录在这里,将来看到好回顾自己独自摸索的苦逼样子。#pragma once#pragma comment(lib,"d3d9.lib")#pragma comment(lib,"d3dx9.lib")#include#includestruct CUSTOMVERTE...
分类:
其他好文 时间:
2015-02-12 13:45:01
阅读次数:
185
系统:CentOS release 6.6 (Final) x86_64安装包:1、LRLG_00031.iso 【Load Generator Standalone (Linux 64-bit) Service Pack 11.52】下载地址:HP官网https://softwaresupport...
分类:
系统相关 时间:
2015-02-11 18:14:20
阅读次数:
389
啥也不说了,这次直接上代码 1、客户端和服务提供端共用接口类 package?com.alibaba.dubbo.demo;
public?interface?CacheService?{
????String?findCache(String?id);
} 2、服务提供端接口实现类 pack...
分类:
其他好文 时间:
2015-02-11 14:46:58
阅读次数:
199
下面代码转自CSDN:服务器:// Server.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "winsock2.h"#pragma comment(lib, "ws2...
分类:
编程语言 时间:
2015-02-11 14:23:06
阅读次数:
211