自定义函数之整数处理 C++题解 解题思路输入数组每个元素后,找出最大值和最小值的下标,交换第一位和最小值,最后一位和最大值C++中min_element(a+n,a+m)和max_element(a+n,a+m)可以找出数组中最小值和最大值swap(a,b)可以交换a,b两个的值(虽然它让用函数, 题解列表 2021年08月02日 0 点赞 0 评论 812 浏览 评分:8.0
题解 1037: [编程入门]宏定义的练习 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())if(a>b): print(a%b)else: print(b%a)…… 题解列表 2021年08月02日 0 点赞 0 评论 654 浏览 评分:0.0
双指针来解决回文串 摘要:解题思路:双指针来解决回文串注意事项:参考代码:#include<stdio.h> #include<string.h> int isSym(const char* str) { int…… 题解列表 2021年08月02日 0 点赞 0 评论 645 浏览 评分:9.9
二级C语言-阶乘公式求职 摘要:解题思路:题目要求返回值是double类型,前我都只注意定义函数是double型忽略了返回值。注意事项:参考代码:#include<stdio.h>double fact(int x){ int …… 题解列表 2021年08月02日 0 点赞 0 评论 533 浏览 评分:0.0
编写题解 1144: C语言训练-自守数问题 摘要:解题思路:注意事项:注意数据类型使用long long ,否则范围不够。参考代码:#include<stdio.h> int main() { long long i; for(i=0;i<=…… 题解列表 2021年08月02日 0 点赞 0 评论 589 浏览 评分:0.0
java选择排序 摘要:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) { …… 题解列表 2021年08月02日 0 点赞 0 评论 529 浏览 评分:0.0
蓝桥杯2013年第四届真题-危险系数 dfs遍历邻接表 ```#includeusingnamespacestd;constintN=1100,M=2*N;intn,m;intcnt[N];vectora;intsta,ed;boolst[N];inth[N],e[N],ne[N],idx;intpath;voidadd(inta, 题解列表 2021年08月02日 0 点赞 0 评论 1002 浏览 评分:9.9
数据结构-静态链表(C++) 摘要:#include <iostream> #include <string> #include <iomanip> #define MAXSIZE 11 using namespace …… 题解列表 2021年08月02日 0 点赞 0 评论 612 浏览 评分:0.0
IP判断---------------------------------- 摘要:解题思路:注意事项:参考代码: #include "stdio.h"int main() { char S[100]; int a=0; while (scanf("%s", S)!=EOF) { …… 题解列表 2021年08月02日 0 点赞 0 评论 609 浏览 评分:0.0
DNA----------------------------------- 摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "math.h"char S[100];void X(int a, int x,int y) { for (int…… 题解列表 2021年08月02日 0 点赞 0 评论 483 浏览 评分:0.0