Evanyou Blog 彩带
摘要: 题目描述 给定一个由N个元素组成的整数序列,现在有两种操作: 1 add a 在该序列的最后添加一个整数a,组成长度为N + 1的整数序列 2 mid 输出当前序列的中位数 中位数是指将一个序列按照从小到大排序后处在中间位置的数。(若序列长度为偶数,则指处在中间位置的两个数中较小的那个) 例1:1 阅读全文
posted @ 2018-03-06 20:01 five20 阅读(279) 评论(0) 推荐(0)
摘要: Description Farmer John's farm consists of a long row of N (1 <= N <= 100,000)fields. Each field contains a certain number of cows, 1 <= ncows <= 2000 阅读全文
posted @ 2018-03-06 19:47 five20 阅读(227) 评论(0) 推荐(1)
摘要: Description In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping 阅读全文
posted @ 2018-03-06 19:02 five20 阅读(157) 评论(0) 推荐(0)
摘要: The teacher points to the blackboard (Fig. 4) and says: "So here is the problem: There are three towers: A, B and C. There are n disks. The number n i 阅读全文
posted @ 2018-03-06 15:39 five20 阅读(219) 评论(0) 推荐(0)
Live2D