这题点的个数(#include #include #include #include #include #include #include #include #include #include #include #include #define Max(a,b) (((a) > (b)) ? (a)...
分类:
其他好文 时间:
2015-03-15 15:05:22
阅读次数:
159
题目大意:给定一个串S,求最小表示法
n
记得用unsigned char不然WA= = 数据真是逗- -
#include
#include
#include
#include
#define M 10001000
using namespace std;
int n;
unsigned char s[M];
int Min_Representation()
{
int i,j,...
分类:
其他好文 时间:
2015-03-14 09:38:23
阅读次数:
124
Strange: the IoC framework for Unity Extensions You may have heard that Strange is a Dependency Injection framework. I'm a little uncomfortable with t...
分类:
其他好文 时间:
2015-03-14 06:08:31
阅读次数:
411
有起点和终点,有方向,有最少次数,所以这道题很明显是一道bfs的题目,这题要利用vist数组来标记已走过的楼层,因为这题里面已走过的楼层是不可能在走第二遍的。第二次走和第一次走的选择没有任何的区别。#include"iostream"#include"stdio.h"#include"string....
分类:
其他好文 时间:
2015-03-11 23:17:44
阅读次数:
129
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #define sc(x) scanf("%d",&(x)) 8 #define pf(x) printf("%d\n", x) 9 #define ...
分类:
其他好文 时间:
2015-03-09 12:41:34
阅读次数:
176
题意:给你一个n层楼的电梯,起始楼层为a,有一个楼层b永远都不能访问。假设你现在所在的楼层为 x ,目标楼层为y,y必须满足条件|x-y| 6 #include 7 #include 8 #include 9 #include10 #include11 #include12 #include13 ....
分类:
其他好文 时间:
2015-03-08 22:56:51
阅读次数:
232
本题是一道二分题,但是要利用导数来求最小值。对原函数进行求导,得到的导函数为f(x)=42*pow(x,6)+48*pow(x,5)+21*pow(x,2)+10*x-y;因为046802200时,f(x)恒小于0,故F(x)单调递减。当y>t; while(t--){ double y...
分类:
其他好文 时间:
2015-03-07 23:55:14
阅读次数:
145
Sherlock Holmes received a note with some strange strings: "Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm". It took him only a minute to figure out that those strange strings are a...
分类:
其他好文 时间:
2015-03-07 14:10:19
阅读次数:
103
DescriptionGigel has a strange "balance" and he wants to poise it. Actually, the device is different from any other ordinary balance.It orders two arm...
分类:
其他好文 时间:
2015-03-04 15:57:26
阅读次数:
153
Godfather
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 4999
Accepted: 1729
Description
Last years Chicago was full of gangster fights and strange murd...
分类:
其他好文 时间:
2015-02-28 08:58:18
阅读次数:
119