lrc解析器 other.c 3 摘要://other.c#include<stdio.h>#include<ctype.h>#include<stdlib.h>#include<string.h>#include<time.h>#incl…… 文章列表 2023年07月08日 0 点赞 0 评论 129 浏览 评分:0.0
堆排序,提取前K个值 摘要:```cpp class Solution { public: //维护堆的性质 void maxHeapify(vector &nums, int change, int Heap…… 文章列表 2023年07月09日 0 点赞 0 评论 177 浏览 评分:0.0
错题笔记(关于逗号运算符的) 摘要:有以下程序: fun(int x,int y) {return x+y;} main() { int a=1,b=2,c=3,sum; sum=fun((a++,b++,a+b),c++)…… 文章列表 2023年07月12日 0 点赞 0 评论 289 浏览 评分:0.0
题目 1148: C语言训练-计算1977!* 摘要:#include<stdio.h>int main(){ int n = 1977; int a[20000]; int carry; int j, i; int digit = 1; int tem…… 文章列表 2023年07月15日 0 点赞 0 评论 215 浏览 评分:0.0
题目 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
数字逆序输出(do-while) 摘要:```c #include int main() { int n,s; scanf("%d",&n); do { s=n%10;//取个位,打印出 pri…… 文章列表 2023年07月15日 0 点赞 0 评论 199 浏览 评分:0.0
错题笔记(关于数组在函数的调用) 摘要:题目: 下面程序的运行结果是 **18** ```c #include int f(int a[],int n) { if(n>1) { …… 文章列表 2023年07月15日 0 点赞 0 评论 184 浏览 评分:0.0
错题笔记(循环) 摘要:题目: 下面程序的功能是:将N行N列二维数组中每一行的元素进行排序,第0行从小到大排序,第1行从大到小排序,第2行从小到大排序,第三行从大到小排序,例如: ```c #define N 4 v…… 文章列表 2023年07月17日 0 点赞 0 评论 148 浏览 评分:0.0
为什么我这样做不对(T1738) 摘要:***问题***题目描述:对输入的n个数进行排序并输出。输入格式:输入的第一行包括一个整数n(1<=n<=100)。 接下来的一行包括n个整数。输出格式:可能有多组测试数据,对于每组数据,将排序后的n…… 文章列表 2023年07月20日 0 点赞 0 评论 146 浏览 评分:0.0
全排列问题 原题:落谷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