2778: 判断数正负 摘要:解题思路:我选择的是if ....else if....else 的条件分支注意事项:不要漏东西啊!!!!!!!我老是漏参考代码:#include<stdio.h>int main(){ int…… 题解列表 2024年03月01日 0 点赞 0 评论 270 浏览 评分:8.0
11231231231241232131 摘要:解题思路:1注意事项:1参考代码:import java.util.Scanner;public class Main { public static void main(String[] args)…… 题解列表 2023年11月15日 0 点赞 0 评论 246 浏览 评分:8.0
五星好评,返现两元哦! 摘要:解题思路:注意事项:参考代码:#includemain (){double N;scanf("%d",&N); if(N>0){printf("positive");}else if(N ==0){p…… 题解列表 2023年05月30日 0 点赞 0 评论 193 浏览 评分:6.0
2778: 判断数正负 摘要:解题思路: while循环控制输入 if条件判断控制范围注意事项:参考代码:while 1: a = int(input()) if a <= -1E9 or a >= 1E9: #…… 题解列表 2022年11月27日 0 点赞 0 评论 345 浏览 评分:2.0
c语言中如何使用倍数(exp版) 摘要:解题思路:注意事项:使用倍数要使用math头文件本人在答案里使用了exp(x)意思是e的x倍数,p是大家常用pow的意思,负数前面加个-就可以了,注意使用scanf参考代码:#include<stdi…… 题解列表 2024年11月07日 0 点赞 0 评论 179 浏览 评分:0.0
判断数正负 摘要:解题思路:注意事项:参考代码:N = int(input())if N > 0: print("positive")elif N == 0: print("zero")elif N < 0…… 题解列表 2024年07月22日 0 点赞 0 评论 298 浏览 评分:0.0
编写题解 2778: 判断数正负 摘要:解题思路:注意事项:范围可不写:去掉 import java.util.*;和 if( Math.pow(-10,9) < n && n <= Math.pow(10,9)){} 即可参考代码:im…… 题解列表 2023年12月06日 0 点赞 0 评论 177 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if (n<0) printf("negative"); if …… 题解列表 2024年11月23日 0 点赞 0 评论 431 浏览 评分:0.0
2778: 判断数正负 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { long lo…… 题解列表 2023年11月01日 0 点赞 0 评论 277 浏览 评分:0.0
题解 2778: 判断数正负 C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long int n; int ret; do{ ret = scan…… 题解列表 2023年08月17日 0 点赞 0 评论 216 浏览 评分:0.0