题解列表

筛选

循环入门练习2

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#include <string.h>int main(){ int i, e=0; for (i ……

分享一下我的错误,以及,详细解释我的代码这么写的原因

解题思路:首先,题目的要求是持续输入,其次,我们需要分离百分位,十分位,个位数,进行重新组合【这里方法真的很多】注意事项:1.要能持续输入输出;2.输入100,要能输出001;3.注意输出方式和占位符号要相互匹配;4.注意输出之后要换行(因为题目说,

利润计算c语言求解

摘要:解题思路:利用递归思想参考代码:#include <stdio.h> int func(int n); int main() {     int n, result;     scan……

判断是否为两位数之入门

摘要:解题思路:注意事项:参考代码:while True:    try:        n=int(input())        print("1") if 0.1<= n/100 <1 else pr……

数字的处理与判断c语言题解

摘要:解题思路:这题可以分成三个用户自定义函数来实现3个功能注意事项:这是个人想法,没有看题解参考代码:#include <stdio.h> int Num(int sum); void separat……

2838: 有趣的跳跃

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){      long long n;      int t=0,j,i,k=1; ……

2773计算线段长度

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double xa, ya, xb, yb; scanf("%lf %lf\n%……

题解 1040: [编程入门]实数的打印

摘要:解题思路: 可以直接三个打印注意事项:实数用"6.2f"格式输出参考代码:#include<stdio.h> int main() {     float a;         scanf("……

浮点型储存空间

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    float a;    double b;    printf ("%d %d",sizeof(a),si……