题解列表
数组求和(c语言代码)
摘要:解题思路:让数组循环,每次只需要记录从数组第一个元素起,到第m个元素的和,再比较大小。
```c
#include
#include
void cycle(int*, int);
……
1012题: 字符串分类统计
摘要:# 自己写的代码
```c
#include
#include
int main()
{
char a[100];
int b=0,c=0,d=0,e=0;
gets(a);……
成绩统计(c语言代码)
摘要:```c
#include
int main()
{
int n, good = 0, pass = 0;
scanf("%d", &n);
int temp = n,score……
1013题: Sn的公式求和
摘要:# 自己写的代码
```c
#include
int main()
{
int n,a,sn;
scanf("%d",&n);
for(int i=0;i……
java最长最短单词
摘要:解题思路:注意事项:参考代码:package ten;import java.util.Scanner;public class 最长最短单词 { public static void main……
按六位二进制数从0枚举至63
摘要:解题思路:按六位二进制数从0遍历至63,0为不去,1为去注意事项:参考代码:#include<stdio.h>int main(){ int a[2][6]={{0,0,0,0,0,0},{65……
刷题统计(c语言代码)
摘要:解题思路:一开始看到题目肯定会使用循环解题,当然大家肯定都试过,得到的结果就是超时。那我们就直接使用一个星期可完成的任务量,来算需要多少天。初中就学过得基础知识:总任务量 / 每日完成量 = 天数。我……