跳到正文

剪贴板

剪贴板 xemxteus

原文
剪贴板信息

剪贴板信息

收录
更新

New:

C++
#include<bits/stdc++.h>
using namespace std;
#define gc getchar
#define pc putchar
#define LL long long
inline LL read(){
  LL x=0;char ch=gc();int f=1;
  while(!isdigit(ch)){if(ch=='-')f=-1;ch=gc();}
  while(isdigit(ch))x=(x<<1)+(x<<3)+ch-'0',ch=gc();
  return x*f;
}
inline void write(LL x){
  if(x<0) x=-x,pc('-');
  if(x>9) write(x/10);
  pc(x%10+'0');
}
inline void writeans(LL x){write(x);pc('\n');}
int main(){
  return 0;
}

old:

C++
ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
C++
static char buf[4500000],*p1=buf,*p2=buf;
#define getchar() p1==p2&&(p2=(p1=buf)+fread(buf,1,4500000,stdin),p1==p2)?EOF:*p1++
C++
inline int read(){
    int x=0;
    char ch=getchar();
    while(ch<'0'||ch>'9') {
        ch=getchar();
    }
    while (ch>='0'&&ch<='9') {
        x=(x<<1)+(x<<3)+ch-'0';
        ch=getchar();
    }
    return x;
}
C++
inline void write(int x){
	if(x<0){
		putchar('-');
		x=-x;
	}
	if(x>10) write(x/10);
	putchar(x%10+'0');
}

ddj fastio

C++
namespace Fast_IO {
	template <typename T> il void read(T &x) {
		x = 0; int f = 0; char ch = getchar();
		while (!isdigit(ch)) f |= (ch == '-'), ch = getchar();
		while (isdigit(ch)) x = x * 10 + (ch - 48), ch = getchar();
		x = f ? -x : x;
	}
	template <typename T, typename ...Args>
	il void read(T &x, Args& ...args) {read(x), read(args...);}
	template <typename T> il void write(T x, char c = '\n') {
		if (x) {
			if (x < 0) x = -x, putchar('-');
			char a[30]; short l;
			for (l = 0; x; x /= 10) a[l ++] = x % 10 ^ 48;
			for (l --; l >= 0; l --) putchar(a[l]);
		} else putchar('0');
		putchar(c);
	}
} using namespace Fast_IO;