题解列表

筛选

编写题解 2065: [STL训练]{A} + {B}

摘要:解题思路:注意事项:参考代码:while True:     try:         n,m=map(int,input().split())         r=list(map(int,i……

尝除法求约数

摘要:```cpp #include using namespace std; void check(int n){ vectora; for(int i = 1; i n; c……

辗转相除法

摘要:```cpp #include using namespace std; int gcd(int a, int b){ return b ? gcd(b, a % b) : a; ……

蓝桥杯历届试题-蚂蚁感冒 分情况计算

摘要:解题思路:蚂蚁速度相同,感冒从最开始向两侧扩散感冒蚂蚁两侧 向两侧走的蚂蚁都不会遇到感冒蚂蚁感冒蚂蚁两侧 向感冒蚂蚁走的蚂蚁都会遇到感冒的蚂蚁注意事项:参考代码:import java.util.Sc……

最直接简单做题方法

摘要:#### 主要是注意其他的字符的判断 ~~~ java import java.util.Scanner; public class Main{ public static void m……