全排列问题 原题:落谷P1706 dfs 摘要:```cpp #include using namespace std; const int maxn=10; int a[maxn],b[maxn]; //数组a为排列数组 b用于输出 i…… 文章列表 2023年07月21日 0 点赞 0 评论 183 浏览 评分:0.0
二维数组(第一次写知识类文章,希望大家喜欢) 摘要:数学中点动成线,线动成面,用编程的语言来说,变量就是一个点,一维列表就相当于线,而二维列表就是面,这里有一个定义①:输入#include <bits/stdc++.h>using namespace …… 文章列表 2023年07月20日 0 点赞 0 评论 152 浏览 评分:9.9
为什么我这样做不对(T1738) 摘要:***问题***题目描述:对输入的n个数进行排序并输出。输入格式:输入的第一行包括一个整数n(1<=n<=100)。 接下来的一行包括n个整数。输出格式:可能有多组测试数据,对于每组数据,将排序后的n…… 文章列表 2023年07月20日 0 点赞 0 评论 146 浏览 评分:0.0
第五章:数组 摘要:数组:批量存储数据定义:int a[100] ; //定义整形变量a100个 (所有类型的变量都可以) 3. 定义数组时要注意:#include using namespace std; int…… 文章列表 2023年07月17日 0 点赞 0 评论 171 浏览 评分:9.9
错题笔记(循环) 摘要:题目: 下面程序的功能是:将N行N列二维数组中每一行的元素进行排序,第0行从小到大排序,第1行从大到小排序,第2行从小到大排序,第三行从大到小排序,例如: ```c #define N 4 v…… 文章列表 2023年07月17日 0 点赞 0 评论 148 浏览 评分:0.0
错题笔记(关于数组在函数的调用) 摘要:题目: 下面程序的运行结果是 **18** ```c #include int f(int a[],int n) { if(n>1) { …… 文章列表 2023年07月15日 0 点赞 0 评论 184 浏览 评分:0.0
数字逆序输出(do-while) 摘要:```c #include int main() { int n,s; scanf("%d",&n); do { s=n%10;//取个位,打印出 pri…… 文章列表 2023年07月15日 0 点赞 0 评论 200 浏览 评分:0.0
chatGPT(感谢大家支持) 摘要:https://chat12.aichatos.xyz/ 这是为数不多的免费网站,有能力的可以花三块钱来维持网站的运转,chatGPT不是中国的,别的都要花钱,这个真的比较良心,最底端是输入框,谢谢…… 文章列表 2023年07月15日 0 点赞 17 评论 4650 浏览 评分:8.6
一个死循环 “007”发表 摘要:#include<bits/stdc++.h>using namespace std;int main(){ int n; for(int i=1;i<=99999999999999999…… 文章列表 2023年07月15日 0 点赞 0 评论 190 浏览 评分:8.4
题目 1151: C语言训练-计算一个整数N的阶乘 摘要:#include<stdio.h>int main(){ int n = 0; scanf("%d",&n); long long int sum=1; if(n<0) { printf("输…… 文章列表 2023年07月15日 0 点赞 0 评论 184 浏览 评分:0.0