QQ:3779620644
https://4kxbn8cwnjwa8.feishuapp.com/app/app_17f67wjk86k
エンドルフィン 轴体推荐:佳达隆 G 银 Pro dqu5t8t08014mg 快读快写
inline int read() {
int x=0,f=1;char ch=getchar();
while(ch<'0'||ch>'9'){if (ch=='-') f=-1; ch=getchar();}
while(ch>='0'&&ch<='9'){x=x*10+ch-48; ch=getchar();}
return x * f;
}
inline void write(int x) {
if(x<0) {putchar('-'); x=-x;}
if(x>9) write(x/10);
putchar(x%10+'0');
}原文件
#include<bits/stdc++.h>
using namespace std;
#define ull unsigned long long
#define ll long long
#define endl '\n'
template<typename T>
inline T read() {
T x = 0;
int f = 1;
char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-') f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
x = x * 10 + (ch - '0');
ch = getchar();
}
return x * f;
}
template<typename T>
inline void write(T x) {
if(x == 0) {
putchar('0');
return;
}
if(x < 0) {
putchar('-');
write(static_cast<ull>(-x));
return;
}
if(x > 9) write(x / 10);
putchar(x % 10 + '0');
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
setbuf(stdin, 0); setbuf(stdout, 0);
return 0;
}归并排序模板
const int MAXN = 500010;
int a[MAXN], t[MAXN];
void gbmb(int l, int r) {
if (l >= r) return;
int mid = l + (r - l) / 2;
gbmb(l, mid);
gbmb(mid + 1, r);
int i = l, j = mid + 1, k = l;
while (i <= mid && j <= r) {
if (a[i] <= a[j]) {
t[k++] = a[i++];
} else {
t[k++] = a[j++];
}
}
while (i <= mid) {
t[k++] = a[i++];
}
while (j <= r) {
t[k++] = a[j++];
}
for (int w = l; w <= r; w++) {
a[w] = t[w];
}
}二分排序模板
int n, a[100010];
void efmb() {
for(int i = 1; i <= n; i++) {
int x = a[i];
int l = 0, r = i;
while(l < r) {
int mid = (r + l) / 2;
if (a[mid] <= x) {
l = mid + 1;
}
else {
r = mid;
}
}
for(int j = i; j > l; j--) {
a[j] = a[j - 1];
}
a[l] = x;
}
}三分模板
const int N = 114514;
const double w = 1e-9;
int n;
int a[N], b[N], c[N];
double f(double x) {
double maxn = -INT_MAX;
for(int i = 1; i <= n; i++) {
maxn = max(maxn, a[i] * x * x + b[i] * x + c[i]);
}
return maxn;
}
double sfmb(double l, double r) {
while(r - l > w) {
double m1 = (2 * l + r) / 3;
double m2 = (l + 2 * r) / 3;
if(f(m1) < f(m2)) {
r = m2;
}
else {
l = m1;
}
}
return l;
}真实的洛谷:
什么验证码???(妈的2b)
这又是什么big78
骗分过样例,暴力出奇迹。 数学先打表,DP看运气。
穷举TLE,递推UKE。 模拟MLE,贪心还CE。
想要骗到分,就要有方法。 图论背模板,数论背公式。
动规背方程,高精背代码。 如果都没背,干脆输样例。
这里摸鱼 枪战 五子棋
10.10.255.150 檰陽岽宸凷餖摑漈盬獄
61.157.138.24:8081国际垚剅教育






