题解列表

筛选

三角形判断

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

去掉空格C语言

摘要:解题思路:误打误撞,代码小白,望大神在评论区指点一二注意事项:参考代码:#include<stdio.h>int main(){       char d[81];       while(gets(……

C语言训练-求车速

摘要:解题思路:注意事项:其实还应该求速度但是答案仿佛忘了这一问如果该答案了应该加上 int speed; speed = (num - 95859) / 2;然后把两个数都打印出来参考代码:#incl……

循环求和,一种简单的方法实现

解题思路:若n=5,设变量a=0可推:2=2x1;(a)22=2x10+2(a=2*10+a)222=2x100+22(a=2*100+a)2222=2x1000+222(a=2*1000+a)22222=2x10000+2222(a=2*10000+a)注意事项:参考代码:#include

分段函数(c语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fun(double x){      if(x>=0 && x<5)      {           return -……

骑车与走路

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

晶晶赴约会

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

收集瓶盖赢大奖

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

多边形内角和

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){      int n,s1=0,s2,i,a[100];      scanf("%d",&n);      s……