编写题解 2074: [STL训练]A+B 摘要:解题思路:将字符串转化为整数就好了。注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.h>long long as(char a[]…… 题解列表 2024年03月13日 0 点赞 0 评论 459 浏览 评分: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 评论 301 浏览 评分:9.9
最简单的解 摘要:参考代码:matrix_B = [] for _ in range(5): row = list(map(int, input().split())) matrix_B.appe…… 题解列表 2024年03月13日 1 点赞 0 评论 577 浏览 评分: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 评论 392 浏览 评分:9.9
疯狂裁缝简单解 摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { int max=0;//用来记录每一次的最大值 Scanner scanner=…… 题解列表 2024年03月13日 0 点赞 0 评论 329 浏览 评分:9.9
java--study||O.o 摘要:参考代码: import java.util.Scanner; public class Main { static int n, arr[]; public static void…… 题解列表 2024年03月13日 0 点赞 0 评论 379 浏览 评分:9.9
甲流疫情死亡率 摘要:解题思路:注意事项:参考代码:a,b = map(int,input().split())m = (b*100)/aprint("%.3f%%"%m)…… 题解列表 2024年03月13日 1 点赞 0 评论 851 浏览 评分:8.0
1100: 解决采药 摘要:解题思路:本题属于0/1背包问题,具体思路说不上,只需要记住两个公式即可背包问题只考虑两种情况:采药/不采dp[i][j],其中i代表第i个物品,j代表剩余时间;(用于统计最后的数据)cost[],采…… 题解列表 2024年03月13日 1 点赞 0 评论 355 浏览 评分:0.0
编写题解 1361: 矩形分割 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())s=input().split()#竖切代价(n-1个数)h=input().split()#横切代价(m-1个数…… 题解列表 2024年03月13日 0 点赞 0 评论 304 浏览 评分:0.0
判断是偶数赋值为-1 摘要:参考代码:import java.util.Arrays;import java.util.Scanner;public class Main { public static void main…… 题解列表 2024年03月13日 0 点赞 0 评论 262 浏览 评分:0.0