简单的暴力求法(Python) 摘要:S1='AWF'S3='DPG'while 1: S=input() if S=='END': break for i …… 题解列表 2021年04月15日 0 点赞 0 评论 213 浏览 评分:8.0
c语言 求两对角线上的元素之和 摘要:解题思路:初看题目,求矩阵的两对角线上的元素之和,当时的第一想法就是遍历,将两条对角线分别算一下,加进s中。但后来细想加仔细审题,发现一些端倪,如果按照上面的想法,其实还是有一些问题。如果行列数是奇数…… 题解列表 2021年04月15日 0 点赞 1 评论 696 浏览 评分:9.9
不是很好的方法(Python) 摘要:YMD=[0,31,28,31,30,31,30,31,31,30,31,30,31]def runnian(Y1): if Y1%100==0: return 1 else…… 题解列表 2021年04月15日 0 点赞 0 评论 238 浏览 评分:0.0
1095: The 3n + 1 problem Python解法(25行简单易懂) 摘要:解题思路:注意事项: i,j的大小不确定的,要分类来做,我第一次就错了参考代码:while True: t = False m = [] a, b = map(int,i…… 题解列表 2021年04月15日 0 点赞 0 评论 760 浏览 评分:9.9
错误票据(c++,三种方法实现) 摘要:解题思路:这个输入需要一些技巧,首先,他给的N表示输入多少行,然后每一行到底输入多少个数字我们不知道,这就需要我们去判断输入的结尾是不是换行号,这里提供了一个C++的判断方法:cin.get()==&…… 题解列表 2021年04月15日 0 点赞 1 评论 877 浏览 评分:4.6
直接查找(Python) 摘要:S={}n=int(input())while n>0: t=int(input()) if t in S: S[t]=S[t]+1 else: S[t]…… 题解列表 2021年04月15日 0 点赞 0 评论 333 浏览 评分:0.0
蓝桥杯历届试题-蚂蚁感冒 摘要:```python num = int(input()) ls = list(map(int,input().split())) a = ls[0] sum = len(ls) co…… 题解列表 2021年04月15日 0 点赞 0 评论 459 浏览 评分:0.0
简单的分巧克力方法,放心看 摘要:解题思路:二分参考代码:#include <stdio.h> #include <algorithm> using namespace std; int h[100010]; int w[10…… 题解列表 2021年04月15日 0 点赞 0 评论 543 浏览 评分:9.0
c++解法(可读性强) 摘要:```cpp #include #include #include #include using namespace std; int main() { int n1,n2…… 题解列表 2021年04月15日 0 点赞 0 评论 382 浏览 评分:9.9
c++暴力解法(自写sort函数的第三个参数) 摘要:```cpp #include #include #include #include using namespace std; bool comp(vector a,vector…… 题解列表 2021年04月15日 0 点赞 0 评论 612 浏览 评分:9.9