C++简单解法 摘要:#includeusing namespace std;int main(void){ long long a,b; while(cin>>a>>b)//之所以不用whi…… 题解列表 2025年02月28日 0 点赞 0 评论 486 浏览 评分:10.0
A+B for Input-Output Practice (III) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b; while(cin>>a>>b) { if (a…… 题解列表 2024年03月07日 0 点赞 0 评论 472 浏览 评分:0.0
好写》好写 摘要:参考代码:#include<iostream> using namespace std; int main() { int a,b; while(cin >> a >> b)…… 题解列表 2024年01月02日 0 点赞 0 评论 535 浏览 评分:9.2
1087两数加和求解 摘要:解题思路:用for语句循环,break跳出循环注意事项:注意for循环的循环截止条件参考代码:#include<iostream>using namespace std;int main(){ …… 题解列表 2023年10月24日 0 点赞 0 评论 568 浏览 评分:9.9
LikeWater - 1087: A+B for Input-Output Practice (III) ```cpp#include#includeusingnamespacestd;//编写一个程序,输入a、b、c三个值,输出其中最大值。intmain(){doublea,b;while(cin>>a>>b&&!(a==0&&b==0)){cout 题解列表 2023年02月27日 0 点赞 1 评论 461 浏览 评分:9.9
新手解题:1087丨使用do while循环 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a, b; cin >> a >> b; do{ …… 题解列表 2023年02月03日 0 点赞 0 评论 664 浏览 评分:9.9
A+B for Input-Output Practice (III)(怀氏c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(1) { …… 题解列表 2022年10月24日 0 点赞 0 评论 841 浏览 评分:9.9
1087: A+B for Input-Output Practice (III) 摘要:```cpp #include using namespace std; int main() { int a,b; while(cin>>a>>b&&(a!=0||b!=…… 题解列表 2022年08月31日 0 点赞 0 评论 862 浏览 评分:9.9
1087: A+B for Input-Output Practice (III) 摘要:解题思路:输一个输出一个,直到“0 0”。注意事项:要写出终止循环的方法哦!参考代码:#include<iostream> using namespace std; int main() { …… 题解列表 2022年05月21日 0 点赞 0 评论 587 浏览 评分:9.9
P1087 数组解法 摘要:解题思路:我看好多题解没有严格按照输入标准来hhh 其实利用二维数组可以实现题目要求注意事项:goto语句和break语句的使用参考代码:#include<iostream>using namespa…… 题解列表 2022年05月18日 0 点赞 0 评论 554 浏览 评分:8.0