当前位置:网站首页>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;
}边栏推荐
- Automatic Generation of Visual-Textual Presentation Layout
- How to solve the problem of data table query error when SQLite writes the registration function?
- Script引入CDN链接提示net::ERR_FILE_NOT_FOUND问题
- Pytoch official fast r-cnn source code analysis (I) -- feature extraction
- 简历 NFT 平台 TrustRecruit 加入章鱼网络成为候选应用链
- Volume mount and mirror creation
- Pre research of image scanning tool
- The problem of Joseph in Informatics
- Online picture material
- torch_geometric mini batch 的那些事
猜你喜欢

442 authors, 100 pages! It took Google 2 years to release the new benchmark big bench | open source

Vant tab bar + pull-up loading + pull-down refresh demo van tabs + van pull refresh + van list demo

嵌入式系统硬件构成-嵌入式系统硬件体系结构

Tensorrt, onnx to tensorrt in mmclas

torch_ About the geometric Mini batch

Octopus network progress monthly report | may 1-May 31, 2022

入门深度学习与机器学习的经验和学习路径

Realization of Joseph Ring with one-way ring linked list

IC chip scheme fs4062b for lithium battery charging with 5V boost to 12.6V

Freshman girls' nonsense programming is popular! Those who understand programming are tied with Q after reading
随机推荐
Eight misunderstandings are broken one by one (2): poor performance? Fewer applications? You worry a lot about the cloud!
Wechat web developer tools tutorial, web development issues
创新实训(十一)开发过程中的一些bug汇总
简历 NFT 平台 TrustRecruit 加入章鱼网络成为候选应用链
LeetCode滑动窗口刷题总结
Octopus network progress monthly report | may 1-May 31, 2022
Openmax (OMX) framework
Script import CDN link prompt net:: err_ FILE_ NOT_ Found problem
Pytorch to onnx, onnxruntime reasoning in mmclas
Resume NFT platform trustrecruit joined Octopus network as a candidate application chain
Informatics Olympiad all in one 1000: introductory test questions
Application of list and Dict
import torch_geometric 第一个图网络例子
Volume mount and mirror creation
Getting started with NVIDIA Jetson nano Developer Kit
Innovation training (XI) summary of some bugs in the development process
Build an embedded system software development environment - build a cross compilation environment
torch_ geometric message passing network
Successful job hopping Ali, advanced learning
嵌入式系统概述3-嵌入式系统的开发流程和学习基础、方法