1.3 编程基础之算术表达式与顺序执行
dllglvzhenfeng
这个作者很懒,什么都没留下…
展开
-
1.3编程基础之算术表达式与顺序执行(20题)-2022.02.26
1.3编程基础之算术表达式与顺序执行 01 A+B问题 (Python3实现)1.3编程基础之算术表达式与顺序执行 01 A+B问题 (Python3实现)_青少年趣味编程-CSDN博客P1001 A+B Problem(python)_青少年趣味编程-CSDN博客1.3编程基础之算术表达式与顺序执行 02 计算(a+b)*c的值1.3编程基础之算术表达式与顺序执行 02 计算(a+b)*c的值_青少年趣味编程-CSDN博客1.3编程基础之算术表达式与顺序执行 03 计算(a+b原创 2022-02-26 09:01:09 · 895 阅读 · 0 评论 -
1.3 编程基础之算术表达式与顺序执行(20题)
1.3编程基础之算术表达式与顺序执行 01 A+B问题 (Python3实现)1.3编程基础之算术表达式与顺序执行 01 A+B问题 (Python3实现)_dllglvzhenfeng的博客-CSDN博客P1001 A+B Problem(python)_dllglvzhenfeng的博客-CSDN博客1.3编程基础之算术表达式与顺序执行 02 计算(a+b)*c的值1.3编程基础之算术表达式与顺序执行 02 计算(a+b)*c的值_dllglvzhenfeng的博客-CSDN博客原创 2022-01-25 14:00:46 · 467 阅读 · 0 评论 -
1.3编程基础之算术表达式与顺序执行 01 A+B问题 (Python3实现)
http://noi.openjudge.cn/ch0103/01/https://www.luogu.com.cn/problem/P1001"""P1001 A+B Problem https://www.luogu.com.cn/problem/P10011.3编程基础之算术表达式与顺序执行 01 A+B问题 方法三(Python实现)http://noi.openjudge.cn/ch0103/01/A + B (python)https://blog.csdn.net/z原创 2022-01-25 10:15:06 · 458 阅读 · 0 评论 -
P1001 A+B Problem(python)
https://www.luogu.com.cn/problem/P1001http://noi.openjudge.cn/ch0103/01/python代码方法一:a,b=map(int,input().split())print(a+b)python代码方法二:"""P1001 A+B Problemhttps://www.luogu.com.cn/problem/P10011.3编程基础之算术表达式与顺序执行 01 A+B问题http://noi.openju原创 2022-01-25 09:55:15 · 747 阅读 · 0 评论 -
1.3编程基础之算术表达式与顺序执行 19 AXB问题
题目链接OpenJudge - 19:A*B问题#include<iostream>using namespace std;int main(){ //int a,b; long long int a,b; cin>>a>>b; cout<<a*b<<endl; return 0;}scratch2代码scratch2 方法二scratch3pytho...原创 2021-12-06 14:51:16 · 347 阅读 · 0 评论 -
1.3 编程基础之算术表达式与顺序执行 10 计算并联电阻的阻值
#include <bits/stdc++.h>using namespace std;int main( void ){ float a,b; float ans; cin>>a>>b; ans=1.0/(1.0/a+1.0/b); printf("%.2f\n",ans); return 0;}1.7 编程基础之字符串 python版.rarhttps://download.csdn.net/down...原创 2021-12-11 16:23:23 · 386 阅读 · 0 评论 -
1.3编程基础之算术表达式与顺序执行 03 计算(a+b) c的值
http://noi.openjudge.cn/ch0103/01/#include <bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<a+b<<endl; return 0;}python3代码"""1.3编程基础之算术表达式与顺序执行 03 计算(a+b) c的值http://no...原创 2021-12-16 18:34:32 · 596 阅读 · 0 评论 -
1.3 编程基础之算术表达式与顺序执行 08 温度表达转化
/*08:温度表达转化总时间限制: 1000ms 内存限制: 65536kB描述利用公式 C = 5 * (F-32) / 9 (其中C表示摄氏温度,F表示华氏温度) 进行计算转化。输入输入一行,包含一个实数f,表示华氏温度。(f >= -459.67)输出输出一行,包含一个实数,表示对应的摄氏温度,要求精确到小数点后5位。样例输入41样例输出5.00000提示C/C++,使用double来源习题(3-12)*/#include <stdio.h>.原创 2021-12-13 17:23:34 · 347 阅读 · 0 评论 -
1.3编程基础之算术表达式与顺序执行 01 A+B问题
http://noi.openjudge.cn/ch0103/01/#include <bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<a+b<<endl; return 0;}python3代码"""P1001 A+B Problemhttps://www.luogu.com.cn/...原创 2021-12-17 00:06:51 · 547 阅读 · 0 评论 -
1.3编程基础之算术表达式与顺序执行 09 与圆相关的计算
http://noi.openjudge.cn/ch0103/09/#include<iostream>using namespace std;int main(){ double d,c,s,r,pi; pi=3.14159; cin>>r; d=2*r; c=2*3.14159*r; s=3.14159*r*r; printf("%.4f %.4f %.4f\n",d,c,s); return 0;}...原创 2021-12-11 18:27:51 · 259 阅读 · 0 评论 -
1.3编程基础之算术表达式与顺序执行 02 计算(a+b)*c的值
http://noi.openjudge.cn/ch0103/02/#include <iostream>#include <bits/stdc++.h>using namespace std;int main(){ int a,b,c; //cin>>a,b,c; cin>>a>>b>>c; cout<<(a+b)*c<<endl; return 0; }..原创 2021-12-16 21:32:58 · 406 阅读 · 1 评论 -
1.3编程基础之算术表达式与顺序执行 20 计算2的幂
题目链接http://noi.openjudge.cn/ch0103/20/#include <bits/stdc++.h>using namespace std;int main(){ int n,i,w=1; cin>>n; for(i=1;i<=n;i++) { w=w*2; } cout<<w<<endl; return 0;}scratch2代码scratch3代码..原创 2021-12-06 23:27:44 · 212 阅读 · 0 评论 -
1.3 编程基础之算术表达式与顺序执行 07 计算多项式的值
http://noi.openjudge.cn/ch0103/07/#include<iostream>using namespace std;int main(){ double a,b,c,d,x,f; cin>>x>>a>>b>>c>>d; f=a*x*x*x+b*x*x+c*x+d; printf("%.7lf\n",f); //cout<<f<<endl; re原创 2021-12-13 18:59:41 · 433 阅读 · 0 评论 -
1.3 编程基础之算术表达式与顺序执行 13 反向输出一个三位数(C++ Scratch)
题目链接#include <iostream>using namespace std;int main(){ int x,a,b,c; cin>>x; a=x/100; b=(x/10)%10; c=x%10; cout<<c<<b<<a; return 0;}scratch2代码scratch3代码...原创 2021-12-05 14:08:58 · 469 阅读 · 0 评论 -
1.3编程基础之算术表达式与顺序执行 11 计算浮点数相除的余数
http://noi.openjudge.cn/ch0103/11/#include <bits/stdc++.h>using namespace std;int main(){ double a,b,r; int k; cin>>a>>b; k=a/b; r=a-k*b; printf("%g\n",r); return 0;}NOIP1995-2018 CSP-J2 2019 2020(...原创 2021-12-11 17:35:26 · 276 阅读 · 0 评论 -
1.3编程基础之算术表达式与顺序执行 14 大象喝水
http://noi.openjudge.cn/ch0103/14/#include <bits/stdc++.h>using namespace std;const double PI=3.14159;int main(){ int h,r,a,v; scanf("%d%d",&h,&r); v=PI*r*r*h; //v=v/1000; if(20000%v==0) { a=20000/v; } else { a=20原创 2021-12-05 09:44:46 · 1022 阅读 · 0 评论 -
1.3编程基础之算术表达式与顺序执行 06 甲流疫情死亡率
/*1.3编程基础之算术表达式与顺序执行 06 甲流疫情死亡率http://noi.openjudge.cn/ch0103/06/*/#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; double ans; ans=b*1.0/a*100; printf("%.3lf%%\n",ans); return 0;}...原创 2021-12-14 13:55:37 · 641 阅读 · 0 评论 -
1.3编程基础之算术表达式与顺序执行 12 计算球的体积
题目链接#include<iostream>using namespace std;int main(){ double r; double v; cin>>r; v=4*1.0/3*3.14*r*r*r; printf("%.2lf\n",v); return 0;}scratch2代码scratch3代码python代码见下面链接https://blog.csdn.net/weixin_4585..原创 2021-12-05 19:16:19 · 518 阅读 · 0 评论 -
1.3编程基础之算术表达式与顺序执行 05 计算分数的浮点数值
#include <iostream>using namespace std;int main(){ int a,b; cin>>a>>b; printf("%.9lf\n",a*1.0/b); return 0;}"""1.3 编程基础之算术表达式与顺序执行 05 计算分数的浮点数值http://noi.openjudge.cn/ch0103/05/"""a = list(map(int, input(...原创 2021-12-15 18:39:49 · 415 阅读 · 0 评论 -
1.3编程基础之算术表达式与顺序执行 15 苹果和虫子
题目链接http://noi.openjudge.cn/ch0103/15/#include<iostream>using namespace std;int main(){ int n, x, y, z; cin >> n >> x >> y; if(y%x==0) { z = y / x; } else { z = y / x+1; } cout << n - z << endl原创 2021-12-06 09:38:09 · 418 阅读 · 0 评论 -
1.3 编程基础之算术表达式与顺序执行 04 带余除法
#include <bits/stdc++.h>using namespace std;int main( void ){ //内存变量 int a,b; int ans; //1.输入 cin>>a>>b; //代码的核心 ans=a+b; //2.输出 cout<<ans<<endl; return 0;}//思考题:计算机正在运行的程序在哪儿运行? pyt...原创 2021-12-16 16:42:42 · 636 阅读 · 0 评论