当前位置:网站首页>北京大学ACM Problems 1011:Sticks
北京大学ACM Problems 1011:Sticks
2022-04-21 13:30:00 【兔云程序】
Sticks
| Time Limit: 1000MS | Memory Limit: 10000K | |
| Total Submissions: 173358 | Accepted: 42418 |
Description
George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he forgot how many sticks he had originally and how long they were originally. Please help him and design a program which computes the smallest possible original length of those sticks. All lengths expressed in units are integers greater than zero.
Input
The input contains blocks of 2 lines. The first line contains the number of sticks parts after cutting, there are at most 64 sticks. The second line contains the lengths of those parts separated by the space. The last line of the file contains zero.
Output
版权声明
本文为[兔云程序]所创,转载请带上原文链接,感谢
https://blog.csdn.net/linjingtu/article/details/124311803
边栏推荐
- 【csnote】db异常(冗余数据、修改异常、删除异常、插入异常)
- AI 视频云 VS 窄带高清,谁是视频时代的宠儿
- Xcode Cloud 入门:拉取请求 (PR) 工作流程
- Network communication protocol model
- no server suitable for synchronization found
- 百度地图开发自定义信息窗口openInfoWindow样式
- What is the Intel quartus prime, the introduction to digital IC tools? What's the difference between the three versions
- Could not load dynamic library ‘libcusolver.so.11‘
- How to install the database of Dameng 8 version in Kirin V10 SP2
- Flink相关API开发及运行架构和实现原理详解
猜你喜欢

Filter and listener listeners

Initial response Kit

百度地图开发自定义信息窗口openInfoWindow样式

Small and medium-sized manufacturing enterprises transformation capacity-building sharing

3-4Dom形XSS详解以及演示

twenty million two hundred and ten thousand eight hundred and twelve

2021-08-10

Village vlog harvest 8000w + play, another flow ceiling?

Hcip road OSPF expansion configuration

AI video cloud vs narrowband HD, who is the darling of the video era
随机推荐
【csnote】db异常(冗余数据、修改异常、删除异常、插入异常)
twenty million two hundred and ten thousand eight hundred and twelve
Meichuang technology was invited to carry out data security training for Haidian District academy of Educational Sciences
Could not load dynamic library ‘libcusolver.so.11‘
Installing and configuring canal
Getting started with Xcode cloud: pull request (PR) workflow
leetcode:824. 山羊拉丁文【简单字符串操纵】
Jiaozuo Third People's Hospital joined hands with meichuang to open a new situation of data security construction
Mysql 驱动为什么要依赖 protobuf
STM32驱动ST7789V2 tft屏幕
How do we media create hot articles and improve reading volume
Configuring VRRP (Virtual Router Redundancy Protocol) with Cisco
53W words! Ali's first system performance optimization guide is so fragrant that it can be called the optimal solution of performance optimization
Baidu map development custom information window openinfowindow style
Fibonacci sequence
PostgreSQL 15 will soon support merge statements in the SQL standard
OJ每日一练——数组倒序输出新数组
【数字信号处理】相关系数 ( 相关系数概念 | 能量信号与功率信号 | 系统的因果性 )
Wang Baiping: my way to envoy maintainer
China Database ranking in April 2022: the spring breeze blows the face, the spring is warm, and the score rises in April