随笔分类 - 月赛
摘要:只有比赛现场的暴力代码留念,复盘题解见具体题目T1 耗时20mins,暴力枚举,复杂度O(nQ),期望得分50#include#includeusing namespace std;#define mod 998244353const int maxn = 1e6...
阅读全文
摘要:C++奥赛一本通刷题记录(贪心) 2017.11.15 By gwj1139177410 书不见了,占坑待填。An Easy Problem poj2453//贪心, 将最右边第一个01改成10并将其右边的1都往右移到最低位#includeusing name...
阅读全文
摘要:C++奥赛一本通刷题记录(递归) 2017.11.9 By gwj1139177410逆波兰表达式 openjudge1696//栈比较坑。。。#include#include#include#includechar a[3010];double trans()...
阅读全文
摘要:C++奥赛一本通刷题记录(递推) 2017.11.8 By gwj1139177410斐波那契数列 openjudge1760#includeusing namespace std;const int maxn=1000010, mod=1000;int f[ma...
阅读全文
摘要:C++奥赛一本通刷题记录(排序) 2017.11.16 By gwj1139177410 都是拿STL水的…别怪我…… 谁考了第k名 openjudge01#include#includeusing namespace std;const int...
阅读全文
摘要:C++奥赛一本通刷题记录(高精度) 2017.11.15 By gwj1139177410大整数加法 openjudge10//Add Template#include#include#includeusing namespace std;const int m...
阅读全文
摘要:CodeVs刷题攻略之Diamond 2018.1.14 By gwj11391774100x01最短路Car的旅行路线//1.计算几何求第四点坐标, 方法很多//2.虚点,到A城市的四个机场边权都为0//3.SPFA跑最短路#include#include#in...
阅读全文
摘要:CodeVs天梯之Gold 2018.01.04 By gwj2330x01贪心均分纸牌#includeusing namespace std;const int maxn = 110;int a[maxn], sum, ans;int main(){ int...
阅读全文
摘要:CodeVs天梯之Silver 2017.12.18 By gwj11391774100x01排序明明的随机数#includeusing namespace std;int n, a[1010], t;int main(){ cin>>n; for(int...
阅读全文
摘要:CodeVs天梯之Bronze 2017.12.18 By gwj11391774100x01整数处理最小数和最大数#include#includeusing namespace std;int main(){ int n; cin>>n; int _m...
阅读全文