2757: 浮点数向零舍入 摘要:```cpp #include #include using namespace std; int main() { double n; cin>>n; if(…… 题解列表 2022年12月03日 0 点赞 0 评论 876 浏览 评分:8.0
2757: 浮点数向零舍入(别学我,我纯粹图个方便) 摘要:##2757: 浮点数向零舍入(别学我,我纯粹图个方便):tw-1f361: ```c #include int main() { int a; scanf("%d",&a); p…… 题解列表 2023年01月01日 0 点赞 0 评论 636 浏览 评分:4.0
ikun崩溃代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); printf("%d",a); ret…… 题解列表 2023年01月31日 0 点赞 0 评论 417 浏览 评分:2.0
强制转换,如果不对请纠正谢谢 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2024年01月08日 0 点赞 0 评论 394 浏览 评分:0.0
2757: 浮点数向零舍入 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { double …… 题解列表 2023年10月30日 0 点赞 0 评论 473 浏览 评分:0.0
浮点数向零舍入(python) 摘要:解题思路:输入一个浮点数,将其转为整数。注意事项:参考代码:a=float(input())print(int(a))…… 题解列表 2023年06月09日 0 点赞 0 评论 494 浏览 评分:0.0
2757: 浮点数向零舍入 摘要:解题思路:强制类型转换注意事项:参考代码:#include<stdio.h>int main(){ float n = 0; scanf("%f",&n); printf("%d\n",(int) n…… 题解列表 2023年02月27日 0 点赞 0 评论 630 浏览 评分:0.0
编写题解 2757: 浮点数向零舍入 摘要:import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner sc = …… 题解列表 2024年04月30日 0 点赞 0 评论 518 浏览 评分:0.0
2757: 浮点数向零舍入题解 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <cmath> using namespace std; double round(double r) …… 题解列表 2024年11月01日 0 点赞 0 评论 564 浏览 评分:0.0
详解 附验证代码 摘要:解题思路:强制转换类型:(数据类型)数字 数据类型为你想要转换的 数字为你要转换的数字eg. (int)3.99; 结果为3,不发生四舍五入。注意事项:都是提交成功的可以直接拿去用参考代码:#incl…… 题解列表 2026年05月20日 0 点赞 0 评论 4 浏览 评分:0.0