1067: 二级C语言-分段函数 清晰易懂 摘要:本题需要注意一个点,计算(x+1)^1/2的时候,不能写1/2,要写成1.0/2,计算前者两个都是整型,故运算结果是整型,结果是0,后者由于其中一个是浮点,另外一个也会在运算是被自动转换为浮点数,运算…… 题解列表 2024年08月06日 0 点赞 0 评论 221 浏览 评分:0.0
1067: 二级C语言-分段函数(python) 摘要:[1067:二级C语言-分段函数](https://www.dotcpp.com/oj/problem1067.html?sid=18062507&lang=6#editor) ~~~pyth…… 题解列表 2024年10月24日 0 点赞 0 评论 187 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:注意使用 &&参考代码:#include<stdio.h>#include<math.h>int main (){ double x; scanf ("%lf",&x); if (…… 题解列表 2024年11月18日 0 点赞 0 评论 293 浏览 评分:0.0
: 二级C语言-分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double h(double x){ if(x<0) { return fa…… 题解列表 2024年12月08日 0 点赞 0 评论 501 浏览 评分:0.0
菲暃要加油——分段函数 摘要:参考代码:frommathimport*x=eval(input())ifx<0:pr…… 题解列表 2025年02月13日 0 点赞 0 评论 202 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(1) (C++代码) 摘要:#include <iostream>#include <iomanip>#include <cmath>using namespace std;int main (){ double x; cin>…… 题解列表 2017年07月02日 0 点赞 0 评论 1009 浏览 评分:2.0
二级C语言-分段函数题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ float x,y; scanf("%f",&x); if(…… 题解列表 2021年11月07日 0 点赞 0 评论 271 浏览 评分:2.0
c++分段函数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double x; cin>>x; if(x<0){ pr…… 题解列表 2021年11月13日 0 点赞 0 评论 487 浏览 评分:5.0
二级C语言-分段函数-题解(C语言代码) 超级简单 思路清晰! 快乐敲代码! 摘要:解题思路:注意x 需要int 注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double y=0; int x; scanf("%…… 题解列表 2020年11月28日 0 点赞 0 评论 828 浏览 评分:5.5
2005年春浙江省计算机等级考试二级C 编程题(1) (C++代码) 摘要:题目给的图片有错误,正确的图片内容应该是:第一项:求绝对值第二项:求平方根第三项:求3次幂第四项:2 * x + 5答案我就不发表了,这里只是纠错…… 题解列表 2017年06月06日 0 点赞 0 评论 1091 浏览 评分:6.0