博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
个人码风
阅读量:7059 次
发布时间:2019-06-28

本文共 578 字,大约阅读时间需要 1 分钟。

大括号不换行

int f(int x){    ...}

运算符之间打空格

if(a + b > c && d - e <= f)

逗号后打空格

int a, b, c;

函数缩进4格,for缩进3格,if,else,while,switch缩进2格

int f(x){    for(int i = 1; i <= n; ++i)       if(i % 2 == 0)         while(i % 2 == 0)           i /= 2;    return 233;}

喜欢用#define

#define lowbit(x) (x & (-x))#define INF 2147483647#define ll long long#define left (now << 1)#define right (now << 1 | 1)#define Open(s) freopen(s".in","r",stdin);freopen(s".out","w",stdout);#define Close fclose(stdin); fclose(stdout);

常量名全大写

const int MAXN = 100010;

转载于:https://www.cnblogs.com/Qihoo360/p/9541331.html

你可能感兴趣的文章
八大排序算法总结
查看>>
CodeForces Round #257 (Div. 2)
查看>>
【原】关于AdaBoost的一些再思考
查看>>
expect
查看>>
ios 适应屏幕
查看>>
fdisk添加分区引起的Linux Error: 22: Invalid argument
查看>>
Response.Redirect 打开新窗体的两种方法
查看>>
分享一款眼睛保健小软件 EyeDefender 多关注下眼睛的健康
查看>>
BitBlt介绍
查看>>
一次ssl的手动实现——加密算法的简单扫荡
查看>>
sql语句中出现笛卡尔乘积
查看>>
企业,公司职位名称大全(中英文对照)
查看>>
Android Fragment详解(三): 实现Fragment的界面
查看>>
在windows下编译x264
查看>>
Activity中使用Intent实现页面跳转与参数的传递(转)
查看>>
NetBeans 设置code completion/auto pop-up delay
查看>>
【.NET深呼吸】INotifyPropertyChanged接口的真故事
查看>>
Linux 命令快捷键
查看>>
构建一个用于产品介绍的WEB应用
查看>>
深入浅出WPF 第一部分(3)
查看>>