A730.表达式计算2
2024-04-29 20:55:05
发布于:江苏
9阅读
0回复
0点赞
A730.表达式计算2
难度:入门
来源:官方
AC代码(C++/C#):
#include <bits/stdc++.h>
// #define _INT_MAX 2147483647
// #define _LONG_LONG_MAX 9223372036854775807
// #define _MATH_DEFINES_DEFINED
// #define debug freopen("in.txt","r",stdin), freopen("out.txt","w",stdout);
#define ZERO 0
#define CHARCTER ""
// #define CHARCTER_SPACE " "
#define CHARACTER_LINE_BREAK "\n"
#define FOUR_THOUSAND_THREE_HUNDRED_AND_NINETY_SIX 4396
#define TWO_THOUSAND_TWO_HUNDRED 2200
// #pragma GCC optimize("O2")
using namespace std;
int h = FOUR_THOUSAND_THREE_HUNDRED_AND_NINETY_SIX, g = TWO_THOUSAND_TWO_HUNDRED;
void _Output(int _print, string _plus);
void _Output(int _print, string _plus) {
cout << _print << _plus; }
int main(void) {
ios::sync_with_stdio(false);
cin.tie(ZERO);
cout.tie(ZERO);
cout << "4396+2200=";
_Output(h + g, CHARACTER_LINE_BREAK);
cout << "4396-2200=";
_Output(h - g, CHARACTER_LINE_BREAK);
cout << "4396*2200=";
_Output(h * g, CHARACTER_LINE_BREAK);
cout << "4396/2200=";
_Output(h / g, CHARACTER_LINE_BREAK);
cout << "4396%2200=";
_Output(h % g, CHARACTER_LINE_BREAK);
return ZERO; }
没有注释,自行学习。
by:ጿ ኈ ቼ ዽ ጿ
你的点赞和关注就是我更新题解的最大动力!
-----------------------------点个赞吧 ↓ !-----------------------------
这里空空如也
有帮助,赞一个