数据结构-直接插入排序 摘要:解题思路:关键是理解好j--和j+1当时所代表的含义注意事项:参考代码:import java.util.Scanner;public class Main2 { public static v…… 题解列表 2023年06月05日 0 点赞 0 评论 517 浏览 评分:0.0
皮亚诺曲线距离python 摘要:解题思路:借鉴了https://www.cnblogs.com/EchoZQN/p/14829144.html的做法注意事项:参考代码:k = int(input())x1,y1 = map(int,…… 题解列表 2023年06月05日 0 点赞 0 评论 483 浏览 评分:0.0
C++ 使用set容器完成去重和排序: 明明的随机数 摘要:# C++ set容器 头文件 ```c++ #include ``` ## AC代码 ```c++ #include #include using namespace std…… 题解列表 2023年06月05日 0 点赞 0 评论 475 浏览 评分:0.0
C++ string类: 去掉空格 摘要:# 输出不带空格即可 ```c++ #include #include using namespace std; int main() { string s; wh…… 题解列表 2023年06月05日 0 点赞 0 评论 406 浏览 评分:0.0
c++ 参考代码 摘要:// 任何一个数字都可以通过二进制表示 ```c++ // 任何一个数字都可以通过二进制表示 // 也就是通过对 初始值为 1 的数字反复的左移(乘以 2) 和 + 1 可以得到任意的数字 …… 题解列表 2023年06月05日 0 点赞 0 评论 873 浏览 评分:9.9
C++ string类:字符串问题 摘要:# C++ string类 ```c++ #include using namespace std; int main() { string s; getline(c…… 题解列表 2023年06月05日 0 点赞 0 评论 769 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; long int min = 1000000, max = 0; scanf("%d", &n);…… 题解列表 2023年06月05日 1 点赞 0 评论 553 浏览 评分: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 评论 365 浏览 评分:0.0
不高兴的津津(C++实现,两种方法:vector容器和结构体数组) 摘要:解题思路:方法一:用两个vector容器,第一个存放对应日期的上课时间,再将第一个的上课时间大于8的元素存放到第二个vector容器中,对第二个容器进行升序排序操作,最后遍历第二个容器将容器出现的第一…… 题解列表 2023年06月05日 0 点赞 0 评论 876 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[1001]; gets(str); st…… 题解列表 2023年06月05日 0 点赞 0 评论 490 浏览 评分:0.0