题意:给一个N行M列的数字矩阵的行和以及列和,每个元素的大小不超过K,问这样的矩阵是否存在,是否唯一,唯一则求出各个元素N(1 ≤ N ≤ 400) , M(1 ≤ M ≤ 400), K(1 ≤ K ≤ 40)。
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4888
——>>建图:
1)超级源S = 0,超级汇T = N + M + 1;
...
HDU 5062 Beautiful Palindrome Number(数学题)...
分类:
其他好文 时间:
2014-10-25 10:36:49
阅读次数:
160
Building Fire Stations
Time Limit: 5 Seconds
Memory Limit: 131072 KB Special Judge
Marjar University is a beautiful and peaceful place. There are N buildings and
N - 1 bidirection...
分类:
其他好文 时间:
2014-10-24 20:45:46
阅读次数:
258
To be beautiful means to be yourself You don't need to be accepted by others. You need to accept yourself真正美好的事就是做自已,不需要被别人认可,只需接受真实的自我To be beautiful...
分类:
其他好文 时间:
2014-10-23 15:52:22
阅读次数:
165
题目:BeautifulString时间限制:10000ms单点时限:1000ms内存限制:256MB描述Wesayastringisbeautifulifithastheequalamountof3ormorecontinuousletters(inincreasingorder.)Herearesomeexampleofvalidbeautifulstrings:"abc","cde","aabbcc","aaabbbccc".Herearesomeexampleofinv..
分类:
其他好文 时间:
2014-10-21 15:37:44
阅读次数:
157
昨天碰巧看到一道微软校招的编程题,题目大意如下:如果一个字符串包括三组或者更多组的连续升序字母,每组长度相等,那么我们就称这个字符串是Beautiful String如下是一些Beautiful String的例子:abc、cde、aabbcc、aaabbbccc这些不是Beautiful Stri...
分类:
其他好文 时间:
2014-10-20 14:48:53
阅读次数:
288
#include"stdfx.h"int main(){ string strPath = "D:\\TEST\\vs2013Test\\TextQuery\\Beautiful Story.txt"; vector strData; ifstream sourceFiles(strPath, io...
分类:
编程语言 时间:
2014-10-16 18:12:02
阅读次数:
190
这一次又只出了一题,第二题没有分析好,竟然直接copy代码,不过长见识了。。
第一题给了一些限制条件,自己没有分析好,就去乱搞,结果各种不对,后来有读题才发现。。暴力乱搞。。
题目:
Beautiful Palindrome Number
Time Limit: 3000/1500 MS (Java/Others) Memory Limit: 32768/32768 K ...
分类:
其他好文 时间:
2014-10-16 00:46:21
阅读次数:
382
Building Fire Stations
Time Limit: 5 Seconds Memory Limit: 131072 KB Special Judge
Marjar University is a beautiful and peaceful place. There are N buildings and N - 1 bidirectional ro...
分类:
其他好文 时间:
2014-10-13 12:21:25
阅读次数:
123
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5062题目意思:给出 N,找出 1 ~ 10^N 中满足 Beautiful Palindrome Numbers (BPN)的数量有多少。 满足 BPN 的条件有两个:(1)回文串 (2)对称的部分从....
分类:
其他好文 时间:
2014-10-12 13:30:28
阅读次数:
185