跳到正文

题解

题解:P1001 A+B Problem

MassPoint约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2026年5月19日
篇幅
约 1 分钟
获赞
1
题目
P1001

版本

  1. v1当前

省流:顽强的 include。

因为我们是中国人,中国人必须使用中文交流,而 C++ 使用的是西文字符,很不美观,所以我们可以用 define 把能定义的西文全部定义为中文!

C++
#define 万能头 <bits/stdc++.h>
#define 使用 using
#define 命名空间 namespace
#define 标准 std
#define 三十二位整型 int
#define 主函数 main
#define 输入 cin
#define 输出 cout
#define 左移 <<
#define 右移 >>
#define 加 +
#define 返回 return
#define 零 0
#define 分号 ;
#define 左括号 (
#define 右括号 )
#define 左花括号 {
#define 右花括号 }
#define 逗号 ,
#include 万能头
使用 命名空间 标准 分号
三十二位整型 主函数 左括号 右括号 左花括号
	三十二位整型 甲 逗号 乙 分号
	输入 右移 甲 右移 乙 分号
	输出 左移 甲 加 乙 分号
	返回 零 分号
右花括号

AC 记录

原文