2924: 明明的随机数 摘要:解题思路:输入时去重,不用进行排序,把数字存入数组对应位置,例如k=20,那它的位置就是a[20]。题目是1-1000之间随机数,初始化a[1001]={0},当 !=0 时输出注意事项: 有一千个空…… 题解列表 2023年06月05日 0 点赞 0 评论 486 浏览 评分:0.0
数据结构-直接插入排序 摘要:解题思路:关键是理解好j--和j+1当时所代表的含义注意事项:参考代码:import java.util.Scanner;public class Main2 { public static v…… 题解列表 2023年06月05日 0 点赞 0 评论 527 浏览 评分:0.0
皮亚诺曲线距离python 摘要:解题思路:借鉴了https://www.cnblogs.com/EchoZQN/p/14829144.html的做法注意事项:参考代码:k = int(input())x1,y1 = map(int,…… 题解列表 2023年06月05日 0 点赞 0 评论 490 浏览 评分:0.0
C++ 使用set容器完成去重和排序: 明明的随机数 摘要:# C++ set容器 头文件 ```c++ #include ``` ## AC代码 ```c++ #include #include using namespace std…… 题解列表 2023年06月05日 0 点赞 0 评论 490 浏览 评分:0.0
C++ string类: 去掉空格 摘要:# 输出不带空格即可 ```c++ #include #include using namespace std; int main() { string s; wh…… 题解列表 2023年06月05日 0 点赞 0 评论 420 浏览 评分:0.0
C++ string类:字符串问题 摘要:# C++ string类 ```c++ #include using namespace std; int main() { string s; getline(c…… 题解列表 2023年06月05日 0 点赞 0 评论 781 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; long int min = 1000000, max = 0; scanf("%d", &n);…… 题解列表 2023年06月05日 1 点赞 0 评论 561 浏览 评分:0.0
A+B for Input-Output Practice (III)C语言 摘要:#include<stdio.h> int main() { int a, b; while (scanf("%d%d", &a, &b)!=EOF) { if (a == 0…… 题解列表 2023年06月05日 0 点赞 0 评论 375 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[1001]; gets(str); st…… 题解列表 2023年06月05日 0 点赞 0 评论 499 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void CompactIntegers(int a[],int k,int n){ int i; for (i = k; …… 题解列表 2023年06月05日 0 点赞 0 评论 414 浏览 评分:0.0