UVA 10499 - The Land of Justice(数学)

Delta-Sigma调制(DSM)技术 前言 数字信号处理和通信系统的性能很大程度上受到了模拟信号到数字信号转换接口——ADC的精度和分辨率的限制。而传统的线性脉冲编码调制(PCM)ADC受到了制造工艺的限制,无法达到很高的分辨率。但基于Delta-Sigma调制技术的ADC可以在现有工艺下实现高分辨率(大于16位),同时由于结构简单,所以易于实现。低成本高性能使得Delta-Sigma调制技术得到了广泛的应用。 Delta-Sigma型ADC的结构原理图如下图所示: 它最大的优势在于仅用1位ADC进行数据转换,同时其模拟电路部分结构简单不需要 阅读详情

The Land of Justice
Input: standard input
Output: standard output
Time Limit: 4 seconds

In the Land of Justice the selling price of everything is fixed all over the country. Nobody can buy a thing and sell it in double price. But, that created problems for the businessmen. They left their business and went to the production. So, after some days everybody was in production and nobody in business. And the people didn’t get their necessary things though the country was self-sufficient in every sector.

 

The government became very much anxious. But, they were intelligent enough to call the mathematicians.

 

The mathematicians gave a solution.  They suggested setting the surface area of an object as its selling-unit instead of its volume. Actually the clever mathematicians were very much interested to establish their own business.

 

Now, the government asks the programmers to build the software that would calculate the profit things.

 

Here your job is to calculate the business profit for a solid sphere. A businessman buys a complete sphere and to maximize his profit he divides it in n equal parts. All cut should go through the axis of the sphere. And every part should look like the picture below:

 

Input

You are given a sequence of integers N (0 < N < 231), indicating the numbers of parts of the sphere. The input file is terminated with a negative number. This number should not be processed.

 

Output

Calculate the profit over the sold pieces. The result should be in percentage and rounded to the nearest integer.

  

Sample input

2

2

-1

 

Sample output

50%

50%


Problemsetter:  Tazrian Khan, University of Dhaka


================================

一个球体,求切开n份时表面积增加的百分比


切成n份表面积就增加n个圆,即增加的百分比为(n*pi*r*r) / (4*pi*r*r) *100%,约分后就得到 n/4*100%

注意当n=1时输出0%

"%"的输出方法:%%


#include <iostream>
#include <cstdio>

using namespace std;

int main()
{
    int n;
    while(cin>>n)
    {
        if(n<0) break;
        if(n==1) printf("0%%\n");
        else printf("%.0lf%%\n",n*100.0/4);
    }
    return 0;
}


YOLOv13涨点改进 | 独家创新、Neck特征融合改进篇 | TGRS 2024 | 引入 EFC增强跨层特征相关创新点,含MSEF(多尺度有效融合模块)二次创新模块,助力遥感目标检测涨点 本文提出EFC(增强跨层特征相关)模块改进YOLOv13模型,显著提升小目标检测性能。EFC通过分组特征聚焦(GFF)和多层特征重建(MFR)增强特征融合效率,在小目标检测任务中平均精度(mAP)提升1.7%,同时减少模型计算量。实验验证EFC在VisDrone等数据集上的有效性,改进后的模型能更好地保留小目标细节信息。还提出二次创新模块MSEF,集成通道和位置注意力机制,进一步优化特征表达。文章详细介绍了模块配置方法和yaml文件修改步骤,为小目标检测任务提供了实用的改进方案。 阅读详情

相关推荐

EtherCAT-1 技术概述

1.EtherCAT简介①开放的技术EtherCAT全称EtherNet Control Automation Technology,是由德国倍福(Beckhoff)公司提出的一种实时以太网技术。EtherCAT是一种开放但不开源的技术,意味着您可以任意使用这项技术,但若要进行相关设备的开发,则需要向倍福公司获取相关授权。②快速性相比传统现场总线,EtherCAT的数据传输速率有了极大的提升,可选10Mbit/s或100Mbit/s,甚至依托补充

tianya_xuan的博客 3543

code1099 字串变换

BFS 听上去蛮简单的,实际编程复杂度较高(至少一个快睡着的人是这么认为的...) 抄的题解(感谢题解的作者<'_'>): #include<queue> #include<iostream> #include<string> #include<set> using namespace std; stru...

dingcao9109的博客 1428

全国充电站分布数据

CnOpenData推出的充电站数据覆盖全国34个省份的3万条数据,包含充电站名称、省份名称、省份代码、商圈、经纬度等地理信息以及商业类型、评分、消费等衍生信息,能为城市规划、环境科学、市场分析、技术发展和社会经济研究等多个领域提供宝贵的数据支持。

Sunny9qx的博客 4027

10499 - The Land of Justice

Problem H The Land of Justice Input: standard input Output: standard output Time Limit: 4 seconds In the Land of Justice the selling price of everything is fixed all over the country. Nobody

SIOFive的专栏 1051

企业微信消息推送(一)接收消息服务器URL

企业微信限制过多,公司域名所有权检验不通过。采用接收消息服务器URL的方式。使用vscode,将UTF-8 BOM文本编码改为UTF-8。配置接收消息服务器URL。

Xiaoweidumpb 1万+

(二)OpenClaw-连接即时通讯平台-集成飞书完整配置指南

本文详细介绍了如何将OpenClaw与飞书机器人对接,实现通过飞书聊天窗口下达指令自动执行任务的高效协作模式。主要内容包括:1)OpenClaw服务部署验证和飞书账号准备;2)在飞书开放平台创建企业自建应用、添加机器人能力、获取凭证和开通必要权限;3)OpenClaw服务端的首次配置,包括设置飞书通道参数和启动长连接。文章提供了完整的操作步骤和截图指引,帮助用户快速完成对接配置,实现AI自动化助手功能。

直到世界的尽头 2246

UVA10499 The Land of Justice【水题】

In the Land of Justice the selling price of everything is fixed all over the country. Nobody can buy a thing and sell it in double price. But, that created problems for the businessmen. They left thei...

海岛Blog 628

openHarmony之AI Engine:万字讲解如何在应用、开发板上接入AI大模型调用

本文章介绍如何在 OpenHarmony 开发板上集成和部署各类 AI 大模型,实现终端直接聊天功能,并为语音助手、智能机器人等应用提供 AI 接口支持。

m0_67505153的博客 620

[解题报告]10499 - The Land of Justice

题目大意 题目原文:http://uva.onlinejudge.org/external/104/10499.pdf 背景: 在公平国内每件东西的售价都是固定的。没有人能够买入一个东西后用2倍的价钱卖出去。但是这也产生了市场问题,大家都不做生意而跑去做制造了。所以过了不久之后,每个人都在制造东西,但却没有人在做生意。这使得人们没有办法得到日常所需,虽然这个国家在...

weixin_34226182的博客 277

RK3588 固定hdmiin的dev/videoX节点

RK3588 固定hdmiin的dev/videoX节点

目前从事linux驱动开发,多交流多学习吧 2050

2026华为OD机考双机位C卷++ 双机位B卷 + 双机位A卷 + 2025C/B/A卷+ 往年真题 - 题库目录分值说明 + 考点说明+在线OJ

2025华为OD机考双机位C卷++ 双机位B卷 + 双机位A卷 + 2025C/B/A卷+ 往年真题 - 题库目录分值说明 + 考点说明+在线OJ

算法大师! 5万+

UVa 10499 - The Land of Justice

题目: 分析: 说明:

小白菜又菜 813

【控制模块算法】控制理论的进修之路

系列文章目录 提示:这里可以添加系列文章的所有文章的目录,目录需要自己手动添加 TODO:写完再整理 文章目录系列文章目录前言一、(经典)自动控制理论【本科阶段】二、现代控制理论【本科阶段】三、最优控制理论【硕士阶段】总结 前言 认知有限,望大家多多包涵,有什么问题也希望能够与大家多交流,共同成长! 本文先对对控制理论的理解做个简单的介绍,具体内容后续再更,其他模块可以参考去我其他文章 提示:以下是本篇文章正文内容 一、(经典)自动控制理论【本科阶段】 一般控制工程、自动化相关的考研专业课就是自动

qq_35635374的博客 1448

UVa 10499 The Land of Justice(简单数学)

10499 - The Land of Justice Time limit: 3.000 seconds http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1440 In the Land of Justice the selling pric

AC,∑ndless 1120

NTscan扫描工具

ntscan是一个扫描器,可以扫描没有密码和弱密码的共享,先到配置文件中填写猜测的用户名和密码,扫描过程中右侧出现的是扫描日志。

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

UVA 10499 (暑假-数学 -H - The Land of Justice)

Problem H The Land of Justice Input: standard input Output: standard output Time Limit: 4 seconds In the Land of Justice the selling price of everything is fixed all over the country. Nobody

Bingo 1813

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

Uva 10499 The Land of Justice

Problem H The Land of Justice Input: standard input Output: standard output Time Limit: 4 seconds In the Land of Justice the selling price of everything is fixed all over the country. Nobody

小G的ACM之路 949

efm32 入门.pdf

本PDF共计22页,介绍的是操作驱动API,下载与否自己斟酌。

UVA 10499-The Land of Justice

UVA 10499-The Land of Justice题目大意:切一个球,求增加的表面积。解题思路:根据球表面积公式4*pai*r^2和圆面积公式即可算出,注意,一刀时没增加。#include <stdio.h> #include <iostream> using namespace std; int main() { double a; while(scanf("%lf", &

ZeroLH00的博客 439

UVA10499 - The Land of Justice

题目不太好懂,看了别人的翻译。大概意思就是,球形表面积增加量比上原表面积,其实就是n/4*100% 题目: Problem H The Land of Justice Input: standard input Output: standard output Time Limit: 4 seconds In the Land of Justice theselling

308

uva 10499 - The Land of Justice

The Land of Justice Input: standard input Output: standard output Time Limit: 4 seconds In the Land of Justice the selling price of everything is fixed all over the country. Nobody can buy a t

uva code 1381

UVA - 10499 The Land of Justice

2016-07-22 UVA - 10499 The Land of Justice 题目大意:求切了 n 刀后增加的表面积是原来的百分之多少。 解题思路:第一刀无法切开,第二刀多了四个半圆面,之后每刀多两个半圆面。 原始面积:4 × PI × r × r 一个半圆面:PI × r × r / 2 每刀增加两个半圆面即 1 / 4 化为百分数即 *25,精度问题直接

振丿Love 299

UVA 10499 The Land of Justice

题目正义的土地分析问每切一片,增加的面积(ΔS,即切下来的如图阴影面积和球体的阴影面积)对原球体表面积(S)的占比(k)。 k=ΔSS=πR2n4πR2=n4k=\frac{ΔS}{S}=\frac{πR^2n}{4πR^2}=\frac{n}{4}代码#include <stdio.h>int main(void) { int n; while (scanf("%d", &n)

已注销的博客 366

uva-10499 - The Land of Justice

有一段时间没有写博客了,之前是因为考试,然后放假之后,为哥哥老是抢我的电脑用,我也只能做题,顾不上写博客,现在来到学校了,终于可以写了,不容意啊,泪奔~~~ 这道题目很简单,就是题意有点难以理解,对于我来说,理解题意,还是一大困难。。。。 题意:一个球的表面积是原先的值,然后把这个球过球心平均分成N份后的表面积和是后来的值,求后来的值比原先的值增加了百分之多少~~~ #include in

青竹梦 1475

uva 10499 The Land of Justice

uva 10499 The Land of Justice 题目大意:求对一个球n等分之后多出的表面积是原来表面积的百分之几。 解题思路:除了1为0%外, 其他都为25* n%.(公式) #include int main() { long long n; while (scanf("%lld", &n), n > 0) { if (n == 1) {

总有那么一群人喜欢盯着我的博客看,估计这是他们见过最长的博客名,我必须得告诉他们博客名最长可以写多长 558
上一篇: UVA 846 - Steps(数学)
下一篇: UVA 10790 - How Many Points of Intersection(数学)
coco430
博客等级 码龄14年 9粉丝 107原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值