题解列表

筛选

优质题解

2819: 数字反转(详细题解)

摘要:题目解析: 给定的代码是一个简单的整数反转程序,它使用了循环和取模运算符来实现数字的反转。解题思路:1. 首先定义一个变量 ans 并将其初始化为 0,用于存储反转后的数字。2. 通过循环遍历给定的……

判断数的正负

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    int n;    scanf("%d",&n);    if(n>0)    printf("posi……

三角形面积

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){    float x1,x2,x3,y1,y2,y3,d1,d2,d3,s;……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#include <ctype.h> int main() {    int p1, p2, p……

1+1=3型号计算器

摘要:解题思路:参考代码:#include<bits/stdc++.h> int choise_F(char A); int main(){   int x,y;  char A;     while(sc……