1010: [编程入门]利润计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ float i,sum=0; scanf("%f",&i); if(i>1000000) sum=0.…… 题解列表 2021年07月06日 0 点赞 0 评论 279 浏览 评分:0.0
【C++较复杂版解法】 摘要:参考代码:#include <iostream> #include <cstdlib> //字符串转数字的头文件 #include <stdio.h> using namespace st…… 题解列表 2021年07月06日 0 点赞 0 评论 316 浏览 评分:0.0
数据的拆分输出 摘要:解题思路:声明输入的数据和个位十位百位的变量,然后使用除或求余拆分位数输出;注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { …… 题解列表 2021年07月05日 0 点赞 1 评论 1328 浏览 评分:9.9
1006: [编程入门]三个数找最大值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int a,b,c,max; scanf("%d %d %d",&a,&b,&c); if(a>b) …… 题解列表 2021年07月05日 0 点赞 0 评论 819 浏览 评分:8.0
1009: [编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(void){ int score,num,n=0,i=0,score_,t; …… 题解列表 2021年07月05日 0 点赞 0 评论 401 浏览 评分:9.9
圆的面积的求解 摘要:解题思路:宏定义pi的值,输入半径,使用圆的面积公式计算面积并输出;注意事项:因为输出结果仅需要保留两位小数,宏定义的pi值可以是具体的估计值如3.1415926,也可以是精确计算表达式为4*atan…… 题解列表 2021年07月05日 0 点赞 0 评论 420 浏览 评分:6.0
华氏温度转化为摄氏温度 摘要:解题思路:声明浮点型变量c和F表示摄氏和华氏温度,输入F,数学表达式求出c并输出;注意事项:c的输出结果注意取两位小数;参考代码:#include<stdio.h> int main() { f…… 题解列表 2021年07月05日 0 点赞 0 评论 840 浏览 评分:9.0
1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:a = [[0 for i in range(3)] for j in range(3)]z = f = 0for i in range(3): a[i] = in…… 题解列表 2021年07月05日 0 点赞 0 评论 331 浏览 评分:8.0
1008: [编程入门]成绩评定(C语言三目运算) 摘要:突发奇想用三目运算符来解这道题 ```c #include int main() { int a; scanf("%d",&a); char b; b …… 题解列表 2021年07月04日 0 点赞 0 评论 379 浏览 评分:6.0
简单字符的输入输出 摘要:解题思路:对五个字符变量声明赋值以后连续输入五个变量,对五个字符变量按照密码要求进行运算转换后将结果输出;注意事项:注意格式化输入输出函数的书写方式参考代码:#include<stdio.h> in…… 题解列表 2021年07月04日 0 点赞 0 评论 387 浏览 评分:7.3