摘要: 这道题的双指针筛选区间方式,和蓝桥杯的那个最大公约数一模一样: #include <iostream> #include <stdio.h> #include <algorithm> #include <string> #include <cstring> #include <string.h> # 阅读全文
posted @ 2024-03-31 20:21 Gold_stein 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 双指针做法: 反过来,从后往前看也是一样的: #include <iostream> #include <stdio.h> #include <algorithm> #include <string> #include <cmath> #define For(i, j, n) for (int i 阅读全文
posted @ 2024-03-31 19:15 Gold_stein 阅读(4) 评论(0) 推荐(0) 编辑