随笔分类 - 各种比赛
摘要:Recently, TeaTree acquire new knoledge gcd (Greatest Common Divisor), now she want to test you. As we know, TeaTree is a tree and her root is node 1,
阅读全文
摘要:B . A prince of the Science Continent was imprisoned in a castle because of his contempt for mathematics when he was young, and was entangled in some
阅读全文
摘要:E . You promised your girlfriend a rounded cake with at least SSS strawberries. But something goes wrong, you don't have the final cake but an infinit
阅读全文
摘要:A . After Incident, a feast is usually held in Hakurei Shrine. This time Reimu asked Kokoro to deliver a Nogaku show during the feast. To enjoy the sh
阅读全文
摘要:B. Feeling hungry, a cute hamster decides to order some take-away food (like fried chicken for only 303030 Yuan). However, his owner CXY thinks that t
阅读全文
摘要:The Power Cube is used as a stash of Exotic Power. There are n cities numbered 1,2,…,n where allowed to trade it. The trading price of the Power Cube
阅读全文
摘要:B . Problem DescriptionChiaki has n strings s1,s2,…,sn consisting of '(' and ')'. A string of this type is said to be balanced:+ if it is the empty st
阅读全文
摘要:A. 链接:https://www.nowcoder.com/acm/contest/147/A来源:牛客网 题目描述 Niuniu has recently learned how to use Gaussian elimination to solve systems of linear equ
阅读全文
摘要:链接:https://www.nowcoder.com/acm/contest/148/D来源:牛客网题目描述Prefix Sum is a useful trick in data structure problems.For example, given an array A of length
阅读全文
摘要:链接:https://www.nowcoder.com/acm/contest/144/C来源:牛客网 题目描述 Oak is given N empty and non-repeatable sets which are numbered from 1 to N. Now Oak is going
阅读全文
摘要:链接:https://www.nowcoder.com/acm/contest/145/C来源:牛客网 C .题目描述 A binary string s of length N = 2n is given. You will perform the following operation n ti
阅读全文
摘要:2088: 电音之王 描述 题目描述: 终于活成了自己讨厌的样子。 听说多听电音能加快程序运行的速度。 定义一个数列,告诉你a0,a1,m0,m1,ca\_0,a\_1,m\_0,m\_1,ca0,a1,m0,m1,c,定义an=m0an−1+m1an−2+ca\_n=m\_0a\_{n-1
阅读全文
摘要:题目描述: 恬恬的生日临近了。宇扬给她准备了一个大 蛋糕。 正如往常一样,宇扬在蛋糕上插了nnn支蜡烛,并把蛋糕分为mmm个区域。因为某种原因,他必须把第iii根蜡烛插在第aia\_iai个区域或第bib\_ibi个区域。区域之间是不相交的。宇扬在一个区域内同时摆放xxx支蜡烛就要花费x2x^2
阅读全文
摘要:A . Plague Inc. is a famous game, which player develop virus to ruin the world. JSZKC wants to model this game. Let's consider the world has N\times M
阅读全文
摘要:比赛链接 :https://www.nowcoder.com/acm/contest/63#question A . 题目描述 小杰是学院中公认的计算机大神,有一天小杰受邀去机房帮忙接网线,他三下五除二地就帮忙完成了。可是善于思考地他仍意有未尽,他觉得这次的线路有许多奇妙的性质,故来请教你。 机房有
阅读全文
摘要:Lily is interested in hyperspace recently, and she is trying to solve an easy problem now. Given an n-dimensional hyperspace, assuming each dimension
阅读全文
摘要:大神博客 :http://m.blog.csdn.net/just_sort/article/details/78775866 题目描述 在acimo星球, tabris 是一名勇敢的屠龙勇士,在上绿岛屠龙前决定挑选N种装备武装自己,现在每种装备有两个,**但每种装备tabris必须选择拿一个**,
阅读全文