摘要:
D. Valid SetsAs you know, an undirected connected graph withnnodes andn - 1edges is called atree. You are given an integerdand a tree consisting ofnno... 阅读全文
posted @ 2015-11-08 23:51
meekyan
阅读(223)
评论(0)
推荐(0)
摘要:
C. Palindrome TransformationNam is playing with a string on his computer. The string consists ofnlowercase English letters. It is meaningless, so Nam ... 阅读全文
posted @ 2015-11-08 23:46
meekyan
阅读(234)
评论(0)
推荐(0)
摘要:
B. OR in MatrixLet's define logicalORas an operation on two logical values (i. e. values that belong to the set{0, 1}) that is equal to1if either or b... 阅读全文
posted @ 2015-11-08 23:41
meekyan
阅读(313)
评论(0)
推荐(0)
摘要:
A. Calculating FunctionFor a positive integernlet's define a functionf:f(n) = - 1 + 2 - 3 + .. + ( - 1)nnYour task is to calculatef(n)for a given int... 阅读全文
posted @ 2015-11-08 23:39
meekyan
阅读(283)
评论(0)
推荐(0)

浙公网安备 33010602011771号