![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
恶搞集锦
Freeman_sason
SSL毕业学生
展开
-
再遇堆叠稻草
正经做法是差分,但我突发奇想,能不能用一些有逼格 的算法呢?于是就有了这篇题解。#include<cmath>#include<iostream>#define re register#define ll long long#define INF 0x3f3f3f3f#define N (ll)1e6 + 10using namespace std;ll n,q,x[N],y[N],pos[N],add[N],a[N];ll b[N];inline void.原创 2022-01-02 23:00:08 · 219 阅读 · 0 评论 -
C/C++ 与7无关的数
与7无关的数题目描述Attention:C++标准中禁止用main函数递归,正式比赛请勿使用。能使用是因为C语言标准较为宽松,一般能编译C++的编译器都能兼容C,但评测环境下不保证不会出现奇怪的错误。#include<iostream>#include<cstdlib>#define ll long long#define INF 0x3f3f3f3fusing namespace std;ll x,p = 1,ans;bool b = true;int原创 2021-08-26 21:02:53 · 1652 阅读 · 0 评论 -
C/C++ 陶陶摘苹果(main函数递归系列)
陶陶摘苹果题目描述Attention:C++标准中禁止用main函数递归,正式比赛请勿使用。能使用是因为C语言标准较为宽松,一般能编译C++的编译器都能兼容C,但评测环境下不保证不会出现奇怪的错误。#include<iostream>#include<cstdlib>#include<cmath>#define ll long long#define INF 0x3f3f3f3fusing namespace std;ll n,ans,p = 1原创 2021-08-26 20:58:47 · 1301 阅读 · 0 评论