题解列表
统计数字字符个数(简单法,同时富含知识讲解)
摘要: 首先我们要知道一个非常重要的一个头文件,那就是ctype这个,因为这个可以用来统计我们像空格,字母,以及数字,还有我们其他的字符,所以这可以极大的缩短我们的用时,也可以降低我们的时间成本,因此我们……
3077: 信息学奥赛一本通T1332-周末舞会
摘要:参考代码:
```cpp
#include
using namespace std;
vectorcouples;
int men, women;
int n;
queueq_men, ……
C语言数组问题-遍历整个数组-时间复杂度O2
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int main()
{
int arr[100]={0};
int n,i;
int cnt,count……
2809:简便的算法求第N项斐波那契数列-《C语言》
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int main()
{
long long f1 = 1,f2 = 1,f3;
int i = 0;
int ……
编写题解 1394: 永远的丰碑
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
#include <string.h>
int main ()
{
int n;
while(~scanf ("%d"……
C语言训练-计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,i; double s=1,t=0; scanf("%d",&m); for(i=2;i<=m;i+……
[编程入门]利润计算
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int x){ int a=100000; if(x<=a) { return 0.1*x; } else if(x<……