字符串对比-JAVA 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2024年03月20日 0 点赞 0 评论 130 浏览 评分:0.0
3143: 蓝桥杯2023年第十四届省赛真题-更小的数 摘要:**不需要再将字符串转化为数字进行比较,否则会超时 直接比较当前需要交换的两位大小,即可得出交换之后的大小关系 注意:交换完之后如果比原串要大,则不符合题意,不用管,即只需要考虑小于和等于的状况即…… 题解列表 2024年03月20日 0 点赞 0 评论 263 浏览 评分:0.0
文科生的悲哀--简单线性dp易懂 摘要:解题思路:用0表示政治 1表示历史 2表示地理 3表示综合 例如:dp[i][0]就表示第i次考试考的政治的方案数题目规则转换为:0后面只能为11后面可以为0,22后面可以为1,33后面只能为2 参考…… 题解列表 2024年03月20日 0 点赞 0 评论 220 浏览 评分:0.0
与指定数字相同的数的个数 摘要:参考代码:N = int(input()) arr = list(map(int, input().split())) m = int(input()) print(arr.count(m))…… 题解列表 2024年03月20日 0 点赞 0 评论 866 浏览 评分:0.0
1098: 陶陶摘苹果 摘要:参考代码:arr = list(map(int, input().split())) h = int(input()) count = 0 for i in range(len(arr)): …… 题解列表 2024年03月20日 0 点赞 0 评论 396 浏览 评分:0.0
2835: 计算书费 摘要:参考代码:arr = map(int, input().split()) price = [28.9, 32.7, 45.6, 78, 35, 86.2, 27.8, 43, 56, 65] pr…… 题解列表 2024年03月20日 0 点赞 0 评论 192 浏览 评分:0.0
2836: 数组逆序重放 摘要:参考代码:n = int(input()) print(' '.join(list(map(str, input().split()))[::-1]))…… 题解列表 2024年03月20日 0 点赞 0 评论 218 浏览 评分:0.0
众数问题怎么求 摘要: 可能会有bug 但是能通过 #include int main() { int n; scanf("%d",&n); …… 题解列表 2024年03月20日 0 点赞 0 评论 161 浏览 评分:0.0
2837: 年龄与疾病 摘要:参考代码:n = int(input()) arr = list(map(int, input().split())) s1, s2, s3, s4 = 0, 0, 0, 0 for i in …… 题解列表 2024年03月20日 0 点赞 0 评论 350 浏览 评分:0.0
1099: 校门外的树 摘要:参考代码:L, M = map(int, input().split()) arr = ['t' for _ in range(L + 1)] for _ in range(M):…… 题解列表 2024年03月20日 0 点赞 0 评论 152 浏览 评分:0.0