题解列表
菲暃要加油——陶陶摘苹果(4行解决)
摘要:解题思路:引入python自带的 bisect库,可以很快的解决这个问题注意事项:用的是bisect_right函数参考代码:importbisectl=sorted(list(map……
菲暃要加油——蛇行矩阵
摘要:解题思路:注意事项:参考代码:n=int(input())l=[[]foriinrange(n)]k=1foriin……
复习观看wwwwwwwwwwwwwww
摘要:#include#include#include#include#include#includeusing namespace std;int main(){ in……
有坑,a后面的数还要输出
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;const int t=1e6;int a[t],b[t]={0};void a……
ASCII字符和数字之间的转换
摘要:解题思路: 在 C 语言中,字符常量可以直接作为整数参与运算,因为它在内存中存储的就是对应的 ASCII 码值。同样,一个整数也可以作为字符……
拆分位数问题——利用取余
摘要:解题思路:得到各位数的数字,可以利用取余来获得。注意事项:参考代码:#include<iostream>using namespace std;int main(){ ……
[信息学奥赛一本通T1487-北极通讯网络] - DFS求连通块 +二分答案 或 Kruskal
摘要:## DFS求连通块 +二分答案```cpp#include // #define int long long // 仅在需要大整数时使用,memset 数组为 0x3f 时去掉#de……
[信息学奥赛一本通T1488-新的开始] - 虚拟原点求最小生成树
摘要:```cpp#include #define int long long // 仅在需要大整数时使用,memset 数组为 0x3f 时去掉#define INF 0x3f3f3f3f……
贪心,选出前m个最大翻转可增加的值
摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include <cstring>#include &……