1099: 校门外的树 摘要:参考代码:L, M = map(int, input().split()) arr = ['t' for _ in range(L + 1)] for _ in range(M):…… 题解列表 2024年03月20日 0 点赞 0 评论 182 浏览 评分: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 评论 402 浏览 评分:0.0
众数问题怎么求 摘要: 可能会有bug 但是能通过 #include int main() { int n; scanf("%d",&n); …… 题解列表 2024年03月20日 0 点赞 0 评论 195 浏览 评分:0.0
2836: 数组逆序重放 摘要:参考代码:n = int(input()) print(' '.join(list(map(str, input().split()))[::-1]))…… 题解列表 2024年03月20日 0 点赞 0 评论 261 浏览 评分: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 评论 238 浏览 评分:0.0
2766: 甲流疫情死亡率 摘要:解题思路:注意事项:参考代码:x,y=map(int,input().split()) print(f'{y/x*100:.3f}%')…… 题解列表 2024年03月20日 1 点赞 3 评论 660 浏览 评分:7.3
1098: 陶陶摘苹果 摘要:参考代码:arr = list(map(int, input().split())) h = int(input()) count = 0 for i in range(len(arr)): …… 题解列表 2024年03月20日 0 点赞 0 评论 450 浏览 评分:0.0
与指定数字相同的数的个数 摘要:参考代码:N = int(input()) arr = list(map(int, input().split())) m = int(input()) print(arr.count(m))…… 题解列表 2024年03月20日 0 点赞 0 评论 931 浏览 评分:0.0
编写题解2809: 菲波那契数列,python超简单 摘要:# 获取用户输入并转换为整数 k = int(input()) # 检查输入是否为1或2,因为斐波那契数列的前两项都是1 if k == 1 or k == 2: …… 题解列表 2024年03月20日 1 点赞 0 评论 351 浏览 评分:9.9
sort排序自定义 摘要:#include <bits/stdc++.h> using namespace std; const int N = 1e6 + 10; int n, m; struct node {…… 题解列表 2024年03月20日 0 点赞 0 评论 240 浏览 评分:9.9