当前位置:网站首页>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;
}边栏推荐
- Storage unit conversion
- What is the'function'keyword used in some bash scripts- What is the 'function' keyword used in some bash scripts?
- 【板栗糖GIS】arcmap—为什么使用自定义捕捉的时候,经典捕捉的勾要去掉呢?
- 高并发介绍及应对
- Methods of adding styles to native JS
- 分享 10 个 JS 闭包面试题(图解),进来看看你能答对多少
- Radis:Linux上安装Redis(步骤)
- Niuke: Dragon and dungeon games
- Kubernetes uses the host name to allocate the pod on the specified node
- Dahua cloud native load balancing article - the passenger flow of small restaurants has increased
猜你喜欢

Performance optimization - rigorous mode

數據分析學習記錄--用EXCEL完成簡單的單因素方差分析

boot actuator - prometheus使用

地方经销商玩转社区团购模式,百万运营分享

Mask R-CNN

mysql重置密码,忘记密码,重置root密码,重置mysql密码

Developers share | HLS and skillfully use Axi_ Customize the master bus interface instructions and improve the data bandwidth - area exchange speed

小鹏P7出事故,安全气囊未弹出,这正常吗?

Array advanced improvement

Niuke: Dragon and dungeon games
随机推荐
牛客网:龙与地下城游戏
DTM distributed transaction manager PHP collaboration client V0.1 beta release!!!
QT qsplitter splitter
Introduction to database system Chapter 1 short answer questions - how was the final exam?
[LeetCode] 反转字符串【344】
Unity publishes a method of webgl playing sound
解决 excel 文件上传时更改选中的文件出现错误net::ERR_UPLOAD_FILE_CHANGED
[leetcode] most elements [169]
创新实力再获认可!腾讯安全MSS获2022年度云原生安全守护先锋
【喜欢的诗词】好了歌
杰理之、产线装配环节【篇】
图形视图框架
手写ORM(对象关系映射)增删改查
[error record] the flutter reports an error (could not read script 'xxx\flutter\u tools\gradle\app\u plugin\u loader.gradle')
MySQL查询附近的数据.并按距离进行排序.
杰理之快速触摸不响应问题【篇】
go 4種單例模式
Analyse des données dossiers d'apprentissage - - analyse simple de la variance à facteur unique avec Excel
UE4 game architecture learning notes
[leetcode] reverse the word III in the string [557]