摘要:
题目描述 Given an array A with length n a[1],a[2],...,a[n] where a[i] (1<=i<=n) is positive integer. Count the number of pair (l,r) such that a[l],a[l+1], 阅读全文
摘要:
题目描述 Small koala special love LiaoHan (of course is very handsome boys), one day she saw N (N<1e18) guys standing in a row, because the boys had some 阅读全文
摘要:
题目描述 In country A, some roads are to be built to connect the cities。However, due to limited funds, only some roads can be built.That is to say,if the 阅读全文
摘要:
题目描述 Once there was a pig, which was very fond of treasure hunting. The treasure hunt is risky, and it is inadvertently caught in the peach blossom tr 阅读全文
摘要:
题目描述 A mod-dot product between two arrays with length n produce a new array with length n. If array A is a1,a2,...,an and array B is b1,b2,...bn, then 阅读全文
摘要:
题目描述 We define Shuaishuai-Number as a number which is the sum of a prime square(平方), prime cube(立方), and prime fourth power(四次方). The first four Shuai 阅读全文
摘要:
题目描述 Yuanyuan Long is a dragon like this picture? I don’t know, maybe you can ask him. But I’m sure Yuanyuan Long likes ballons, he has a lot of ballo 阅读全文
摘要:
题目描述 BSD is a lazy boy. He doesn't want to wash his socks, but he will have a data structure called 'socks heap'.By maintaining this structure, he can 阅读全文
摘要:
题目描述 Two endpoints of two line segments on a plane are given to determine whether the two segments are intersected (there is a common point or there i 阅读全文