.................... 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); for(int i=2;i<n;i++) …… 题解列表 2023年12月14日 0 点赞 0 评论 230 浏览 评分:9.9
冒泡排序。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; for(int i=0;i<10;i++) { scanf…… 题解列表 2023年12月15日 0 点赞 0 评论 287 浏览 评分:9.9
题解 1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ int sum0 = 0; int s…… 题解列表 2023年12月15日 0 点赞 0 评论 311 浏览 评分:9.9
陶陶摘苹果(C语言解析) 摘要:解题思路:通过将10个苹果的高度存放入一个数组,使其数据分别与陶陶所能过够到的最大高度(加上凳子高度)进行比较,从而得出其所能摘到的苹果数。注意事项:①注意sum的初始化!②注意在给数组的元素输入数据…… 题解列表 2023年12月15日 0 点赞 3 评论 962 浏览 评分:9.9
2866: 过滤多余的空格 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=10200;char s[N];int main(){ wh…… 题解列表 2023年12月15日 0 点赞 0 评论 384 浏览 评分:9.9
c代码记录之过滤多余的空格 摘要:投机取巧了,用了scanf #include int main() { char str[200]; while(~scanf("%s…… 题解列表 2023年12月15日 0 点赞 0 评论 470 浏览 评分:9.9
c代码记录之交换数字-指针 摘要: #include void swap(int* a,int* b){ int middle; middle=*a; *a=*b;…… 题解列表 2023年12月15日 0 点赞 0 评论 481 浏览 评分:9.9
1177: 三角形 摘要:解题思路:注意事项:最后一定要换行呀!!!参考代码:#include<stdio.h>int max(int x,int y){ return x>y?x:y;}int main(){ int e,n…… 题解列表 2023年12月15日 0 点赞 0 评论 323 浏览 评分:9.9
输出全排列(详细注释) 摘要:这段代码是一个实现全排列的程序。它使用了递归的思想,通过不断交换数组中的元素来生成所有可能的排列。具体的实现过程如下:首先定义了两个辅助函数swap和swapback,用于交换数组中的元素。swap函…… 题解列表 2023年12月15日 0 点赞 0 评论 783 浏览 评分:9.9
题眼,不是简单的排序,而是把数列中元素最大的放在最后最小的放在第一位,其它元素位置不变 摘要:解题思路: 题眼,不是简单的排序,而是把数列中元素最大的放在最后,最小的放在第一位,其它元素位置不变 注意事项:参考代码:#include<stdio.h>int main(){ int arr[…… 题解列表 2023年12月15日 0 点赞 0 评论 298 浏览 评分:9.9