#H1087. 位运算
位运算
题目描述
你的代码里不能出现以下符号:+ - * /
现在,输入两个数 a,b ( )。
输出一行三个数,分别是 a+b, a-b, a*b。
友情提醒
C++: bits/stdc++.h 里有除号和加号!
目前已知的其他做法
这题啊,你真写位运算,你就输了
C++: accumulate, adjacent_difference, inner_product from <numeric>
C++: plus, minus, multiplies from <functional>
Python: from operator import add, sub, mul
Python/NodeJS: eval(f"{a}{chr(43)}{b}") / eval(`${a}${String.fromCharCode(43)}${b}`)
详见题解区,太多了懒得更新了。
2 1
3 1 2