跳到正文

剪贴板

剪贴板 2xks59xr

原文
剪贴板信息

剪贴板信息

收录
更新

https://www.cnblogs.com/flashhu/p/9498517.html /bx /bx /bx

https://www.luogu.com.cn/problem/U212296 Try it.


- Introduction

https://www.luogu.com.cn/paste/2v75r3ec

https://www.luogu.com.cn/paste/2xks59xr

%一个普通音游人,一个幻想着今年 CSP-S 不取消就能蓝钩的 OIer,一个颓废的 whker。%

  • 「Phigros」rks 15.84 Gold 48

  • 「Orzmic」Rating 12.523^{\sf 3}

  • 「Arcaea」ptt 12.03

目标是在公开赛中拿到 rk 前 70。


- Announcement

「洛谷博客」与 cnblogs1(随便记点杂事) and cnblogs2(正经的学习笔记) 博客同步。


- Goal:

(真实情况:CSP-S 2022 AC 一题 口胡一题,加上暴力约 200pts200 \text{pts})


- Recent target

  1. ✅ Codeforces→Specialist\text{Codeforces} \to \color{#03a89e}\textbf{\textsf{Specialist}}
  2. ❌ Atcoder Rating→1000\text{Atcoder Rating} \to \color{#008000} \textbf{\textsf{1000}}
  3. ❌ Codeforces→Expert\text{Codeforces} \to \color{#0000ff}\textbf{\textsf{Expert}}

- Codeforces

α\alpha Rating:[链接](https://codeforces.com/profile/TheSky233)

β\beta Rating:[链接](https://codeforces.com/profile/uint64_t)

- AtCoder

[链接](https://atcoder.jp/users/TheSky233)


- Recommend


- Team

  • DFOI ←\gets 谨以此纪念我的 OI 生涯。

- Websites

AtCoder:https://atcoder.jp/

AtCoder Problems:https://kenkoooo.com/atcoder#/table

base64:https://base64.us/

Codeforces:https://codeforces.com/

CF Traker:https://cftracker.netlify.app/problems

CF Stress:https://cfstress.com/

Chemicalaid:https://en.intl.chemicalaid.com/

DeepL Translator:https://www.deepl.com/zh/translator

Desmos:https://www.desmos.com/calculator?lang=zh-CN

Graph Editor:https://csacademy.com/app/graph_editor/

Imgse:https://imgse.com/

LaTeX\LaTeX Live:https://latexlive.com/home##

Math Solver:https://mathsolver.microsoft.com/zh or https://www.geogebra.org/solver

OEIS:http://oeis.org/

Ubuntu Pastebin:https://paste.ubuntu.com/

Udebug:https://www.udebug.com/

USACO:http://usaco.org/index.php


- Code Insertion

放一份备用缺省源。

C++
#include <bits/stdc++.h>
using namespace std;

#define Multicase() for(int T = read() ; T ; T--)
#define lowbit(x) (x & (-x))
#define ls(p) (p<<1)
#define rs(p) (p<<1|1)
#define l(p) tree[p].ls
#define r(p) tree[p].rs
#define sum(p) tree[p].sum
#define tag(p) tree[p].tag
#define F(i,a,b) for(int i=(a) ;i<=(b);++i)
#define F2(i,a,b) for(int i=(a);i< (b);++i)
#define dF(i,a,b) for(int i=(a);i>=(b);--i)
#define debug(...) fprintf(stderr,__VA_ARGS__)
#define Debug debug("Passing [%s] in LINE %d\n",__FUNCTION__,__LINE__)
#define clr(a,x) memset(a,x,sizeof(a))
#define pb push_back
#define mkp make_pair
#define fi first
#define se second
#define endl '\n'
#define ENDL putchar('\n')
#define forGraph(u) for(int i=head[u];i;i=G[i].next)

const int N=5e5+5;
const int M=1e6+5;
const int MN=1e3+5;
const int iinf=INT_MAX;
const double eps=1e-9;
const double pi=acos(-1);
const long long linf=LLONG_MAX;
const long long mod=1000000007,mod2=998244353;

typedef long long ll;
typedef unsigned long long ull;
typedef double db;
typedef map<int,int> mii;
typedef map<ll,ll> mll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef map<string,int> msi;

inline int read(){int x(0), f(0); char ch=getchar(); while(ch<'0'||ch>'9'){f|=ch=='-';ch=getchar();} while(ch>='0'&&ch<='9'){x=(x<<1)+(x<<3)+(ch^48); ch=getchar();} return f?-x:x;}
template <typename T> void read(T &x){x=0; T f(0); char ch=getchar(); while(ch<'0'||ch>'9'){f|=ch=='-';ch=getchar();} while(ch>='0'&&ch<='9'){x=(x<<1)+(x<<3)+(ch^48); ch=getchar();} x=f?-x:x;}
template <typename T,typename ...Arg>void read(T& x,Arg& ...arg){read(x);read(arg...);}
template <typename T> inline void write(T x){static char buf[64]; static int tot(0); if(x<0) putchar('-'),x=-x; do buf[++tot]=(x%10)+48,x/=10; while(x); do putchar(buf[tot--]); while(tot);}
template <typename T> void write(T x,char c){static char buf[64]; static int tot(0); if(x<0) putchar('-'),x=-x; do buf[++tot]=(x%10)+48,x/=10; while(x); do putchar(buf[tot--]); while(tot); putchar(c);}
void judge(bool x){printf(x?"YES\n":"NO\n");}

void Solve();

struct Graph{
    int to,w,next;
}G[M<<1];
int head[N],cnt;
void addEdge(int u,int v,int w=1){G[++cnt]=(Graph){v,w,head[u]}; head[u]=cnt;}

template<class T,class U> void chkmax(T &x, U y) { if(x < y) x = y; }
template<class T,class U> void chkmin(T &x, U y) { if(x > y) x = y; }

int n,m,q,k,p;
int a[N],b[N],f[N];
vector<int> v;

int main(){
//    Multicase()
        Solve();
}

void Solve(){
}

- Friend list

- Notification