快读:
1 inline int in() 2 { 3 char ch; 4 int a=0; 5 while(!(((ch=getchar())>=‘0‘)&&(ch<=‘9‘))); 6 a*=10;a+=ch-‘0‘; 7 while(((ch=getchar())>=‘0‘)&&(ch<=‘9‘))a*=10,a+=ch-‘0‘; 8 return a; 9 }
快写:
inline void out(int a) { if(a>=10)out(a/10); putchar(a%10+‘0‘); }
循环re(寄存器):
#define re register
头文件:
#include <stdio.h>//getchar putchar
原文地址:https://www.cnblogs.com/SuperGoodGame/p/9049167.html
时间: 2024-11-12 04:41:48