1070. Mooncake (25)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueMooncake is a Chinese bakery product traditionall
原创
2022-08-30 10:17:20
113阅读
1070. 结绳(25)时间限制200 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者CHEN, Yue给定一段一段的绳子,你需要把它们串成一条绳。每次串连的时候,是把两段绳子对折,再如下图所示套接在一起。这样得到的绳
原创
2022-08-30 10:26:42
34阅读
1070 Mooncake (
原创
2022-09-15 10:53:10
96阅读
1070 结绳 (25 point(s))
每个输入包含 1 个测试用例。每个测试用例第 1 行给出...
原创
2022-09-15 10:43:54
53阅读
1070. Mooncake (25)时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueMooncake is a Chinese bakery product traditionally eaten during the Mid-A...
转载
2015-07-19 11:21:00
49阅读
2评论
给定一段一段的绳子,你需要把它们串成一条绳。每次串连的时候,是把两段绳子对折,再如下图所示套接在一起。这样得到的绳子又被当成是另一段绳子,可以再次对折去跟另一段绳子串连。每次串连后,原来两段绳子的长度就会减半。 给定 N 段绳子的长度,你需要找出它们能串成的绳子的最大长度。 输入格式: 每个输入包含 ...
转载
2021-08-24 17:19:00
59阅读
2评论
/*************************题意:给出每块月饼的质量,和这块月饼的价格问商家怎么切掉并组合,才能组合出一个最贵的月饼************************//***********************贪心思想即每次先消耗单位价格最贵的月饼即可。*************************//**********************
原创
2022-09-26 10:05:36
62阅读
1070 结绳 (25分) 给定一段一段的绳子,你需要把它们串成一条绳。每次串连的时候,是把两段绳子对折,再如下图所示套接在一起。这样得到的绳子又被当成是另一段绳子,可以再次对折去跟另一段绳子串连。每次串连后,原来两段绳子的长度就会减半。给定 N 段绳子的长度,你需要找出它们能串成的绳子的最大长度。 输入格式:每个输入包含 1 个测试用例。每个测试用例第 1 行给出正整数 N (2≤N≤104);
原创
2022-10-26 00:51:58
84阅读
1070. Mooncake (25)
时间限制
100 ms
内存限制
65536 kB
代码长度限制
16000 B
判题程序
Standard
作者
CHEN, Yue
Mooncake is a Chinese bakery product traditionall
原创
2022-11-09 18:19:47
69阅读
题目链接
Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional mooncakes according to the region's culture....
原创
2021-07-12 10:15:38
34阅读
#include using namespace std;int main(){ int N; cin>>N; double len[N-1]; for(int i=0;i<N;i++) { cin>>len[i]; } for(int i=0;i<N;i++) { for(int j=0;j
原创
2023-07-25 14:11:35
46阅读
贪心法是求解一类最优化问题的方法,它总是考虑局部情况下的最优解比如在huffman树的构造中,利用贪心算法依次选取数
原创
2023-05-18 15:17:36
74阅读
https://pintia.cn/problem-sets/994805342720868352/problems/9948053995788533761070 Mooncake (25)(25 分)Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many t...
原创
2021-08-25 13:53:43
77阅读
设备要求系统:Ubuntu16.04显卡:GTX 1070驱动:nvidia系列,显卡驱动的版本必须大于等于cuda的sh文件名里面的版本号驱动可从 此处 下载,我已经整理好了检查安装驱动nvidia-smi显示如下信息如果完全无反应或者驱动型号小于cuda的sh文件名里面的版本号则需要重新安装驱动。首先去官网下载符合GPU的驱动。1、删除旧的驱动sudo apt-get pu
转载
2024-01-06 22:39:29
125阅读
1070 Mooncake (25 分)
Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional mooncakes according
原创
2021-08-30 16:14:04
73阅读
给定一段一段的绳子,你需要把它们串成一条绳。每次串连的时候,是把两段绳子对折,再如下图所示套接在一起。这样得到的绳子又被当成是另一段绳子,可以再次对折去跟另一段绳子串连。每次串连后,原来两段绳子的长度就会减半。 给定 N 段绳子的长度,你需要找出它们能串成的绳子的最大长度。 输入格式: 每个输入包含
原创
2021-07-14 15:31:15
76阅读
1070 Mooncake (25 分)
Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional mooncakes accord
原创
2021-08-30 16:40:36
67阅读
Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional
转载
2020-05-03 21:20:00
36阅读
2评论
题目#include<iostream>#include<algorithm>using namespace std;int main() { int n; cin>>n; int s[n]; for(int i=0; i<n; ++i) cin>>s[i]; sort(s,s+n); int ans=s[0];...
原创
2023-06-27 10:25:31
23阅读
题目题意:给定月饼的库存以及价格,求在满足需求量的要求下销售额最大值#include<cstdio>#include<iostream>#include<algorithm>using namespace std;struct ss { double sale,price,num;;};bool cmp(struct ss a,stru...
原创
2023-06-27 10:16:46
84阅读