
编程题解
文章平均质量分 76
身价五毛
你永远不知道你的对手正在做什么
展开
-
【编程题解】Good or bad?
Description There are two kinds of people living on an island, those who are good and those who are bad. A good man always speaks the truth, and a bad man always lies. Each member on the island has an integer number to distinguish each member like ID.原创 2020-06-15 15:18:25 · 376 阅读 · 0 评论 -
【编程题解】Drive car
Description n individuals want to travel, the place to stay is far from the restaurant, you need to drive by, but there is only one car in the hotel The car can sit for a maximum of three people at a time, and each person drives to the restaurant alone f原创 2020-06-15 15:11:37 · 427 阅读 · 0 评论 -
【编程题解】Workaholic Xiaoming
Description XiaoMing is a workaholic and has a lot of things to do, so he has an infinite grid pattern. In the initial state, all the grids are blank. Xiaoming then performs n operations, each of which selects a row or a column, and selects two end point原创 2020-06-14 21:19:22 · 296 阅读 · 0 评论 -
【编程题解】Children’s day
Description Children'sDay is coming, the teachers with the children to go outing, a teacher can not manage so many people, so the children need to be divided into two groups. First,each team has at least one member; Second,everyone belongs to one team;原创 2020-06-14 21:17:12 · 326 阅读 · 0 评论 -
【编程题解】Curry’s problem
Description Mr.Durant gave Curry a sequence named A,and the length is n. In this sequence, all the Numbers are different. For each number Ai in A, can you help curry to find: And j(call it Pi) makes the above formula the have minimum value . If the min原创 2020-06-14 21:14:36 · 235 阅读 · 0 评论 -
【编程题解】Pig likes running
Description Popo is a maverick pig who runs around an n*n outside of the field every day. Everytime it runs n+1 unit length, it will take a break at that location. When it rests at a certain point for the second time, it will end today's running. Obvio原创 2020-06-14 21:07:48 · 268 阅读 · 0 评论 -
【编程题解】Count number
Description In an undirected connected graph, if an edge is deleted and the graph is divided into two disconnected parts, the edge is called a cut edge. Find the number of undirected connected graphs satisfying the following conditions: 1. It is compose原创 2020-06-14 21:03:36 · 604 阅读 · 0 评论 -
【编程题解】One piece
Description Luffy wants to find one piece through the great route, and there are many other pirates on the road to stop him. He knew that as long as he defeated the pirate with some physical strength, the pirate would always escort him. On the way, he w原创 2020-06-14 21:00:07 · 265 阅读 · 0 评论 -
【编程题解】Kobe’s bread
Description Kobe opened a bakery, a counter has N rows of shelves, each row of shelves can store K bread, and each bread has its fresh-keeping deadline days, such as 1, 3, 4,and so on. Kobe likes to start with the most neatly arranged row, because in thi原创 2020-06-14 20:55:45 · 297 阅读 · 1 评论 -
【编程题解】88888888...
Description Eight is a lucky number in our daily life. If every digit of a number consists of eight,it is considered a lucky number. The teacher now gave Lili a positive integer L, hoping that she could find out how many positive integers made up of 8 to原创 2020-06-14 20:53:11 · 468 阅读 · 1 评论 -
【编程题解】Tree or not?
Description Please input the sequence of N pairs of numbers (for example: N = 2, the sequence of numbers is (1, 2), (2, 3)). These numbers represent the nodes of the tree, and the nodes represented by the numbers on the left are the parent nodes of the no原创 2020-06-14 20:49:43 · 235 阅读 · 0 评论 -
【编程题解】Game of Throne
Description After the death of DaenerysStormborn of the House Targaryen, the First of Her Name, the Unburnt, Queen of Meereen, Queen of the Andals and the Rhoynar and the First Men, Khaleesi of theGreat Grass Sea, Breaker of Chains and Mother of Dragons,原创 2020-06-14 20:43:57 · 341 阅读 · 0 评论