编写题解 1361: 矩形分割 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())s=input().split()#竖切代价(n-1个数)h=input().split()#横切代价(m-1个数…… 题解列表 2024年03月13日 0 点赞 0 评论 207 浏览 评分:0.0
1100: 解决采药 摘要:解题思路:本题属于0/1背包问题,具体思路说不上,只需要记住两个公式即可背包问题只考虑两种情况:采药/不采dp[i][j],其中i代表第i个物品,j代表剩余时间;(用于统计最后的数据)cost[],采…… 题解列表 2024年03月13日 1 点赞 0 评论 240 浏览 评分:0.0
甲流疫情死亡率 摘要:解题思路:注意事项:参考代码:a,b = map(int,input().split())m = (b*100)/aprint("%.3f%%"%m)…… 题解列表 2024年03月13日 1 点赞 0 评论 698 浏览 评分:8.0
java--study||O.o 摘要:参考代码: import java.util.Scanner; public class Main { static int n, arr[]; public static void…… 题解列表 2024年03月13日 0 点赞 0 评论 298 浏览 评分:9.9
疯狂裁缝简单解 摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { int max=0;//用来记录每一次的最大值 Scanner scanner=…… 题解列表 2024年03月13日 0 点赞 0 评论 225 浏览 评分:9.9
1156: C语言训练-阿姆斯特朗数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int x=2; for(x=2;x<1000;x++) { int a=0,b=0,c=0; a=x/1…… 题解列表 2024年03月13日 0 点赞 0 评论 279 浏览 评分:9.9
最简单的解 摘要:参考代码:matrix_B = [] for _ in range(5): row = list(map(int, input().split())) matrix_B.appe…… 题解列表 2024年03月13日 1 点赞 0 评论 468 浏览 评分:9.9
1054: 二级C语言-计算素数和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int hjh(int i){ int count=2; for(int f=2;f<i;f++) { if(i%f!=0) coun…… 题解列表 2024年03月13日 0 点赞 0 评论 212 浏览 评分:9.9
编写题解 2074: [STL训练]A+B 摘要:解题思路:将字符串转化为整数就好了。注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.h>long long as(char a[]…… 题解列表 2024年03月13日 0 点赞 0 评论 347 浏览 评分:9.9
蓝桥杯算法提高VIP-质因数2(c++) 摘要:解题思路:注意事项:注意本题重复质因数不能只算一次,如输入:81,输出:3 3 3 3 ,质因数个数为4参考代码:#include<iostream>using namespace std;void …… 题解列表 2024年03月13日 0 点赞 0 评论 247 浏览 评分:0.0