首页 > 其他分享 >中文 Code —— define 的聚集地

中文 Code —— define 的聚集地

时间:2023-05-23 18:56:02浏览次数:26  
标签:输出 Code int 聚集地 long 整数 define

#define 命名空间 using namespace std;
#define 主函数 int main()
#define 终止 return 0;
#define 整数 int
#define 长整数 long long
#define 双精度小数 double
#define 单精度小数 float
#define 布尔型 bool
#define 字符 char
#define 字符串 string
#define 空的 void
#define 如果 if
#define 否则 else
#define 乘  *
#define 除  /
#define 加  +
#define 减  -
#define 循环1 for
#define 从1循环到n for(int i=1;i<=n;i++)
#define 赋值为 =
#define 等于 ==
#define 输入 cin
#define 输入符 >>
#define 输出 cout
#define 输出符 <<
#define 结构体 struct
#define 类 class
#define 且 && 
#define 或 ||
#define 非 !
#define 真 true
#define 假 false
#define 打破循环 break
#define 跳过循环 continue
#define 常量 const
#define 新的 new
#define 这个 this
#define 都不一样 default
#define 如 case
#define 判断 switch
#define 指数 pow
#define 最大值 max
#define 最小值 min
#define 输入重定向 freopen("in.txt","r",stdin);
#define 输出重定向 freopen("out.txt","w",stdout);
#define 绝对值 abs
#define 去 goto 
#define 开根 sqrt
#include<iostream>
#include<cstdio>
命名空间
整数 a, b;
主函数{
	输入 输入符 a 输入符 b;
	输出 输出符 a 加 b;
	终止
}

标签:输出,Code,int,聚集地,long,整数,define
From: https://www.cnblogs.com/So-noSlack/p/17426103.html

相关文章

  • CodeForces 1827E Bus Routes
    洛谷传送门CF传送门比较神奇的题。定一个非叶子\(r\)为根。显然只用判断两个叶子是否可达。求出每个叶子向上能一步跳到的深度最浅的点\(p_i\),那么如果\(p_i\)不在一条链上就无解,因为两条路径没有交点。然后只用判断\(p_i\)最深的叶子的\(p_i\)能不能一步到达其他......
  • leetcode2215哈希列表的应用
    哈希列表存储的是不重复的元素,使用两个哈希列表存储这两个数组。再遍历其中一个哈希列表,查看是否存在另一个哈希列表中set.insert()set1.count(元素)for(intnum:nums1){set1.insert(num);}for(intnum:set1){if(!set2.count(num)){res[0].push_back(num);......
  • AtCoder Beginner Contest 296
    AtCoderBeginnerContest296D题意给出n和m,问\(1\leqi,j\leqn\),使得\(ij\geqm\),求出这个乘积的最小值思路这两个乘数至少有一个在\([1,\sqrt{m}]\),枚举代码voidsolve(){ cin>>n>>m; intx=sqrt(m); if(n>=m){cout<<m<<endl;return;} if(x*x==m)......
  • Code39详细介绍
    Code39码是条形码的一种,也被称为3of9code、USD-3或者LOGMARS,因为其编制简单、能够对任意长度的数据进行编码、支持设备广泛等特性,所以成为使用最为广泛的条形码格式之一。Code39码仅有两种单元宽度——分别为宽单元和窄单元。宽单元的宽度为窄单元的1到3倍,一般多选用2倍、2.5......
  • AtCoder Regular Contest 139 C One Three Nine
    洛谷传送门AtCoder传送门闲话:做这场的B用时跟C差不多不会直接构造,因此这是一个无脑做法。考虑对于\(\forallx\in[1,n],y\in[1,m],(x+3y,3x+y)\)看成一个点,那么选择的\((x,y)\)要满足,不存在一行或一列有超过\(1\)个点。这启发我们对于合法的点\((a......
  • Vue2 到 Vue3 升级插件gogocode-plugin-vue
    配合gogocode-cli使用开始迁移​Vue3的到来为我们带来了许多惊喜的变化,但是由于Vue3对于Vue2在Api层面存在诸多兼容问题,并不能做到平滑升级。所以我们根据v3迁移指南利用gogocode这个代码转换利器,利用它操作AST,开发了一套Vue2升级工具。利用这套工具能够快速地把你的Vue2代码升......
  • bst中序-leetcode230二叉搜索树第k个元素
    给定一个二叉搜索树的根节点 root ,和一个整数 k ,请你设计一个算法查找其中第 k 个最小元素(从1开始计数)。示例1:输入:root=[3,1,4,null,2],k=1输出:1示例2:输入:root=[5,3,6,2,4,null,null,1],k=3输出:3提示:树中的节点数为 n 。1<=k<=n<=1040<=Node.val<......
  • UIView的层次结构--code
    [selflogViewTreeForMainWindow];//Recursivelytraveldowntheviewtree,increasingtheindentationlevelforchildren-(void)dumpView:(UIView*)aViewatIndent:(int)indentinto:(NSMutableString*)outstring{for(inti=0;i<indent;i++)[o......
  • 图解LeetCode——793. 阶乘函数后 K 个零(难度:困难)
    一、题目 f(x) 是 x! 末尾是0的数量。回想一下 x!=1*2*3*...*x,且0!=1 。例如, f(3)=0 ,因为3!=6的末尾没有0;而f(11)=2 ,因为11!=39916800末端有2个0。给定 k,找出返回能满足f(x)=k 的非负整数x 的数量。二、示例2.1>示例1:【输入......
  • 图解LeetCode——剑指 Offer 34. 二叉树中和为某一值的路径
    一、题目给你二叉树的根节点root和一个整数目标和targetSum,找出所有从根节点到叶子节点路径总和等于给定目标和的路径。叶子节点是指没有子节点的节点。二、示例2.1>示例1:【输入】root=[5,4,8,11,null,13,4,7,2,null,null,5,1],targetSum=22【输出】[[5,4,11,2],[5,......