C++算出最简真分数的序列 摘要:解题思路:枚举法,把所有的情况枚举出来,把能够约分的删掉注意事项:40的因子有1,2,4,5,8,10,20, 不难发现除了5以外这些数都是2的因子,所以分子能被2除尽或者5除尽就说明可以约分参考代码…… 题解列表 2024年09月28日 0 点赞 0 评论 196 浏览 评分:0.0
3020:最大位数 摘要:解题思路:注意事项:参考代码:n = int(input())list_ = list(map(int, input().strip().split()))m = max(list_)i = list…… 题解列表 2024年09月28日 0 点赞 0 评论 475 浏览 评分:0.0
不知道java为何运行错误qwq 摘要:参考代码:c++能过#include<bits/stdc++.h> using namespace std; int main() { char c; cin>>c; int a=c…… 题解列表 2024年09月28日 0 点赞 0 评论 176 浏览 评分:0.0
java暴力去重 摘要:参考代码:import java.util.Arrays; import java.util.Scanner; public class Main { public static vo…… 题解列表 2024年09月29日 0 点赞 0 评论 214 浏览 评分:0.0
编写题解 1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>void fun(double a, double b, double c) { double…… 题解列表 2024年09月29日 0 点赞 0 评论 609 浏览 评分:0.0
编写题解 1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void fun(int a){ for(int i=2;i<=a/2;i++){ if (a%i==0){prin…… 题解列表 2024年09月29日 1 点赞 0 评论 444 浏览 评分:0.0
结构体,枚举变量,指针 摘要:解题思路:注意事项:参考代码: #include <stdio.h> #include <stdlib.h> typedef enum bee { d=3, c, …… 题解列表 2024年09月30日 0 点赞 0 评论 196 浏览 评分:0.0
1025: [编程入门]数组插入处理 摘要:解题思路:直接判断数组 内容大小,找到第一个比插入数字大的数组内容时,利用循环将数组中之后的数字后移一位,再将其插入进去。(亦可利用数组下标进行插入)注意事项:注意数组的长度,插入后比插入前多一位。参…… 题解列表 2024年10月01日 0 点赞 0 评论 345 浏览 评分:0.0
PYthon 1479: 蓝桥杯算法提高VIP-删除数组中的0元素 摘要:解题思路:注意事项:参考代码:times = input()res = list(map(int,input().split(' ')))re = [i for i in res if…… 题解列表 2024年10月01日 0 点赞 0 评论 286 浏览 评分:0.0
无聊的星期六 摘要:解题思路:#include <stdio.h> int isprime(int); int main() { int n, m,sum=0; scanf("%d %d",…… 题解列表 2024年10月02日 1 点赞 0 评论 710 浏览 评分:0.0