头文件
/**
* 功能:输出移位运算符的操作
* 时间:2014年8月12日20:01:32
* 作者:cutter_point
*/
#ifndef PRINTBINARY_H_INCLUDED
#define PRINTBINARY_H_INCLUDED
#include
using namespace std;
void printBinary(const unsigned cha...
分类:
编程语言 时间:
2014-08-12 22:15:04
阅读次数:
271
给定一个翻译表,即第i个字母用哪个字母表示
再给一个串,里面前面为密文,后面为明文,密文一定是完整的,但明文不完整或可能没有
求这个完整的前面密文后面明文的串
# include
# include
# include
using namespace std;
int len;
int next[100010];
char a1[100010],a2[1000...
分类:
其他好文 时间:
2014-08-12 22:09:24
阅读次数:
256
解题报告
题意:
求矩形周长和。
思路:
左扫上扫,扫过了。
#include
#include
#include
#include
#include
using namespace std;
struct Seg {
int lx,rx,ly,ry,h,v;
friend bool operator < (Seg a,Seg b)
{
...
分类:
其他好文 时间:
2014-08-12 22:06:34
阅读次数:
243
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2089
思路:用变量记录吉利数,和最高位为2的吉利数还有不是吉利数的个数。。。
code:
#include
#include
#include
using namespace std;
int dp[10][3]; //dp[i][j] ,i表示位数,j表示状态//dp[i...
分类:
其他好文 时间:
2014-08-12 22:06:24
阅读次数:
268
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
...
分类:
其他好文 时间:
2014-08-12 22:04:54
阅读次数:
271
hnldyhy// poj 1651 矩阵连乘 DP #include #include using namespace std;int dp[103][103],s[103];int main(){ int n,i,j,k,min; cin>>n; for(i=1;i>s[i]...
分类:
其他好文 时间:
2014-08-12 22:01:04
阅读次数:
244
#include #include using namespace std;int dp[105][1005], w[105],v[105],T,M,;int max(int x,int y) { return x>y?x:y; }int f(int x,int y){ int t; if (d.....
分类:
其他好文 时间:
2014-08-12 21:57:24
阅读次数:
339
#include #include using namespace std;int dp[105][1005], w[105],v[105],T,M;int max(int x,int y){ return x>y?x:y; }void f( ){ int i,j; for (i=1; ...
分类:
其他好文 时间:
2014-08-12 21:55:54
阅读次数:
353
最近安装了CentOS7,内核总算升级到3.10,支持Linux容器,network namespace······· 但是安装完之后,发现ifconfig没看到熟悉的eth0,却是enp0s3,虽然只是一个网卡代号,但明显会影响一些脚本,带来诸多不方便,也不知道CentOS为何设置成这样...
分类:
其他好文 时间:
2014-08-12 21:53:44
阅读次数:
587
70 371 10069 11 2#include #include using namespace std;int dp[105][1005], w[105],v[105],T,M;int max(int x,int y){ return x>y?x:y; }void f( ){ ...
分类:
其他好文 时间:
2014-08-12 21:50:24
阅读次数:
299