模板
Star77777
信息学
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
欧拉筛法求素数(模板)
欧拉筛法求素数将所有合数标记,保证不被重复筛除,时间复杂度为O(n)#include <cstdio> #include <cstring> #include <iostream> #include <algorithm> using namespace std; const int maxn = 3000050; int prime[maxn]; ...原创 2017-12-08 15:03:03 · 1276 阅读 · 0 评论 -
大整数加法 模板
#include <cstdio> #include <cstring> #include <iostream> #include <algorithm> #include <string> #include <queue> #include <stack> #include <map>原创 2018-04-24 15:09:46 · 462 阅读 · 0 评论 -
大整数减法 模板
#include <cstdio> #include <cstring> #include <string> #include <iostream> #include <algorithm> using namespace std; string sub(string a, string b) { int i, j, k...原创 2018-04-28 11:09:34 · 630 阅读 · 0 评论 -
Codeforces Round #514 (Div. 2) B - Forgery
遍历所有左上角# #include <bits/stdc++.h> using namespace std; #define ll long long const int maxn = 1e3+5; int n, m, k; char mapp[maxn][maxn]; int vis[maxn][maxn]; bool f(int i, int j) { if (mapp...原创 2018-10-08 23:04:04 · 232 阅读 · 0 评论
分享