python-判断名次 摘要:解题思路:注意事项:参考代码:from itertools import permutations def f(): rst = tuple(permutations(&#…… 题解列表 2022年01月27日 0 点赞 0 评论 324 浏览 评分:2.0
Hifipsysta-1169题-绝对值排序(C++代码)自定义排序规则法 摘要:基本思路: ① 设置排序规则,按照绝对值从大到小(见arrange_rule函数) ② 每扫描一行就把需要排序的元素全部装入向量vect ③ 采用algorithm库中的sort函数进行排序,使…… 题解列表 2022年02月01日 0 点赞 0 评论 312 浏览 评分:2.0
C++字符排序(通过字符串输入) 摘要:解题思路:注意到题目中字符串长度比较小,通过选择冒泡等方法应该也能实现,但是本人很懒,因此还是用标准库中的sort函数实现。由于字符数组存储过于麻烦,因此选择通过string类型来读入,再逐个赋值,复…… 题解列表 2022年02月04日 0 点赞 0 评论 262 浏览 评分:2.0
数组插入处理 python 摘要:解题思路:注意事项:参考代码:a = list(map(int,input().split()))b = int(input())a.append(b)a.sort()for i in a: p…… 题解列表 2022年02月05日 0 点赞 0 评论 312 浏览 评分:2.0
python-搭积木 摘要:解题思路:搬运的题解。https://www.cnblogs.com/Jozky/p/13928002.html注意事项:参考代码:n,m = map(int,input().strip().spli…… 题解列表 2022年02月06日 0 点赞 0 评论 408 浏览 评分:2.0
做题记录2022.2.8(ac:100%) 摘要:解题思路:暴力:遍历所有切割位置的不同A和B的所有子串,判断是否是正回文串注意事项:1.子串是不同的!即不同位置出现的相同子串不应重复计数 2.非正回文串包括偶数回文串和非回…… 题解列表 2022年02月08日 0 点赞 0 评论 239 浏览 评分:2.0
Hifipsysta-1718-数据结构-堆排序(C++代码)最简单 摘要:```cpp #include #include #include using namespace std; int main(){ int N; scanf("%…… 题解列表 2022年02月14日 0 点赞 0 评论 341 浏览 评分:2.0
1020: [编程入门]猴子吃桃的问题 摘要:#include //真的特别简单 int main(void) { int n;//天数 scanf("%d",&n);//输入 int z=1;//总桃数 for (int a=1…… 题解列表 2022年02月19日 0 点赞 0 评论 200 浏览 评分:2.0
把可能的回文串凑出来即可 很简单的思路 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { static int[] Month = {31,28,31,30,31,…… 题解列表 2022年02月21日 0 点赞 0 评论 536 浏览 评分:2.0
T1006答案解答 摘要:解题思路:使用三木运算符注意事项:* 三目运算符:a > b ? c : d* 当 a > b 为真,执行c ,否则执行d参考代码:#include<stdio.h>int main(){ in…… 题解列表 2022年02月28日 0 点赞 0 评论 265 浏览 评分:2.0