摘要: 题目概括 题目描述 蒟蒻HansBug在一本数学书里面发现了一个神奇的数列,包含$N$个实数。他想算算这个数列的平均数和方差。 输入输出格式 输入格式 第一行包含两个正整数$N$、$M$,分别表示数列中实数的个数和操作的个数。 第二行包含$N$个实数,其中第$i$个实数表示数列的第$i$项。 接下来 阅读全文
posted @ 2019-11-12 21:28 秦淮岸灯火阑珊 阅读(352) 评论(0) 推荐(1) 编辑
摘要: 题目概括 题目描述 Farmer John has arranged his N (1 ≤ N ≤ 5,000) cows in a row and many of them are facing forward, like good cows. Some of them are facing ba 阅读全文
posted @ 2019-11-12 21:08 秦淮岸灯火阑珊 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 题目概述 题目描述 Farmer John has noticed that his cows often move between nearby fields. Taking this into account, he wants to plant enough grass in each of 阅读全文
posted @ 2019-11-12 20:22 秦淮岸灯火阑珊 阅读(239) 评论(0) 推荐(0) 编辑