1267: A+B Problem 解题思路:注意事项:都是提交成功过的,可以直接使用参考代码:#includeusingnamespacestd;intmain(){intx,y;cin>>x>>y;cout< 题解列表 2026年05月20日 0 点赞 0 评论 300 浏览 评分:0.0 A+B的处理方式 解题思路:先考虑自然数的输入——input(),再考虑把input()所输入的数据最前端和最后变的多余空格进行删除处理——strip(),处理之后接着再按每个数据之间的空格进行分割、同时转换成列表中的单个数据,这个时候再用map()函数将列表中的各个数据都转换成int——map(int, 题解列表 2025年03月24日 3 点赞 0 评论 1902 浏览 评分:4.7 C++ : 类和两种访问权限的练习 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;class sum{ priva…… 题解列表 2025年03月21日 1 点赞 0 评论 1682 浏览 评分:0.0 简单,易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,sum; scanf ("%d %d",&x,&y); sum=x+y; …… 题解列表 2024年12月03日 7 点赞 0 评论 1506 浏览 评分:0.0 1267: A+B Problem题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<a+b…… 题解列表 2024年12月01日 3 点赞 0 评论 1103 浏览 评分:9.9 编写题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)cout…… 题解列表 2024年07月23日 2 点赞 0 评论 1049 浏览 评分:9.9 好好考哈回家后即可交话费 解题思路:注意事项:参考代码:whileTrue:try:a,b=map(int,input().strip().split())print(a+b)except:break 题解列表 2024年07月09日 0 点赞 0 评论 1261 浏览 评分:9.9 编写题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a,b; cin>>a>>b; cout<<a+b; re…… 题解列表 2024年06月09日 0 点赞 0 评论 906 浏览 评分:6.0 题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<…… 题解列表 2024年03月02日 0 点赞 0 评论 737 浏览 评分:0.0 超级简便的python 解题思路:利用map()和sum()注意事项:参考代码:s=list(map(int,input().split()))print(sum(s)) 题解列表 2024年02月29日 1 点赞 0 评论 1393 浏览 评分:9.9 « 1234567 »
A+B的处理方式 解题思路:先考虑自然数的输入——input(),再考虑把input()所输入的数据最前端和最后变的多余空格进行删除处理——strip(),处理之后接着再按每个数据之间的空格进行分割、同时转换成列表中的单个数据,这个时候再用map()函数将列表中的各个数据都转换成int——map(int, 题解列表 2025年03月24日 3 点赞 0 评论 1902 浏览 评分:4.7
C++ : 类和两种访问权限的练习 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;class sum{ priva…… 题解列表 2025年03月21日 1 点赞 0 评论 1682 浏览 评分:0.0
简单,易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,sum; scanf ("%d %d",&x,&y); sum=x+y; …… 题解列表 2024年12月03日 7 点赞 0 评论 1506 浏览 评分:0.0
1267: A+B Problem题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<a+b…… 题解列表 2024年12月01日 3 点赞 0 评论 1103 浏览 评分:9.9
编写题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)cout…… 题解列表 2024年07月23日 2 点赞 0 评论 1049 浏览 评分:9.9
好好考哈回家后即可交话费 解题思路:注意事项:参考代码:whileTrue:try:a,b=map(int,input().strip().split())print(a+b)except:break 题解列表 2024年07月09日 0 点赞 0 评论 1261 浏览 评分:9.9
编写题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a,b; cin>>a>>b; cout<<a+b; re…… 题解列表 2024年06月09日 0 点赞 0 评论 906 浏览 评分:6.0
题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<…… 题解列表 2024年03月02日 0 点赞 0 评论 737 浏览 评分:0.0
超级简便的python 解题思路:利用map()和sum()注意事项:参考代码:s=list(map(int,input().split()))print(sum(s)) 题解列表 2024年02月29日 1 点赞 0 评论 1393 浏览 评分:9.9