2023———— 求逆序对个数 摘要: import java.util.Scanner; public class Main { public static void main(String[] arg…… 题解列表 2023年02月16日 0 点赞 0 评论 500 浏览 评分:0.0
不是暴力枚举的方法,哪位大哥帮忙优化一下 时间过不去 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int sum = 0,n,ans = 0;int a[1000000];int f…… 题解列表 2023年02月16日 0 点赞 0 评论 525 浏览 评分:0.0
[编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#include <math.h>#define MAXNUM(x,y,z) MAX=x>y?x…… 题解列表 2023年02月16日 0 点赞 0 评论 340 浏览 评分:0.0
利用二位数组做出 编写题解 2902: 输出最高分数的学生姓名 摘要:解题思路:注意事项:注意储存英文名时二维数组的用法参考代码:#include<stdio.h>int main(){ int s,i,n,a[101]; char name[101][30…… 题解列表 2023年02月16日 0 点赞 0 评论 363 浏览 评分:0.0
三个公式快速求解 摘要:原题链接:[递归]母牛的故事解题思路:重复递归,由首位至末位注意事项:参考代码:public static void main(String[] args){ Scann…… 题解列表 2023年02月16日 0 点赞 0 评论 385 浏览 评分:0.0
题目 1870: 统计字符数 题解(c) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> void findx(char *p) //查询函数,查询字符串中出现最多次的字母以及次数{ int i=0,n,m=0,z…… 题解列表 2023年02月17日 0 点赞 0 评论 446 浏览 评分:0.0
用指针交换两个数字 摘要:解题思路:用指针引用两个变量的地址进行数字交换注意事项:指针取地址参考代码:#include<stdio.h>void swap(int *a,int *b);int main(){ int a,b;…… 题解列表 2023年02月17日 0 点赞 0 评论 552 浏览 评分:0.0
最大数位置 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a[100],i; int max; int max_position; scanf("%d",…… 题解列表 2023年02月17日 0 点赞 0 评论 371 浏览 评分:0.0
陶陶摘苹果 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[10],i; int num=0; int n=10; int max; for…… 题解列表 2023年02月17日 0 点赞 0 评论 323 浏览 评分:0.0
简单易懂!!! 摘要:解题思路:重点是写一个求高精度阶乘的函数出来注意事项:每一次循环,要重新初始化数组的值。参考代码:#include#include//求阶乘的函数int jiecheng(int *a,int n){…… 题解列表 2023年02月17日 0 点赞 0 评论 604 浏览 评分:0.0