当前位置:网站首页>P7072 [csp-j2020] live broadcast Award
P7072 [csp-j2020] live broadcast Award
2022-07-02 22:55:00 【Evil_ boy__】
Topic link :
P7072 [CSP-J2020] Live Award - Luogu | New ecology of computer science education (luogu.com.cn)
Topic :
Title Description :
Input description :
Output description :
Examples :

explain :

Tips :
Ideas :
The maximum score is 600, We can open a 605 The array of saves the number of people in each fractional segment so far . Every time you join a person, you can judge the score line
#include<bits/stdc++.h>
using namespace std;
int arr[605] = {0};
int main(){
int n, w;
cin >> n >> w;
for(int i = 1; i <= n; i++){
int a;
cin >> a;
arr[a]++;
int num = i * w / 100;
if(num == 0){
num = 1;
}
int cnt = 0;
for(int j = 600; j >= 0; j--){
cnt += arr[j];
if(cnt >= num){
if(i != 1){
cout << " ";
}
cout << j;
break;
}
}
}
cout << endl;
return 0;
}边栏推荐
- Comprehensively analyze the logic of the shared purchase business model? How sharing purchase empowers Enterprises
- pytorch训练CPU占用持续增长(bug)
- Golang interview finishing three resumes how to write
- Developers share | HLS and skillfully use Axi_ Customize the master bus interface instructions and improve the data bandwidth - area exchange speed
- Mask R-CNN
- The threshold value of fusing proportion cannot be changed with sentinel, and setting the slow call proportion has no effect
- 【硬件】标准阻值的由来
- Array advanced improvement
- Qt QScrollArea
- Performance optimization - rigorous mode
猜你喜欢

Dahua cloud native load balancing article - the passenger flow of small restaurants has increased
![[羊城杯2020]easyphp](/img/12/da28f738e50e625b0a66a94af3703d.png)
[羊城杯2020]easyphp
![[chestnut sugar GIS] ArcMap - why should the tick of classic capture be removed when using custom capture?](/img/b5/e746dd115995e82c93f667c58a601c.png)
[chestnut sugar GIS] ArcMap - why should the tick of classic capture be removed when using custom capture?

【外刊】睡眠与减肥

数据分析学习记录(二)---响应曲面法及Design-Expert的简单使用

Comprehensively analyze the logic of the shared purchase business model? How sharing purchase empowers Enterprises

World Environment Day | Chow Tai Fook serves wholeheartedly to promote carbon reduction and environmental protection

#include errors detected. Please update your includePath.

Oracle-PL/SQL编程

从2022年Q1财报看携程的韧性和远景
随机推荐
DTM distributed transaction manager PHP collaboration client V0.1 beta release!!!
Solve the error of changing the selected file when uploading excel file. Net:: err_ UPLOAD_ FILE_ CHANGED
【板栗糖GIS】arcscene—如何做出有高度的高程图
图形视图框架
go 多线程数据搜索
PHP implements querying the data matching the date of birth according to the entered age
手写ORM(对象关系映射)增删改查
Graphic view frame
Golang's learning route
杰理之内置关机电流 1.2uA,之后不能长按开机【篇】
【板栗糖GIS】arcmap—如何批量修改注记要素的字体,颜色,大小等
Objects and object variables
antd组件upload上传xlsx文件,并读取文件内容
杰理之内置短按再长按,不管长按多长时间都是短按【篇】
数据分析学习记录--用EXCEL完成简单的单因素方差分析
#include errors detected. Please update your includePath.
用sentinel熔断比例阈值改不了,设置慢调用比例没效果
[LeetCode] 多数元素【169】
性能优化----严苛模式
Notes on key vocabulary in the English original of the biography of jobs (11) [chapter nine]