寻找矩阵最值——输出矩阵的最大值以及其位置 摘要:解题思路:注意事项:参考代码:n = int(input())L1 = []L2 = []for i in range(n): L = list(map(int,input().split())…… 题解列表 2023年03月15日 0 点赞 0 评论 280 浏览 评分:0.0
答疑(自定义排序) 摘要:解题思路:注意事项:参考代码:n=int(input())t=[]sum=[]count=0d=0for i in range(n): t.append(list(map(int,input()…… 题解列表 2023年03月15日 0 点赞 0 评论 330 浏览 评分:0.0
将数字时间打印成英文输出 摘要:解题思路: 简单的判断语句,字典查询操作。 # 代码太冗长,适合初学者 d = {0: 'zero', 1: 'one', 2: 'two', …… 题解列表 2023年03月15日 0 点赞 0 评论 265 浏览 评分:0.0
自定义函数之字符提取 摘要:解题思路:见代码注意事项:在字符串为'\n'时候提前结束循环,因为有半段有的编译器不会设置这段为'\0'而是乱码,需要提前结束循环。参考代码:#include<stdi…… 题解列表 2023年03月15日 0 点赞 0 评论 247 浏览 评分:0.0
二级C语言-成绩归类——关于只有50%对是怎么回事 摘要:解题思路:注意事项:要是一行输不完,要用extend接着参考代码:L = list(map(int,input().split()))while min(L)>0:#很关键的一步,要是一行输不完可继续…… 题解列表 2023年03月15日 0 点赞 0 评论 346 浏览 评分:0.0
汽水瓶——三个空瓶换一瓶汽水 摘要:解题思路:稍微列一下,就很容易发现空瓶数与汽水数之间的关系注意事项:参考代码:for i in range(10): a = int(input()) if a == 0: …… 题解列表 2023年03月15日 0 点赞 0 评论 317 浏览 评分:0.0
dp思想 三个点分类讨论 摘要:解题思路:注意事项:参考代码:n=int(input())a=[]dp=[[0 for _ in range(100)] for _ in range(100)]for i in range(n): …… 题解列表 2023年03月15日 0 点赞 0 评论 328 浏览 评分:0.0
1434: 蓝桥杯历届试题-回文数字 摘要: #include #include #include #include #include #include #include …… 题解列表 2023年03月15日 0 点赞 0 评论 379 浏览 评分:0.0
c++题解 1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int check(int a){ int gewei = a%10; int …… 题解列表 2023年03月15日 0 点赞 0 评论 309 浏览 评分:0.0
自由下落的距离计算, 摘要:解题思路:我们把每次弹起来看做一次终点,每段即为M+M/2注意事项:注意最后一次并没有弹起来所以需要减去一个M;参考代码:自由下落的距离计算#include<bits/stdc++.h>using n…… 题解列表 2023年03月15日 0 点赞 0 评论 248 浏览 评分:0.0