随笔分类 - 水水更健康
摘要:/*写搜索WA了。。赛后发现直接暴力不会超啊,,,*//************************************************* Author :Powatr* Created Time :2015-8-30 14:55:10* File Name ...
阅读全文
摘要:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3827/*输出用f*//************************************************* Author :Powatr* Cre...
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=5400/************************************************* Author :Powatr* Created Time :2015-8-18 13:00...
阅读全文
摘要:http://poj.org/problem?id=3279/*枚举第一行所有的状态,接下来的行都已经确定了,字典序最小输出 *//************************************************* Author :Powatr* Created Tim...
阅读全文
摘要:MZL loves xor very much.Now he gets an array A.The length of A is n.He wants to know the xor of all (Ai+Aj)(1≤i,j≤n)The xor of an array B is defined a...
阅读全文
摘要:Amr loves Chemistry, and specially doing experiments. He is preparing for a new interesting experiment.Amr hasndifferent types of chemicals. Each chem...
阅读全文
摘要:DescriptionTomash keeps wandering off and getting lost while he is walking along the streets of Berland. It's no surprise! In his home town, for any p...
阅读全文
摘要:Problem DescriptionOO has got a array A of size n ,defined a function f(l,r) represent the number of i (li) satisfy aimod aj=0,now OO want to know∑i=1...
阅读全文
摘要:Young theoretical computer scientist wyh2000 is teaching young pupils some basic concepts about strings.A subsequence of a stringsis a string that can...
阅读全文
摘要:lzs种了n棵树,每棵树每天长高一定的高度。某一天,lzs想知道树长得怎么样了,你能求出那一天最高的树有多高吗?Input有多组测试数据,每组数据第一行输入两个整数n,m(1#include#includeusing namespace std;const int MAX = 100000 + 10...
阅读全文
摘要:Wangpeng has N clothes, M pants and K shoes so theoretically he can have N×M×K different combinations of dressing.One day he wears his pants Nike, sho...
阅读全文
摘要:Andrewid the Android is a galaxy-famous detective. He is now investigating the case of vandalism at the exhibition of contemporary art.The main exhibi...
阅读全文
摘要:Problem DescriptionThe description of this problem is very short. Now give you a string(length N), and ask you the max sum of the substring which the ...
阅读全文
摘要:The developers of Looksery have to write an efficient algorithm that detects faces on a picture. Unfortunately, they are currently busy preparing a co...
阅读全文
摘要:DescriptionSuppose we have n ropes of equal length and we want to use them to lift some heavy object. A tear-off weight t is associated to each rope, ...
阅读全文
摘要:Description一条小溪尺寸不大,青蛙可以从左岸跳到右岸,在左岸有一石柱L,面积只容得下一只青蛙落脚,同样右岸也有一石柱R,面积也只容得下一只青蛙落脚。有一队青蛙从尺寸上一个比一个小。我们将青蛙从小到大,用1,2,…,n编号。规定初始时这队青蛙只能趴在左岸的石头L上,当然是一个落一个,小的落在...
阅读全文
摘要:You are given a non-negative integern, its decimal representation consists of at most100digits and doesn't contain leading zeroes.Your task is to dete...
阅读全文
摘要:You are given strings. Your task is to determine if the given stringscontains two non-overlapping substrings "AB" and "BA" (the substrings can go in a...
阅读全文
摘要:You havenproblems. You have estimated the difficulty of thei-th one as integerci. Now you want to prepare a problemset for a contest, using some of th...
阅读全文
摘要:Problem DescriptionA number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15,...
阅读全文

浙公网安备 33010602011771号