
思维
文章平均质量分 52
coderyzh
这个作者很懒,什么都没留下…
展开
-
796. 表面积
796. 表面积题面统计数据1 个讨论单点时限:1.0 sec内存限制:512 MB在n个圆柱体中挑选m个,按照半径从大到小圆心对齐叠在一起放在地面上(最大的一个在最下面),计算可能的最大可视表面积。输入格式第1行:整数n(1≤n≤1000)和m(1≤m≤n),一个空格分隔。第2,…,n+1行:每个圆柱体的半径Rcm与高度Hcm(1≤R,H≤106),一个空格分隔。输出格式一行中输出x。表示可能的最大表面积为x乘以圆周率的cm2。...原创 2021-03-20 19:50:39 · 451 阅读 · 0 评论 -
UPC Contest 1746 Bits Reverse
题目描述Now given two integers x and y, you can reverse every consecutive three bits in arbitrary number’s binary form (any leading zero can be taken into account) using one coin. Reversing (1,2,3) mean...原创 2019-05-03 08:40:25 · 118 阅读 · 0 评论 -
UPC Contest 1746 Greatest Common Divisor
题目描述There is an array of length n, containing only positive numbers.Now you can add all numbers by 1 many times. Please find out the minimum times you need to perform to obtain an array whose great...原创 2019-05-03 08:42:22 · 143 阅读 · 0 评论 -
UPC Contest 1747 THE TOWER
题目描述The Tower shows atall tower perched on the top of a rocky mountain. Lightning strikes, setting the building alight, and two people leap frnm the windows, head first and arms outstretched.It is...原创 2019-05-03 21:31:18 · 339 阅读 · 0 评论 -
UPC Contest 1748 Little Sub and Triangles
题目描述Little Sub loves triangles. Now he has a problem for you.Given n points on the two-dimensional plane, you have to answer many queries. Each query require you to calculate the number of triangle...原创 2019-05-04 20:51:24 · 252 阅读 · 0 评论 -
UPC Contest 1748 Little Sub and Triples
题目描述Little Sub has learned a new word ’Triple’, which usually means a group with three elements in it.Now he comes up with an interesting problem for you.Define Given an positive integer sequence...原创 2019-05-04 21:02:49 · 131 阅读 · 0 评论 -
UPC Contest 1748 Little Sub and Counting
题目描述Little Sub likes Math. Now he has a simple counting problem for you.Given an positive integer sequence A, for each Ai , Please calculate how many elements Aj in the sequence satisfi ed 输入...原创 2019-05-04 21:20:21 · 252 阅读 · 0 评论 -
Codeforces 1157D N Problems During K Days
题目传送门#include<iostream>#include<cmath>using namespace std;long long a[110000];long long s(long long m){ return m*(m+1)/2;}int main(){ int n,k; cin>>n>>...原创 2019-04-29 18:32:06 · 268 阅读 · 2 评论