题解列表

筛选

报数问题代码

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int findLastPerson(int n) {    int circle[n];    int count = 0;    ……

判断数的正负

摘要:解题思路:注意事项:参考代码:#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……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char str[6];    int n;    scanf("%d……

c语言代码解决问题

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

数组插入处理

解题思路:可以想象成教室里面有一列,按照高矮顺序排位置,已经排列好了,突然有一个新同学加入,然后我们要把他按照高矮顺序对他进行排座才不会影响其他同学。我们需要加一个座位在最后。然后最高的坐最后然后次高的依次往后坐,只有后面的同学留出位置这样新来的同学才有位置坐下。

大象喝水问题

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define pi 3.14159int main(){    int a,b,c,d;    scanf("%d %d",&a,&……