首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
RingoCrystal
2025年3月18日 15:50
又一版 A+B 题解:注意有0,且题目有误,不是231-1,是2^31
P1328
回复 0
|
赞 1
|
浏览 81
#include <bits/stdc++.h> using namespace std; int main() { int m; while(cin>>m){ if(m==0)break; long long a,b; cin>>a>>b; a+=b; if(a==0){ cout<<0<<endl; continue; } string s; while(a!...
题目
又一版 A+B
题解数量
1
发布题解
在线答疑
热门题解
1
又一版 A+B 题解:注意有0,且题目有误,不是231-1,是2^31-1,需要long long