上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 60 下一页
摘要: 题目描述 摩尔瓦多的移动电话公司摩基亚(Mokia)设计出了一种新的用户定位系统。和其他的定位系统一样,它能够迅速回答任何形如“用户C的位置在哪?”的问题,精确到毫米。但其真正高科技之处在于,它能够回答形如“给定区域内有多少名用户?”的问题。 在定位系统中,世界被认为是一个W×W的正方形区域,由1× 阅读全文
posted @ 2018-04-12 19:04 蒟蒻JHY 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Discription Problem statement is simple. Given A and B you need to calculate S(A,B) . Here, f(n)=n, if n is square free otherwise 0. Also f(1)=1. Inpu 阅读全文
posted @ 2018-04-12 16:45 蒟蒻JHY 阅读(203) 评论(0) 推荐(0) 编辑
摘要: Discription 有一棵以1为根的树,他有n个结点,用1到n编号。第i号点有一个值vi。 现在可以对树进行如下操作: 步骤1:在树中选一个连通块,这个连通块必须包含1这个结点。 步骤2:然后对这个连通块中所有结点的值加1或者减1。 问最少要经过几次操作才能把树中所有结点都变成0。 注意:步骤1 阅读全文
posted @ 2018-04-12 14:37 蒟蒻JHY 阅读(396) 评论(0) 推荐(0) 编辑
摘要: Discription Ilya got tired of sports programming, left university and got a job in the subway. He was given the task to determine the escalator load f 阅读全文
posted @ 2018-04-12 10:23 蒟蒻JHY 阅读(305) 评论(0) 推荐(0) 编辑
摘要: Discription Ostap already settled down in Rio de Janiero suburb and started to grow a tree in his garden. Recall that a tree is a connected undirected 阅读全文
posted @ 2018-04-12 09:28 蒟蒻JHY 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 题目描述 PDF 输入输出格式 输入格式: 输出格式: 输入输出样例 输入样例#1: 3 2 1 2 2 0 2 2 0 1 4 1 1 1 0 1 3 1 2 0 输出样例#1: Case 1: 3 Case 2: 2 子集dp经典题,, #include<bits/stdc++.h> #defi 阅读全文
posted @ 2018-04-11 21:11 蒟蒻JHY 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 题目描述 PDF 输入输出格式 输入格式: 输出格式: 输入输出样例 输入样例#1: 3 10 5 20 1 1 1 2 2 0 输出样例#1: 23.348371% 0.000000% 100.000000% 发现求的是一个和 反比例函数有关的积分,吓得我赶紧去学习了一波积分(之前一直不会还这么淡 阅读全文
posted @ 2018-04-11 20:50 蒟蒻JHY 阅读(236) 评论(0) 推荐(0) 编辑
摘要: Discription N ladies attend the ball in the King's palace. Every lady can be described with three values: beauty, intellect and richness. King's Maste 阅读全文
posted @ 2018-04-11 16:17 蒟蒻JHY 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 4766: 文艺计算姬 Description "奋战三星期,造台计算机"。小W响应号召,花了三星期造了台文艺计算姬。文艺计算姬比普通计算机有更多的艺 术细胞。普通计算机能计算一个带标号完全图的生成树个数,而文艺计算姬能计算一个带标号完全二分图的生成树 个数。更具体地,给定一个一边点数为n,另一边点 阅读全文
posted @ 2018-04-11 15:35 蒟蒻JHY 阅读(300) 评论(0) 推荐(0) 编辑
摘要: Discription It's the turn of the year, so Bash wants to send presents to his friends. There are n cities in the Himalayan region and they are connecte 阅读全文
posted @ 2018-04-11 13:58 蒟蒻JHY 阅读(321) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 60 下一页