题解列表

筛选

输出二进制表示

摘要:```c #include #include int main() { int bin[8] = { 0 }; int n = 0,i = 1; scanf("%d", &n)……

数组求和(c语言代码)

摘要:解题思路:让数组循环,每次只需要记录从数组第一个元素起,到第m个元素的和,再比较大小。 ```c #include #include void cycle(int*, int); ……

普通的写法

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;const int N=100;int a[N]; int ……

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语言代码)

摘要:解题思路:一开始看到题目肯定会使用循环解题,当然大家肯定都试过,得到的结果就是超时。那我们就直接使用一个星期可完成的任务量,来算需要多少天。初中就学过得基础知识:总任务量 / 每日完成量 = 天数。我……

屎山代码写法

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstdio>#include <cstring>#include <algorithm>using names……