题解列表

筛选

小小新手:DNA

摘要:```python n = int(input()) while n: a, b = map(int, input().split()) ss = [] j = 0 ……

python-打水问题

摘要:解题思路:注意事项:参考代码:def f(n,m):       A = [int(i) for i in input().strip().split()]       A.sort()    ……

C++String类题解

摘要:解题思路:没啥思路,一步步来,我的代码应该还是很简单的注意事项:注意第一步要插入到a1前面而不是后面,删除操作需要从后往前遍历参考代码:#include<bits/stdc++.h>using nam……
优质题解

python-找素数

摘要:解题思路:首先分析题目:问题1:数据较大,如果遍历依次判断素数的话,会超时。解决方法:埃拉托色尼筛选法。原文链接:https://blog.csdn.net/xiaoquantouer/article……

[编程入门]密码破译

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;const int N = 100;char A[N];in……

求长方形面积

摘要:#include<stdio.h>/*(长+宽)*2=周长   长*宽=面积*/int main(){int c,k;//定义长方形长变量为c,宽为变量kint C=0,S=0;//定义周长变量为C和……

python-插入排序(格式有问题的可以看下)

摘要:解题思路:这道题样例输出格式给错了。那个剩下的9%的错误,就是当n = 5时按题目给的错误格式输出就好了(不缩进+最后一个move  back中间空两格)注意事项:参考代码:def f(n):   ……

最简单的数字逆序输出

摘要:解题思路:正循环输入,反循环输出注意事项:参考代码:#include<stdio.h> int main() { int arr[10]; int i; for(i=0;i<10;i+……