当前位置:网站首页>1414: [17noip popularization group] score
1414: [17noip popularization group] score
2022-06-12 13:24:00 【Xiao Liu wants to be number one】
1414:【17NOIP Popularization group 】 achievement
The time limit : 1000 ms Memory limit : 65536 KB
Submission number : 25230 Passing number : 15468
【 Title Description 】
Niuniu has recently learned C++ introductory course , The total score of this course is calculated as :
Total score = Homework results × 20% + Test results × 30% + Final exam results × 50%
Niuniu wants to know , How many points can this course get in the end .
【 Input 】
Only 1 That's ok , Contains three nonnegative integers A、B、C, They represent the performance of Niu Niu 、 Microtest Grades and final exam results . Separate two adjacent numbers with a space , The full marks of three events are 100 branch .
【 Output 】
Only 1 That's ok , Contains an integer , That is the total score of Niuniu course , The full mark is the same 100 branch .
【 sample input 】
100 100 80【 sample output 】
90【 Tips 】
【 I/o sample 1 explain 】 Niu Niu's homework result is 100 branch , The test result is 100 branch , The final exam result is 80 branch , Assembly Achievement is 100 × 20% + 100 × 30% + 80 × 50% = 20 + 30 + 40 = 90.
【 I/o sample 2】
Input :
60 90 80Output :
79【 I/o sample 2 explain 】 Niu Niu's homework result is 60 branch , The test result is 90 branch , The final exam result is 80 branch , The total score is 60 × 20% + 90 × 30% + 80 × 50% = 12 + 27 + 40 = 79.
【 Data description 】
about 30% The data of ,A = B = 0.
For another 30% The data of ,A = B = 100.
about 100% The data of , 0 ≤ A、B、C ≤ 100 And A、B、C All are 10 Integer multiple .
#include<iostream>
using namespace std;
int main()
{
int a, b, c, sum;
cin >> a >> b >> c;
sum = a * 0.2 +b *0.3 +c * 0.5;
cout << sum;
}边栏推荐
- "New continent" of mobile application going to sea
- imagemagick:a gentle introduction to magick++
- [embedded] serial communication and its case
- 智能垃圾桶语音芯片应用设计方案介绍,WT588F02B-8S
- leetcode 47. Permutations II 全排列 II(中等)
- JSP jump problem, unable to display database data, and unable to jump
- R language Visual facet chart, hypothesis test, multivariable grouping t-test, visual multivariable grouping faceting bar plot, adding significance level and jitter points
- Build an embedded system software development environment - build a cross compilation environment
- Software construction 03 regular expression
- Newoj week 10 question solution
猜你喜欢

Pytorch to onnx, onnxruntime reasoning in mmclas

高通平台开发系列讲解(协议篇)QMI简单介绍及使用方法

Implementing pytorch style deep learning framework similartorch with numpy

Wechat web developer tools tutorial, web development issues

2022 ARTS|Week 23

leetcode 47. Permutations II 全排列 II(中等)

VGA display color bar and picture (FPGA)

Further understanding of the network

创新实训(十)高级界面美化

安装MySQL时出错,照着下面这个链接,做到cmd就不行了
随机推荐
多源BFS问题 模板(附题)
Eight misunderstandings are broken one by one (2): poor performance? Fewer applications? You worry a lot about the cloud!
[cloud native | kubernetes] kubernetes networkpolicy
Redis message queue repeated consumption
leetcode 47. Permutations II 全排列 II(中等)
嵌入式系统硬件构成-基于ARM的嵌入式开发板介绍
Freshman girls' nonsense programming is popular! Those who understand programming are tied with Q after reading
【云原生 | Kubernetes篇】深入了解Ingress
LeetCode滑动窗口刷题总结
C language [23] classic interview questions [2]
import torch_ Data view of geometric
There was an error installing mysql. Follow the link below to CMD
【微信小程序开发】第1篇:开发工具安装及程序配置
Title: Yanghui triangle
[EDA] chip layout design: VLSI layout design using electric
STM32F1与STM32CubeIDE编程实例-设备驱动-DHT11温度温度传感器驱动
Online picture material
创新实训(十一)开发过程中的一些bug汇总
构建嵌入式系统软件开发环境-建立交叉编译环境
嵌入式系统概述1-嵌入式系统定义、特点和发展历程