#include<stdio.h>
#include<sys/mman.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<unistd.h>
#define read(x___) \
{ \
int b___ = x___ ^= x___; \
while (*f___ < '0' && *f___ != '-') \
++f___; \
if (*f___ == '-') \
++f___, b___ = 1; \
while (*f___ >= '0') \
x___ = (x___ << 1) + (x___ << 3) + (*f___ ^ '0'), ++f___; \
if (b___) \
x___ = -x___; \
}
#define init___()\
int fd___ = fileno(stdin); \
struct stat sb___; \
fstat(fd___, &sb___); \
register char *f___ = (char *)mmap(0, sb___.st_size, 1, 2, fd___, 0);
int max(int a,int b){if(a>b)return a;return b;}
int min(int a,int b){if(a<b)return a;return b;}
char obuf[1<<23],*O=obuf;
void wr(int x){
static char sta[45];
int top=0;
do{
sta[++top]=x%10+'0';
x/=10;
}while(x);
while(top)*O++=sta[top--];
*O++='\n';
}
int main(){
init___();
fwrite(obuf,O-obuf,1,stdout);
}剪贴板
剪贴板 1vwp1t35
剪贴板信息
剪贴板信息
- 收录
- 更新