题解列表

筛选

1098: 陶陶摘苹果

摘要:参考代码:arr = list(map(int, input().split())) h = int(input()) count = 0 for i in range(len(arr)): ……

2835: 计算书费

摘要:参考代码:arr = map(int, input().split()) price = [28.9, 32.7, 45.6, 78, 35, 86.2, 27.8, 43, 56, 65] pr……

2836: 数组逆序重放

摘要:参考代码:n = int(input()) print(' '.join(list(map(str, input().split()))[::-1]))……

众数问题怎么求

摘要: 可能会有bug 但是能通过 #include int main() { int n; scanf("%d",&n); ……

2837: 年龄与疾病

摘要:参考代码:n = int(input()) arr = list(map(int, input().split())) s1, s2, s3, s4 = 0, 0, 0, 0 for i in ……

1099: 校门外的树

摘要:参考代码:L, M = map(int, input().split()) arr = ['t' for _ in range(L + 1)] for _ in range(M):……

2760: 整型与布尔型的转换

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {……

C++速度功成

摘要:解题思路:数组的构建,数组附值注意事项:注意a[3][3]中的3是容量,而下面默认第一位数组下标为a[0][0],所以输出的时候别写错了,当然要是把i和j定义成1的话,那a[1][1]就是第一行第一列……