1. 首页
  2. 数据库
  3. 其它
  4. PAT(甲级) A+B Format

PAT(甲级) A+B Format

上传者: 2021-01-16 19:05:17上传 PDF文件 27.44KB 热度 18次
题目 题目链接 思路 把数字转化为字符串,倒序输出 大神的都是数字直接转为字符串,学到了 代码 第一个测试点不过,有会的可以帮我看看吗,万分感谢 现在做pat不过一个测试点我也能慢慢接受了,呜呜呜 我的 #include #include using namespace std; int main(){ long a,b; vector vec; cin >> a >> b; a = a + b; if(a == 0) cout << 0; if(a<0) { a = -a; cout <
下载地址
用户评论