当前位置:网站首页>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;
}边栏推荐
- Mathematical modeling -- graph and network models and methods (I)
- [NPUCTF2020]ezlogin xPATH注入
- Share 10 JS closure interview questions (diagrams), come in and see how many you can answer correctly
- Jatpack------LiveData
- 杰理之内置关机电流 1.2uA,之后不能长按开机【篇】
- [micro service sentinel] rewrite Sentinel's interface blockexceptionhandler
- 小鹏P7出事故,安全气囊未弹出,这正常吗?
- How can I use knockout's $parent/$root pseudovariables from inside a . computed() observable?
- 'when to use const char * and when to use const char []' - when to use const char * and when to use const char []
- Array advanced improvement
猜你喜欢

Dahua cloud native load balancing article - the passenger flow of small restaurants has increased
![[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?

Higher order operation of bits

Analyse des données dossiers d'apprentissage - - analyse simple de la variance à facteur unique avec Excel

【外刊】睡眠与减肥

Oracle PL / SQL programming
![Gas station [problem analysis - > problem conversion - > greed]](/img/15/5313f900abedb46ce82d8ab81af1d7.png)
Gas station [problem analysis - > problem conversion - > greed]

电商系统微服务架构

LeetCode 968. Monitor binary tree

中国信通院、清华大学、腾讯安全,云原生安全产学研用强强联合!
随机推荐
【外刊】睡眠与减肥
中国信通院、清华大学、腾讯安全,云原生安全产学研用强强联合!
分享 10 个 JS 闭包面试题(图解),进来看看你能答对多少
杰理之样机无触摸,拆机之后重新安装变正常【篇】
存储单位换算
Golang interview finishing three resumes how to write
位的高阶运算
LeetCode 968. 监控二叉树
Build your own website (22)
數據分析學習記錄--用EXCEL完成簡單的單因素方差分析
【洛谷P1541】乌龟棋【DP】
go 4種單例模式
JS syntax ES6, ES7, es8, es9, ES10, es11, ES12 new features (Abstract)
odoo13搭建医院HRP环境(详细步骤)
Il n'est pas nécessaire d'appuyer longtemps sur la fonction de démarrage pour modifier Jelly [chapitre]
MySQL reset password, forget password, reset root password, reset MySQL password
杰理之修改不需要长按开机功能【篇】
佩服,竟然有人把高等数学这么晦涩难懂的科目,讲解得如此通俗易懂
QT qsplitter splitter
Jerry's modification does not require long press the boot function [chapter]