常用模板
#pragma GCC optimize(3)
#include<bits/stdc++.h>
#define int long long
#define fuckios ios::sync_with_stdio(false);cin.tie(0);
#define gcd __gcd
#define ms(sth,val) memset(sth,val,sizeof(sth))
#define eb(x) emplace_back(x)
#define pb(x) push_back(x)
#define sz(x) ((int)(x).size())
#define endl '\n'
#ifdef LOCAL
#define debug(a) cout<<#a<<"-->"<<a<<endl;
#endif
#ifndef LOCAL
template<typename T>
void debug(T x){}
#endif
// RP ++ ;
//=========================================
using namespace std;
// small on top
// priority_queue<int,vector<int>,greater<int>> que;
// big on top
// priority_queue<int,vector<int>,less<int>> que;
struct sensei_hash {
static uint64_t splitmix64(uint64_t x) {
x += 0x9e3779b97f4a7c15;
x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
return x ^ (x >> 31);
}
size_t operator()(uint64_t x) const {
static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count();
return splitmix64(x + FIXED_RANDOM);
}
};
bool cmp(int x,int y){
//big to small
return x>y;
}
int getmid(int s, int t)
{
// s-> start;
int ret = s + ((t - s) >> 1);
return ret;
}
const int32_t inf = 0x3f3f3f3f;
const int64_t inf_ll = 0x3f3f3f3f3f3f3f3f;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int,int> ;
template <typename T>
inline void read(T& x)
{
x = 0;
char ch = getchar();
ll f = 1;
while (!isdigit(ch)) {
if (ch == '-')
f *= -1;
ch = getchar();
}
while (isdigit(ch)) {
x = x * 10 + ch - 48;
ch = getchar();
}
x *= f;
}
template<typename T, typename ...Arg>
inline void read(T&x, Arg&...args)
{
read(x);
read(args...);
}
struct node{
int x;
int y;
};
const int N = 1e6 + 10;
inline void sensei()
{
}
signed main()
{
#ifndef LOCAL
fuckios
#endif
return 0;
}
XCPC
#include <bits/stdc++.h>
#define int long long
#define fuckios ios::sync_with_stdio(false);cin.tie(0);
#define gcd __gcd
#define endl '\n'
using namespace std;
const int32_t inf = 0x3f3f3f3f;
const int64_t inf_ll = 0x3f3f3f3f3f3f3f3f;
using ll = long long;
const int N = 1e6 + 10;
inline void sensei()
{
}
signed main()
{
return 0;
}
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 因为Apifox不支持离线,我果断选择了Apipost!
· 通过 API 将Deepseek响应流式内容输出到前端