题解列表

筛选

2544: N以内累加求和(高斯)

摘要:##N以内累加求和(高斯) ####还记得那个口号吗? ######首项加末项乘以项数除以二,我记得我上小学奥数第一节课教的就是这个,好怀念:tw-1f31f: ```c #include ……

数组+循环

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; double x,y[100],j,k; scanf("%d",&n); scanf("%lf %……

1197: 发工资咯

摘要:```cpp #include using namespace std; int Dno[6]={100,50,10,5,2,1}; int sum(int x) { int y=……

1196: 去掉空格

摘要:```cpp #include #include using namespace std; int main() { string str,temp; while(get……

统计数字字符个数

摘要:、解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){      int i,n=0;      char a[255];    ……

1194: 去括号

摘要:```cpp #include #include #include #include using namespace std; int main() { string c; ……