跳到正文

Ajin_Breeze

1000916

最后在线时间: 2026/9/26 15:48

在洛谷打开
资料、奖项与版本

资料

编号
1000916
抓取

快读

C++
inline int read(){
    int x = 0 , f = 1 ; char c = getchar() ;
    while( c < '0' || c > '9' ) { if( c == '-' ) f = -1 ; c = getchar() ; } 
    while( c >= '0' && c <= '9' ) { x = x * 10 + c - '0' ; c = getchar() ; } 
    return x * f ;
} 

快写

C++
inline void write(int x){
	int s[20],top = 0;if(x<0) {putchar('-');x = -x;}
	while(x) {s[++top] = x%10;x/=10;};if(!top) s[++top] = 0;
	while(top) putchar(s[top--]+'0');
}

还没有收录这位用户的文章。