A+B for Input-Output Practice (I)-题解(Python代码)python开荒,关于无输入如何推出循环 摘要:```python x = input() # 先输入 while x: # 如果input无输入x值为"",循环退出 s = x.split(" ") print(int(s…… 题解列表 2020年03月15日 0 点赞 0 评论 1604 浏览 评分:9.9
python的咋没题解,我来加一个 摘要:解题思路:使用了一个无限循环来读取输入,直到遇到 EOFError 异常或者文件结束符为止。在每次循环中,它使用 map() 函数将输入的一行拆分为两个整数 a 和 b,并计算它们的和,然后输出结果。…… 题解列表 2023年08月14日 1 点赞 0 评论 895 浏览 评分:9.9
题目 1085: A+B for Input-Output Practice (I) (C语言) 摘要:```c #include int main() { int a, b; while(scanf("%d%d", &a, &b) != EOF) { …… 题解列表 2023年04月09日 0 点赞 0 评论 1224 浏览 评分:9.9
1085: A+B for Input-Output Practice (I) 摘要:```csharp #include using namespace std; int main() { int a,b; while(cin>>a>>b)cout…… 题解列表 2023年02月02日 0 点赞 0 评论 789 浏览 评分:9.9
C++简便易懂 摘要:# 其实这题直接点提交就行了 ``` #include using namespace std; int main() { int a,b; while(cin>>a>>…… 题解列表 2023年01月14日 0 点赞 0 评论 525 浏览 评分:9.9
A+B for Input-Output Practice (I) 摘要:解题思路:队列的思想注意事项:参考代码:#include<stdio.h> #include<stdlib.h> typedef struct ST { struct ST* next…… 题解列表 2022年01月21日 0 点赞 1 评论 1006 浏览 评分:9.9
A+B for Input-Output Practice (I)(c++代码) 摘要:解题思路:换个英文版你就不会了???注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b;int main(){ while(…… 题解列表 2022年05月08日 0 点赞 0 评论 762 浏览 评分:9.9
1085: A+B for Input-Output Practice (I) 摘要:解题思路:边输入边输出。参考代码:#include<iostream> using namespace std; int main() { int a,b; while(cin>>a>>…… 题解列表 2022年05月21日 0 点赞 0 评论 815 浏览 评分:9.9
A+B for Input-Output Practice (I) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) cou…… 题解列表 2024年03月07日 0 点赞 0 评论 888 浏览 评分:10.0
C++简单解法 摘要:#includeusing namespace std;int main(void){ int a,b; while(cin>>a>>b)cout…… 题解列表 2025年02月28日 1 点赞 1 评论 544 浏览 评分:10.0