日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

自己的缺省(sheng)源

發(fā)布時(shí)間:2025/3/14 编程问答 19 豆豆
生活随笔 收集整理的這篇文章主要介紹了 自己的缺省(sheng)源 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

write無(wú)力吐槽了

1 #include <cstdio> 2 #include <iostream> 3 #include <algorithm> 4 #include <cstring> 5 #include <cmath> 6 #define REP(i, s, n) for(int i = s; i <= n; i ++) 7 #define RAP(i, n, s) for(int i = n; i >= s; i --) 8 using namespace std; 9 inline void read(int &x){ 10 x = 0; int sig = 1; char ch = getchar(); 11 while(!isdigit(ch)) { if(ch == '-') sig = -1; ch = getchar(); } 12 while(isdigit(ch)) x = 10 * x + ch - '0', ch = getchar(); 13 x *= sig; return ; 14 } 15 inline void write(int x){ 16 if(x == 0) { putchar('0'); return ; } 17 if(x < 0) putchar('-'), x = -x; 18 int len = 0, buf[20]; 19 while(x) buf[len ++] = x % 10, x /= 10; 20 RAP(i, len - 1, 0) putchar(buf[i] + '0'); return ; 21 } 22 void init(){ 23 24 return ; 25 } 26 void work(){ 27 28 return ; 29 } 30 void print(){ 31 32 return ; 33 } 34 int main(){ 35 init(); 36 work(); 37 print(); 38 return 0; 39 }

?新版的:

1 #include<iostream> 2 #include<cstdio> 3 #include<cmath> 4 #include<algorithm> 5 using namespace std; 6 inline int read(){ 7 int x=0,sig=1;char ch=getchar(); 8 while(!isdigit(ch)){if(ch=='-') sig=-1;ch=getchar();} 9 while(isdigit(ch)) x=10*x+ch-'0',ch=getchar(); 10 return x*=sig; 11 } 12 inline void write(int x){ 13 if(x==0){putchar('0');return;} if(x<0) putchar('-'),x=-x; 14 int len=0,buf[15]; while(x) buf[len++]=x%10,x/=10; 15 for(int i=len-1;i>=0;i--) putchar(buf[i]+'0');return; 16 } 17 void init(){ 18 return; 19 } 20 void work(){ 21 return; 22 } 23 void print(){ 24 return; 25 } 26 int main(){ 27 init();work();print();return 0; 28 }

?最新版的……

1 #include<iostream> 2 #include<cstdio> 3 #include<cmath> 4 #include<algorithm> 5 #include<queue> 6 #include<cstring> 7 #define PAU putchar(' ') 8 #define ENT putchar('\n') 9 using namespace std; 10 inline int read(){ 11 int x=0,sig=1;char ch=getchar(); 12 while(!isdigit(ch)){if(ch=='-')sig=-1;ch=getchar();} 13 while(isdigit(ch))x=10*x+ch-'0',ch=getchar(); 14 return x*=sig; 15 } 16 inline void write(int x){ 17 if(x==0){putchar('0');return;}if(x<0)putchar('-'),x=-x; 18 int len=0,buf[15];while(x)buf[len++]=x%10,x/=10; 19 for(int i=len-1;i>=0;i--)putchar(buf[i]+'0');return; 20 } 21 void init(){ 22 return; 23 } 24 void work(){ 25 return; 26 } 27 void print(){ 28 return; 29 } 30 int main(){init();work();print();return 0;}

?

轉(zhuǎn)載于:https://www.cnblogs.com/chxer/p/4423634.html

總結(jié)

以上是生活随笔為你收集整理的自己的缺省(sheng)源的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。