70分C++半江红求解!

B2001 入门测试题目

@[Harry_Haiyun](/user/977778) 注意范围,要开long long
by yangyueming @ 2023-05-10 18:11:29


@[Harry_Haiyun](/user/977778) 不开long long见祖宗。
by sherry_lover @ 2023-05-10 18:11:36


不开long long见祖宗。
by ljk8886 @ 2023-05-10 18:11:46


@[Harry_Haiyun](/user/977778) 请开long long
by jcls @ 2023-05-10 18:12:10


不开long long见祖宗。
by __My0217__ @ 2023-05-10 18:31:13


``` #include <iostream> #define int long long using namespace std; signed main() { int a,b; cin >> a >> b; cout << a+b; return 0; } ```
by _really_myself_ @ 2023-05-10 18:40:30


@[_really_myself_](/user/718390) 你这个代码要开long long
by banglee @ 2023-05-18 16:54:06


@[banglee](/user/681292) 你难道没注意到 ```cpp #define int long long ```
by _really_myself_ @ 2023-05-19 13:09:25


@[_really_myself_](/user/718390) 可能会被系统认为你定义的是int类型,而不是long long 类型
by banglee @ 2023-05-20 20:25:36


@[_really_myself_](/user/718390) 稳妥的做法就是直接 ```cpp long long a,b; ```
by banglee @ 2023-05-20 20:26:21


| 下一页