1203: 多输入输出练习2 摘要:#include <bits/stdc++.h> using namespace std; int main(){ const double PI = 3.1415;//PI要取到四…… 题解列表 2022年01月01日 0 点赞 0 评论 258 浏览 评分:0.0
多输入输出练习2 摘要:解题思路:先用宏定义定义一个p,然后定义变量n,计数器k,将k放到while()循环中判断读入半径的个数。注意事项:不要用float 去定义s,a,不然容易出现精度问题,最好用double定义变量。参…… 题解列表 2021年12月07日 0 点赞 0 评论 165 浏览 评分:0.0
多输入输出练习2-题解(C语言代码) 摘要:/*啥题目,我服了,我精度取太多居然错误,我傻了,我pi的值取3.1415926结果WA,后来取3.1415结果AC了。无话可说啊*/ #include #define PI 3.1415 …… 题解列表 2020年02月20日 0 点赞 0 评论 372 浏览 评分:0.0
多输入输出练习2 (C语言代码) 摘要:解题思路:注意事项:没啥别的,注意pi是3.1415,保留4位。参考代码:#include<stdio.h>#define pi 3.1415int main(){ int n,i; sc…… 题解列表 2019年06月03日 0 点赞 0 评论 359 浏览 评分:0.0
多输入输出练习2 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<cmath> #include<string> #include<alg…… 题解列表 2019年04月04日 0 点赞 0 评论 399 浏览 评分:0.0
多输入输出练习2 (C语言代码) 摘要:解题思路:使用动态申请的数组保存数据注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #define PI 3.1415 int main…… 题解列表 2018年12月24日 1 点赞 0 评论 606 浏览 评分:0.0
多输入输出练习2 (C语言代码) 摘要:解题思路:注意事项:pi取3.1415参考代码:#include <iostream>#include<stdio.h>using namespace std;int main(){ int n…… 题解列表 2018年06月05日 0 点赞 0 评论 572 浏览 评分:0.0
多输入输出练习2 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include<cstdio> #include<cmath> using namespace std; const f…… 题解列表 2018年05月17日 0 点赞 0 评论 1277 浏览 评分:0.0
多输入输出练习2 (C语言代码) 摘要:解题思路:注意事项:这题π取3.1415参考代码:#include<stdio.h> int main() { int n,i; scanf("%d",&n); for(i…… 题解列表 2018年05月12日 0 点赞 0 评论 921 浏览 评分:0.0
多输入输出练习2 (C语言代码) 摘要:#include <stdio.h>#define PI 3.1415int main(){ int i,n; double r,s; while(scanf("%d",&n)…… 题解列表 2018年02月26日 0 点赞 0 评论 746 浏览 评分:0.0