摘要: 链接: "https://nanti.jisuanke.com/t/42582" Description Bob is hungry now and he needs to eat some food. Alice puts n dishes of food in front of him, num 阅读全文
posted @ 2020-01-13 17:13 Artoriax 阅读(338) 评论(0) 推荐(0)
摘要: Description Byteasar has a tree $T$ with $n$ vertices conveniently labeled with $1,2,...,n$. Each vertex of the tree has an integer value $v_i$. The v 阅读全文
posted @ 2020-01-13 16:45 Artoriax 阅读(109) 评论(0) 推荐(0)
摘要: Description Claris和NanoApe在玩石子游戏,他们有n堆石子,规则如下: 1. Claris和NanoApe两个人轮流拿石子,Claris先拿。 2. 每次只能从一堆中取若干个,可将一堆全取走,但不可不取,拿到最后1颗石子的人获胜。 不同的初始局面,决定了最终的获胜者,有些局面下 阅读全文
posted @ 2020-01-13 16:24 Artoriax 阅读(79) 评论(0) 推荐(0)
摘要: Description Let’s assume there is a new chess piece named Super rook. When placed at a cell of a chessboard, it attacks all the cells that belong to t 阅读全文
posted @ 2020-01-13 16:01 Artoriax 阅读(235) 评论(0) 推荐(0)
摘要: Description You're given a sequence s of N distinct integers. Consider all the possible sums of three integers from the sequence at three different in 阅读全文
posted @ 2020-01-13 15:37 Artoriax 阅读(215) 评论(0) 推荐(0)
摘要: Description King OMeGa catched three men who had been streaking in the street. Looking as idiots though, the three men insisted that it was a kind of 阅读全文
posted @ 2020-01-13 15:16 Artoriax 阅读(110) 评论(0) 推荐(0)
摘要: Description Given $N$ integers in the range $[ 50\, 000, 50\, 000]$, how many ways are there to pick three integers $a_ i$, $a_ j$, $a_ k$, such that 阅读全文
posted @ 2020-01-13 11:41 Artoriax 阅读(306) 评论(0) 推荐(0)
摘要: Description Calculate A B. Input Each line will contain two integers A and B. Process to end of file. Note: the length of each integer will not exceed 阅读全文
posted @ 2020-01-13 11:14 Artoriax 阅读(233) 评论(0) 推荐(0)