3150-冶炼金属-简单易懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); int a,b; scanf("%d %d",&a…… 题解列表 2024年03月24日 0 点赞 0 评论 494 浏览 评分:4.7
1032: [编程入门]自定义函数之字符串连接d题解(肥肠de简单) 摘要:解题思路:giao注意事项:giao参考代码:a=input()b=input()print(f"{a} {b}")…… 题解列表 2024年03月24日 0 点赞 0 评论 350 浏览 评分:0.0
小白随便写的,记录一下 摘要:```python def solve_sort(li): new_li = list(map(int, li[1:])) new_li.sort(key=abs, revers…… 题解列表 2024年03月24日 0 点赞 0 评论 468 浏览 评分:0.0
信息学奥赛一本通T1426-智力大冲浪(题型) 摘要:解题思路:首先,从输入中获取任务截止日期m和任务数量n。然后,使用一个循环,依次获取每个任务的截止日期和罚款金额,并将其存储在结构体数组a中。接下来,使用sort函数对结构体数组a进行排序,排序的依据…… 题解列表 2024年03月24日 0 点赞 0 评论 635 浏览 评分:9.9
1212: 年会(树形dp) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; struct node { int to; int next; }mp[100005…… 题解列表 2024年03月24日 0 点赞 0 评论 371 浏览 评分:0.0
检查一个数是否为质数 摘要: #include int main() { int n; scanf("%d",&n); int i,j; …… 题解列表 2024年03月24日 1 点赞 0 评论 299 浏览 评分:0.0
买不到的数目-8行代码!!!就8行!! 摘要:只要8行代码不知为什么都没人想到!!解题思路:举例a:2 b:2 ans = 0a:2 b:3 ans = 1a:2 b:4 ans = 2a:2 b…… 题解列表 2024年03月24日 3 点赞 3 评论 920 浏览 评分:10.0
动态规划(动规五部曲)(50报错速解) 摘要:解题思路:1、明确dp数组及下标的含义 dp[j]表示以num[j]为结尾的子序列最大和 2、明确递推公式 dp[i]=max(dp[i-1]+num[i],num[i]) 3、明确遍…… 题解列表 2024年03月24日 0 点赞 0 评论 457 浏览 评分:9.9
1035: [编程入门]自定义函数之字符类型统计 Java 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; /* * 自定义函数之字符类型统计 */ public class e1035 { publi…… 题解列表 2024年03月24日 0 点赞 0 评论 277 浏览 评分:9.9
1114: C语言考试练习题_排列c++代码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int a[10],op[10],box[10]; bool vis[1…… 题解列表 2024年03月24日 0 点赞 0 评论 391 浏览 评分:8.0