二级C语言-统计字符 摘要:解题思路:定义四个字符,统计字母,空格,数字,其他字符的数量用gets()读取输入的一行所有数据注意事项:在for循环中,开始没注意到,习惯性写了for(i=0;i<=N;i++),这样就会往后读取一…… 题解列表 2023年07月07日 0 点赞 0 评论 515 浏览 评分:0.0
2805: 乘方计算(C语言之奇奇怪怪解法) #include//power函数使用递归方式计算乘方。如果指数n为0,返回1。如果指数n为偶数,递归计算a^(n/2)并返回结果的平方。如果指数n为奇数,递归计算a^((n-1)/2),将结果与a相乘,然后再乘以结果的平方。longlongintpower(inta, 题解列表 2023年07月07日 0 点赞 1 评论 724 浏览 评分:9.9
1921: 蓝桥杯算法提高VIP-金陵十三钗 摘要:dfs不剪枝的话会有3个点超时#include<bits/stdc++.h> using namespace std; int like[105][105]; int stu[105]; i…… 题解列表 2023年07月07日 0 点赞 0 评论 751 浏览 评分:0.0
2803: 整数的个数(C语言,数组解法) 摘要: #include int main() { int n; scanf("%d",&n); int a[n]; int i; for(i=0;i…… 题解列表 2023年07月07日 0 点赞 0 评论 790 浏览 评分:9.9
字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; int i,letter=0,nu…… 题解列表 2023年07月07日 0 点赞 0 评论 445 浏览 评分:0.0
编程入门]第一个HelloWorld程序 摘要:解题思路:照着题目要求,细心注意换行就行了,cout一行搞定注意事项:换行时注意n前面是\而不是/,另外是单引号参考代码:#include<iostream>using namespace std;i…… 题解列表 2023年07月06日 0 点赞 0 评论 469 浏览 评分:0.0
1045题 : 自定义函数之整数处理 #自己写的代码(没有写完)```c#includeintshuru(inta[]){for(inti=0;imax){max=a[k];x=k;}}team=a[9];a[9]=max;a[x]=team;for(intj=0;j<10;j++)//输出printf("%d",a[j]);}``` 题解列表 2023年07月06日 0 点赞 0 评论 585 浏览 评分:0.0
鸣人的影分身 #includeusingnamespacestd;intt,n,m;intf[11][11];intmain(){cin>>t;for(inti=0;i>n>>m;cout 题解列表 2023年07月06日 0 点赞 0 评论 785 浏览 评分:7.0
简单的很,认真看 摘要:解题思路:注意事项:参考代码:#include "stdio.h" int a[80], max, min, t, temp;int main() { printf("please,in…… 题解列表 2023年07月06日 0 点赞 0 评论 502 浏览 评分:0.0
2799: 奥运奖牌计数(C语言) 摘要: #include int main() { int n; scanf("%d",&n); int a[n][3]; int i,j; for(i=0;i…… 题解列表 2023年07月06日 0 点赞 0 评论 568 浏览 评分:0.0