随笔分类 -  题库—POJ

摘要:题目描述 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约定见面的具体位置。不过青蛙们都是很乐观的,它们觉得只要一直朝着某个方向跳下去, 阅读全文
posted @ 2021-10-04 23:09 脂环 阅读(79) 评论(0) 推荐(0) 编辑
摘要:链接:https://ac.nowcoder.com/acm/problem/51073 来源:牛客网 题目描述 Urej loves to play various types of dull games. He usually asks other people to play with him 阅读全文
posted @ 2021-05-05 10:08 脂环 阅读(80) 评论(0) 推荐(0) 编辑
摘要:链接:https://ac.nowcoder.com/acm/problem/105660 来源:牛客网 题目描述 This puzzle consists of a random sequence of m black disks and n white disks on an oval-shap 阅读全文
posted @ 2021-05-04 15:36 脂环 阅读(74) 评论(0) 推荐(0) 编辑
摘要:链接:https://ac.nowcoder.com/acm/problem/50990 来源:牛客网 题目描述 For each prefix of a given string S with N characters (each character has an ASCII code betwe 阅读全文
posted @ 2021-03-04 15:41 脂环 阅读(74) 评论(0) 推荐(0) 编辑
摘要:N (2 <= N <= 8,000) cows have unique brands in the range 1..N. In a spectacular display of poor judgment, they visited the neighborhood 'watering hole 阅读全文
posted @ 2020-07-06 17:44 脂环 阅读(296) 评论(0) 推荐(0) 编辑
摘要:In an edge-weighted tree, the xor-length of a path p is defined as the xor sum of the weights of edges on p: ⊕ is the xor operator. We say a path the 阅读全文
posted @ 2020-06-03 14:37 脂环 阅读(228) 评论(0) 推荐(0) 编辑
摘要:In order to get from one of the F (1 <= F <= 5,000) grazing fields (which are numbered 1..F) to another field, Bessie and the rest of the herd are for 阅读全文
posted @ 2020-05-05 23:33 脂环 阅读(255) 评论(0) 推荐(0) 编辑
摘要:A number of schools are connected to a computer network. Agreements have been developed among those schools: each school maintains a list of schools t 阅读全文
posted @ 2020-05-03 12:05 脂环 阅读(217) 评论(0) 推荐(0) 编辑
摘要:Yixght is a manager of the company called SzqNetwork(SN). Now she's very worried because she has just received a bad news which denotes that DxtNetwor 阅读全文
posted @ 2020-04-03 14:27 脂环 阅读(174) 评论(0) 推荐(0) 编辑
摘要:You may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this is really true. Your program will read 阅读全文
posted @ 2020-04-02 23:38 脂环 阅读(180) 评论(0) 推荐(0) 编辑
摘要:Trees are an important component of the natural landscape because of their prevention of erosion and the provision of a specific ather-sheltered ecosy 阅读全文
posted @ 2020-03-26 22:57 脂环 阅读(171) 评论(0) 推荐(0) 编辑
摘要:The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the r 阅读全文
posted @ 2020-03-19 00:46 脂环 阅读(193) 评论(0) 推荐(0) 编辑
摘要:We give the following inductive definition of a “regular brackets” sequence: the empty sequence is a regular brackets sequence, if s is a regular brac 阅读全文
posted @ 2020-03-18 12:20 脂环 阅读(228) 评论(0) 推荐(0) 编辑
摘要:One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party to be held at farm #X (1 ≤ X ≤ N). A total 阅读全文
posted @ 2020-02-17 01:36 脂环 阅读(162) 评论(0) 推荐(0) 编辑
摘要:Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whe 阅读全文
posted @ 2020-02-16 23:53 脂环 阅读(206) 评论(0) 推荐(0) 编辑
摘要:You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. 阅读全文
posted @ 2020-02-16 17:00 脂环 阅读(180) 评论(0) 推荐(0) 编辑
摘要:在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将 阅读全文
posted @ 2020-02-16 15:43 脂环 阅读(125) 评论(0) 推荐(0) 编辑
摘要:Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but 阅读全文
posted @ 2020-02-15 00:02 脂环 阅读(139) 评论(0) 推荐(0) 编辑
摘要:An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to large 阅读全文
posted @ 2020-02-12 17:46 脂环 阅读(161) 评论(0) 推荐(0) 编辑
摘要:Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. Be 阅读全文
posted @ 2020-02-11 13:20 脂环 阅读(190) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
主题色彩