python 2811: 救援 摘要:参考代码:import math n = int(input()) x1, y1 = 0, 0 pace = 50 time = 0 for i in range(n): xn, …… 题解列表 2024年03月13日 0 点赞 0 评论 797 浏览 评分:9.9
判断是偶数赋值为-1 摘要:参考代码:import java.util.Arrays;import java.util.Scanner;public class Main { public static void main…… 题解列表 2024年03月13日 0 点赞 0 评论 325 浏览 评分:0.0
编写题解 1361: 矩形分割 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())s=input().split()#竖切代价(n-1个数)h=input().split()#横切代价(m-1个数…… 题解列表 2024年03月13日 0 点赞 0 评论 358 浏览 评分:0.0
1100: 解决采药 摘要:解题思路:本题属于0/1背包问题,具体思路说不上,只需要记住两个公式即可背包问题只考虑两种情况:采药/不采dp[i][j],其中i代表第i个物品,j代表剩余时间;(用于统计最后的数据)cost[],采…… 题解列表 2024年03月13日 1 点赞 0 评论 420 浏览 评分:0.0
甲流疫情死亡率 摘要:解题思路:注意事项:参考代码:a,b = map(int,input().split())m = (b*100)/aprint("%.3f%%"%m)…… 题解列表 2024年03月13日 1 点赞 0 评论 918 浏览 评分: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 评论 447 浏览 评分:9.9
疯狂裁缝简单解 摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { int max=0;//用来记录每一次的最大值 Scanner scanner=…… 题解列表 2024年03月13日 0 点赞 0 评论 418 浏览 评分: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 评论 450 浏览 评分:9.9
最简单的解 摘要:参考代码:matrix_B = [] for _ in range(5): row = list(map(int, input().split())) matrix_B.appe…… 题解列表 2024年03月13日 1 点赞 0 评论 636 浏览 评分: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 评论 347 浏览 评分:9.9