跳到正文

个人记录

c++标准格式

WYSY034约 1 分钟
原文
文章信息与版本

文章信息

发布
2025年10月28日
收录
2026年9月26日
更新
2026年11月11日
篇幅
约 1 分钟

版本

  1. v2当前
  2. v1
C++
#include<bits/stdc++.h>
#define endl "\n"
#define f(a,b,k,i) for(int i=a;i<=b;i+=k)
#define fb(a,b,k,i) for(int i=a;i>=b;i-=k)
typedef long long ll;
typedef double db;
using namespace std;
const int N=2e5+5;
const int int_inf=INT_MAX;
const ll ll_inf=LLONG_MAX;
void open(string s){
	if(!s.size())return;
	freopen((s+".in").c_str(),"r",stdin);
	freopen((s+".out").c_str(),"w",stdout);
}
void IOS(){
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cout.tie(nullptr);
}
void test_more(bool f,int &T){
	if(f)cin>>T;
	else T=1;
}
int a,b,n,_;
signed main(){
	open("");
	IOS();
	test_more(0,_);
	while(_--){
		
	}
    return 0;
}
原文