利润计算(运用for循环解决) 摘要:解题思路:先计算输入的数处于哪个挡位,然后根据挡位计算输出值,可以使代码更加简洁,并不需要写很多数放在上面,看着就会很头疼注意事项:后面乘以1000是为了保证算出来的数为整数,因为比例是小数,这里我用…… 题解列表 2024年04月16日 0 点赞 0 评论 274 浏览 评分:9.9
数字诗意(找规律) 摘要:解题思路:有诗意的数注意事项:参考代码:#include<iostream>#include<cstring>#include<algorithm>using namespace std;typede…… 题解列表 2024年04月16日 0 点赞 0 评论 1158 浏览 评分:4.7
仅两个变量解决交换值 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2024年04月16日 0 点赞 0 评论 755 浏览 评分:0.0
编写题解 1671: 小九九 摘要:解题思路:注意事项:参考代码:for i in range(1, 10): for j in range(1, i + 1): print("%.d*%.d=%.d" %(…… 题解列表 2024年04月16日 0 点赞 0 评论 724 浏览 评分:0.0
编写题解 1062: 二级C语言-公约公倍 摘要:解题思路:注意事项:参考代码:o = input().split() if len(o) >= 2: m, n = int(o[0]), int(o[1]) min = min(…… 题解列表 2024年04月16日 0 点赞 0 评论 244 浏览 评分:0.0
猴子吃桃,递归解决 摘要:解题思路:注意事项:参考代码://猴子吃桃#include <stdio.h> void peach(int x,int p){ if(x==1)printf("%d",p); else peac…… 题解列表 2024年04月16日 0 点赞 0 评论 180 浏览 评分:0.0
python--study||O.o 摘要:参考代码:n, m = map(int, input().split()) arr = [[int(num) for num in input().split()] for _ in range(n…… 题解列表 2024年04月16日 0 点赞 0 评论 230 浏览 评分:0.0
第十五届蓝桥杯JavaB组省赛-最优分组 摘要:## 解题思路 > 我看了下官方题解,官方题解用的是求期望的方式去做,这就有点复杂了,这里的话我是使用的是均值不等式进行求解,枚举其K只宠物为一组,即可,详细如下图。 [{ char a[100000]; int b; int i; …… 题解列表 2024年04月16日 0 点赞 0 评论 187 浏览 评分:0.0
python--study||O.o 摘要:参考代码:dx = (-1,0,1,0,-1,-1,1,1) dy = (0,-1,0,1,-1,1,-1,1) n, m = map(int, input().split()) map = […… 题解列表 2024年04月16日 0 点赞 0 评论 320 浏览 评分:0.0