题解列表

筛选

python简单易懂解法

摘要:解题思路:可以在两个硬币之间想象出一个开关,控制它们的状态,如果硬币状态与目标不符,就按下开关,以此类推参考代码:start=list(str(input()))aim=list(str(input(……

笨小猴,第一次写解析

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char z[101]; scanf("%s",z);//输入一个字符串……

蓝桥杯专题系列-1541(Python)

摘要:解题思路:内置math函数gcd()求最大公约数,但本题其实考察的是数的拆分注意事项:不要傻傻的用函数自己调用自己参考代码:Python暴力解法:import mathcnt = 0n = int(i……

1268: 第K极值

摘要:```cpp #include using namespace std; const int maxn=10001; int n,k,arr[maxn],ans; string is_pre……