题解列表
利用循环得到n次的数字,然后求和
摘要:解题思路:每次循环把上一个值乘10再加上结尾的2注意事项:跳出循环后还需要再算一次和参考代码:int main(){ int a=2,n;&……
题解 1196: 去掉空格
摘要:#include #include void fun(char str[]){ int j; int length = strlen(str); for (int ……
字符串的输入输出处理
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#define max 1000int main(){ int n,i=0;……
The 3n + 1 problem
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int prime(int a){ int c = 0; while (a != 1) { c++; if (a % 2……
题目2774:计算三角形面积
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ float x1,y1,x2,y2,x3,y3; dou……