璇诲叆浼樺寲

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了璇诲叆浼樺寲相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/eve' title='eve'>eve   closed   opened   eof   static   pen   -o   text   span   

  • 鎶€鏈浘鐗? id=
     1 inline char nc(){
     2     static char buf[100000],*p1=buf,*p2=buf;
     3     return p1==p2&&(p2=(p1=buf)+fread(buf,1,100000,stdin),p1==p2)?EOF:*p1++;
     4 }
     5 inline int read(){
     6     char ch=nc();int sum=0;
     7     while(!(ch>=鈥?/span>0鈥?/span>&&ch<=鈥?/span>9鈥?/span>))ch=nc();
     8     while(ch>=鈥?/span>0鈥?/span>&&ch<=鈥?/span>9鈥?/span>)sum=sum*10+ch-48,ch=nc();
     9     return sum;
    10 }
    View Code

  • getc(stdio) 璇诲叆

鐢ㄧ殑鏈€澶?/p>

鎶€鏈浘鐗? id=
inline void read(int &x)
{
    x = 0;int f = 1;char ch;
    ch = getc(stdin);
    while(ch > 鈥?/span>9鈥?/span>||ch < 鈥?/span>0鈥?/span>) {if(ch == 鈥?/span>-鈥?/span>) f = -1;ch = getc(stdin);}
    while(ch <= 鈥?/span>9鈥?/span>&&ch >= 鈥?/span>0鈥?/span>) {x = (x * 10) + (ch ^ 48);ch = getc(stdin);}
    x *= f;
}
View Code

 

以上是关于璇诲叆浼樺寲的主要内容,如果未能解决你的问题,请参考以下文章

SEO浼樺寲锛氭祬鏋愰潤鎬佸寲椤甸潰瀵逛簬缃戠珯浼樺寲鐨勫奖鍝嶆槸浠€涔堬紵

mysql浼樺寲寤鸿

绋嬪簭鎬ц兘浼樺寲涔嬬綉缁滀紶杈撲笌鏁版嵁瀛樺偍浼樺寲锛堜簲锛変笅

鏂滅巼浼樺寲

Hive Join浼樺寲

[鎵撳寘浼樺寲]Webpack浣撶Н鍘嬬缉