题解列表
C++代码,自定义函数采用指针传入参数输入数组,数组整理for循环找出最大值最小值的索引,循环结束后进行交互即可
摘要:解题思路: * 如何在一个函数中返回数组呢?采用指针。 * https://www.dotcpp.com/wp/746.html * https://www.dotcpp.com/wp/755.htm……
1727: 首字母大写-C语言
摘要:```c
#include
#include
#define max 100
int main()
{
char s1[max];
while (gets(s1)!=……
c语言 编写题解 1011: [编程入门]最大公约数与最小公倍数
摘要:解题思路:想简单点注意事项:参考代码:#include<stdio.h>int main(){ int m,n,p,i,j; scanf("%d %d",&n,&m); ……
1806: [编程基础]输入输出练习之第二个数字
摘要:解题思路:太简单了,凑点字数吧注意事项:参考代码:a,b,c = map(int,input().split())print(b)……
1678: 数据结构-双向循环链表-C语言
摘要:```c
//双向循环链表
#include
#include
typedef struct node
{
int data;
struct node *prior;……
1805: 蓝桥杯算法提高- c++_ch02_03
摘要:解题思路:注意事项:参考代码:a,b = map(int,input().split())
if a == b:
print(0)
else:
if a == 0:
……
1996: 元素配对
摘要:解题思路:很容易想到,当用最大减最小的时候最终的值最大。开辟两组数组,使用冒泡排序依次从小排到大。参考代码:#include <stdio.h>
#include <stdlib.h>
int……
1804: 蓝桥杯算法提高- c++_ch02_02
摘要:解题思路:注意事项:参考代码:a,b,c = map(str,input().split())
if c == '+':
print(int(a)+int(b),end=&……
1798: 汪汪与打针(python)
摘要:while True:
try:
a,b = map(int,input().split())
if a<120: