1000: [竞赛入门]简单的a+b 标题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)cout…… 题解列表 2023年02月07日 0 点赞 0 评论 155 浏览 评分:9.9
1000: [竞赛入门]简单的a+b 摘要:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)cout<<(a+b)<<e…… 题解列表 2023年02月09日 0 点赞 0 评论 220 浏览 评分:9.9
1000: [竞赛入门]简单的a+b 摘要:参考代码:while True: try: a,b=map(int,input().strip().split()) print(a+b) except: break…… 题解列表 2023年02月11日 0 点赞 0 评论 1334 浏览 评分:9.9
简单的a+b (C语言代码) 摘要:解题思路:这道题目的重点是scanf函数。函数名: scanf 功 能: 执行格式化输入 用 法: int scanf(char *format[,argument,...]);scanf()函数是通…… 题解列表 2023年02月25日 0 点赞 0 评论 149 浏览 评分:9.9
编写题解 1000: [竞赛入门]简单的a+b 摘要:#include<stdio.h> /* 关于~的作用解析: 1、在Windows下,用户按下CTRL+Z(会看到一个^Z字符),会停止输入流,scanf会返回-1。 2、-1的补码为11…… 题解列表 2023年03月24日 0 点赞 0 评论 192 浏览 评分:9.9
java计算多组a+b 摘要:解题思路:注意事项:参考代码:package lianxi;import java.util.Scanner;public class 计算多个a加b的值 { public static voi…… 题解列表 2023年04月21日 0 点赞 0 评论 297 浏览 评分:9.9
留住了塔没留住她:[竞赛入门]简单的a+b 摘要:解题思路: 我们可以定义两个变量a和b 由于题目输入数据数量不限所以我们要用while(cin>>a>>b) cout就是输出,(a+b)就是求a+b的和 …… 题解列表 2023年04月27日 0 点赞 0 评论 204 浏览 评分:9.9
a+b的最简方法 摘要:/这题是一道非常经典的题目,是编程初学者的必会题。(大佬请屏蔽)//首先头文件、名字空间我就不说了,这是得会背的内容,如下:#include<bits/stdc++.h>//这是一个万能头文件,可以背…… 题解列表 2023年06月18日 1 点赞 1 评论 256 浏览 评分:9.9
一看就懂,简单解决 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a, b; while (scanf("%d%d", &a, &b) == 2) { …… 题解列表 2023年07月06日 0 点赞 0 评论 232 浏览 评分:9.9
简单的a+b (C语言代码)(对~字符的一些解释) 摘要:解题思路: 难点也就在于多次输入,也就是写个循环,还有循环终止的条件 ```c #include int main() { int a,b; while(~scanf("…… 题解列表 2023年07月08日 0 点赞 0 评论 170 浏览 评分:9.9