2518: 信息学奥赛一本通T1620-质因数分解 摘要:解题思路: 从n到2,倒序判断k是为质数,若为质数,再判断 n%k == 0 同时判断 n//k是否也为质数,若都满足,则n为两个质数的积注意事项:题目的测试用例有问题,测试用例验证的:只是一个质数与…… 题解列表 2024年04月08日 0 点赞 0 评论 288 浏览 评分:0.0
1023: [编程入门]选择排序 摘要:解题思路:注意事项:参考代码:a = list(map(int, input().split())) for i in range(len(a)): temp = i for j…… 题解列表 2024年04月08日 1 点赞 0 评论 661 浏览 评分:0.0
1169: 绝对值排序 摘要:解题思路:注意事项:参考代码:while True: try: n = list(map(int, input().split())) a = n[1:]…… 题解列表 2024年04月08日 0 点赞 0 评论 194 浏览 评分:0.0
JAVA 重写Arrays.sort (超简单) 摘要:解题思路:注意事项:参考代码:import java.util.Arrays;import java.util.Comparator;import java.util.Scanner;public c…… 题解列表 2024年04月08日 0 点赞 0 评论 271 浏览 评分:0.0
1219: 数列排序 摘要:解题思路:注意事项:参考代码:N = int(input()) for _ in range(N): arr = list(map(int, input().split())) …… 题解列表 2024年04月08日 0 点赞 1 评论 253 浏览 评分:0.0
计算鞍点,简单易懂 摘要:解题思路:注意事项:参考代码:num = [list(map(int,input().split())) for _ in range(5)] row,col = [],[] sum = floa…… 题解列表 2024年04月08日 0 点赞 0 评论 224 浏览 评分:0.0
1227: 日期排序 摘要:解题思路:注意事项:参考代码:arr = [] while True: try: arr.append(list(map(str, input().split('…… 题解列表 2024年04月08日 0 点赞 0 评论 307 浏览 评分:0.0
3037: 棋盘问题 c++ 标准dfs 摘要:解题思路:1.标记棋盘位置2.每个位置可以放棋子和不放棋子3.分别搜索4.填完一种可能ans+1注意事项:dfs中有两个量,要区分!!step表示在第几号棋盘格num表示填了几个棋子参考代码:#inc…… 题解列表 2024年04月08日 0 点赞 0 评论 253 浏览 评分:0.0
蓝桥杯2019年第十届省赛真题-外卖店优先级 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; priority_queue<int,vector<int>,greater…… 题解列表 2024年04月08日 0 点赞 0 评论 185 浏览 评分:0.0
明明的随机数 摘要:解题思路:先输入N,输入N个数,先排序再去重,最后输出,这种解题有点麻烦但是易懂注意事项:参考代码:#include<stdio.h> int main(){ int a[1000],n,i,j,t…… 题解列表 2024年04月08日 0 点赞 0 评论 152 浏览 评分:0.0