摘要:
转自:http://blog.csdn.net/cysjiang/article/details/76090902题意: 给你一个a序列,代表0到n-1的排列;一个b序列代表0到m-1的排列。问你可以找出多少种函数关系,满足f(i)=b[f(a[i])]; 分析:这个主要是找循环... 阅读全文
posted @ 2017-09-19 21:18
黑码的博客
阅读(139)
评论(0)
推荐(0)
摘要:
There is a tree with nn nodes, each of which has a type of color represented by an integer, where the color of node ii is cici. The path betwe... 阅读全文
posted @ 2017-09-19 21:18
黑码的博客
阅读(142)
评论(0)
推荐(0)
摘要:
sd0061, the legend of Beihang University ACM-ICPC Team, retired last year leaving a group of noobs. Noobs have no idea how to deal with mm com... 阅读全文
posted @ 2017-09-19 21:18
黑码的博客
阅读(174)
评论(0)
推荐(0)
摘要:
题意:有n个区间,对于第i个区间[li,ri]有liusing namespace std;namespace IO { const int MX = 4e7; //1e7占用内存11000kb char buf[MX]; int c, sz; void... 阅读全文
posted @ 2017-09-19 21:18
黑码的博客
阅读(125)
评论(0)
推荐(0)
摘要:
You are given an matrix M (consisting of nonnegative integers) and an integer K. For any submatrix of M’ of M define min(M’) to be the minimu... 阅读全文
posted @ 2017-09-19 21:18
黑码的博客
阅读(151)
评论(0)
推荐(0)
摘要:
B. The Bakery time limit per test2.5 seconds memory limit per test256 megabytes inputstandard input outputstandard outputSome time ago Slastyo... 阅读全文
posted @ 2017-09-19 21:18
黑码的博客
阅读(485)
评论(0)
推荐(0)
摘要:
You are given an array AA , and Zhu wants to know there are how many different array BB satisfy the following conditions?1≤Bi≤Ai1≤Bi≤Ai For ea... 阅读全文
posted @ 2017-09-19 21:18
黑码的博客
阅读(143)
评论(0)
推荐(0)
摘要:
Recently Duff has been a soldier in the army. Malek is her commander.Their country, Andarz Gu has n cities (numbered from 1 to n) and n - 1 bi... 阅读全文
posted @ 2017-09-19 21:18
黑码的博客
阅读(187)
评论(0)
推荐(0)
摘要:
题意:求正方体 n*n*n,固定其中一个点在(0,0,0) 问在正方体里又多少不同的直线。这个题的难点是如果排除掉重复的直线 例如 4,4,4 那么 2,2,2 和 4, 4,4 是相同的推荐两个博客:http://blog.csdn.net/lixuepeng_001/articl... 阅读全文
posted @ 2017-09-19 21:18
黑码的博客
阅读(156)
评论(0)
推荐(0)
摘要:
Given 5 integers: a, b, c, d, k, you’re to find x in a…b, y in c…d that GCD(x, y) = k. GCD(x, y) means the greatest common divisor of x and y.... 阅读全文
posted @ 2017-09-19 21:18
黑码的博客
阅读(132)
评论(0)
推荐(0)
浙公网安备 33010602011771号