上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
摘要: Highest Price in Supply Chain (25) 题目描述 输入描述: 输出描述: 输入例子: 输出例子: 阅读全文
posted @ 2019-02-08 16:07 *starry* 阅读(224) 评论(0) 推荐(0) 编辑
摘要: The Dominant Color 链接:https://www.nowcoder.com/questionTerminal/0495013675774f008541ea371eb5af17来源:牛客网Behind the scenes in the computer's memory, colo 阅读全文
posted @ 2019-02-08 11:43 *starry* 阅读(235) 评论(0) 推荐(0) 编辑
摘要: Find a way HDU - 2612 Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people 阅读全文
posted @ 2019-02-06 12:03 *starry* 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 小朋友排队 问题描述 n 个小朋友站成一排。现在要把他们按身高从低到高的顺序排列,但是每次只能交换位置相邻的两个小朋友。 每个小朋友都有一个不高兴的程度。开始的时候,所有小朋友的不高兴程度都是0。 如果某个小朋友第一次被要求交换,则他的不高兴程度增加1,如果第二次要求他交换,则他的不高兴程度增加2( 阅读全文
posted @ 2019-02-05 22:02 *starry* 阅读(347) 评论(0) 推荐(0) 编辑
摘要: Til the Cows Come Home POJ - 2387 Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wak 阅读全文
posted @ 2019-02-05 21:57 *starry* 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 分考场 问题描述 n个人参加某项特殊考试。 为了公平,要求任何两个认识的人不能分在同一个考场。 求是少需要分几个考场才能满足条件。 输入格式 第一行,一个整数n(1<n<100),表示参加考试的人数。 第二行,一个整数m,表示接下来有m行数据 以下m行每行的格式为:两个整数a,b,用空格分开 (1< 阅读全文
posted @ 2019-02-05 13:27 *starry* 阅读(968) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/gnivor/p/4509268.html https://blog.csdn.net/clevercaiquebrightme/article/details/86677595 阅读全文
posted @ 2019-02-05 11:45 *starry* 阅读(245) 评论(0) 推荐(0) 编辑
摘要: Play Game HDU - 4597 Alice and Bob are playing a game. There are two piles of cards. There are N cards in each pile, and each card has a score. They t 阅读全文
posted @ 2019-01-28 23:13 *starry* 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 猜字母 题目: A A 2 2 3 3 4 4, 一共4对扑克牌。请你把它们排成一行。 要求:两个A中间有1张牌,两个2之间有2张牌,两个3之间有3张牌,两个4之间有4张牌。 请填写出所有符合要求的排列中,字典序最小的那个。 例如:22AA3344 比 A2A23344 字典序小。当然,它们都不是满 阅读全文
posted @ 2019-01-28 22:47 *starry* 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 矩阵翻硬币 本文转自 https://blog.csdn.net/xiaofengcanyuelong/article/details/79255105 小明先把硬币摆成了一个 n 行 m 列的矩阵。 随后,小明对每一个硬币分别进行一次 Q 操作。 对第x行第y列的硬币进行 Q 操作的定义:将所有第 阅读全文
posted @ 2019-01-28 22:40 *starry* 阅读(264) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页