已有 3322 人浏览分享
10
2
12
版主
#include<iostream> using namespace std; int main(){ int a; int b; int c; int d; cin>>a>>b>>c; d=(a+b)/c; cout<<d; [align=left][size=14px]}
给定<span class="MathJax" id="MathJax-Element-1-Frame" tabindex="0" data-mathml="3" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; text-wrap: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; position: relative;">3 个整数<span class="MathJax" id="MathJax-Element-2-Frame" tabindex="0" data-mathml="a、b、c" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; text-wrap: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; position: relative;">a、b、c ,计算表达式<span class="MathJax" id="MathJax-Element-3-Frame" tabindex="0" data-mathml="a+bc" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; text-wrap: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; position: relative;">a+bc的值。
输入仅一行,包括三个整数<span class="MathJax" id="MathJax-Element-4-Frame" tabindex="0" data-mathml="a、b、c" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; text-wrap: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; position: relative;">a、b、c , 数与数之间以一个空格分开。(<span class="MathJax" id="MathJax-Element-5-Frame" tabindex="0" data-mathml="-10,000<a,b,c<10,000" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; text-wrap: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px;">-10,000<a,b,c<10,000 <span class="MathJax" id="MathJax-Element-6-Frame" tabindex="0" data-mathml="c" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; text-wrap: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px; position: relative;"> c 不等于<span class="MathJax" id="MathJax-Element-7-Frame" tabindex="0" data-mathml="0" role="presentation" style="display: inline; line-height: normal; font-size: 16px; text-indent: 0px; word-spacing: normal; overflow-wrap: normal; text-wrap: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0px; min-height: 0px; border: 0px;">0 )
输出一行,即表达式的值。
1、转载或引用本网站内容须注明原网址,并标明本网站网址(www.sdzqd.com)。
2、转载或引用本网站中的署名文章,请按规定向原作者支付稿酬。
3、对于不当转载或引用本网站内容而引起的民事纷争、行政处理或其他损失,本网站不承担责任。
4、对不遵守本声明或其他违法、恶意使用本网站内容者,本网站保留追究其法律责任的权利。
唯一网址: https://abc.sdzqd.com/forum.php?mod=viewthread&tid=44
使用道具 举报
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
0
|手机版|小黑屋|山东智趣岛论坛 ( 鲁ICP备2023024048号 )
GMT+8, 2025-7-4 16:20 , Processed in 0.256479 second(s), 52 queries .
Powered by Discuz! X3.4 Licensed
Copyright © 2001-2020, Tencent Cloud.
客服电话
电子邮件
在线时间:8:00-16:00