首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
首页
>
试题广场
>
单组_A+B
[编程题]单组_A+B
热度指数:19689
时间限制:C/C++ 3秒,其他语言6秒
空间限制:C/C++ 256M,其他语言512M
算法知识视频讲解
给定两个整数
和
,请你求出
的值。
输入描述:
第一行有两个整数
和
。
输出描述:
输出一个整数,代表
的值。
示例1
输入
1 2
输出
3
马上挑战
算法知识视频讲解
提交运行
算法知识视频讲解
添加笔记
求解答(0)
邀请回答
收藏(18)
分享
提交结果有问题?
16个回答
40篇题解
开通博客
牛客574317161号
发表于 2024-11-17 19:10:06
x,y=map(int,input().split()) print(x+y)
克里里克kliric
发表于 2024-08-16 13:38:16
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); int c = a + b; printf("%d\n", c);
展开全文
烤鸡要没咯
发表于 2025-02-22 10:04:37
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); in
展开全文
王禹熙
发表于 2025-04-19 17:26:10
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a + b; return 0; }
星穹列车
发表于 2025-03-10 10:10:25
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in);
展开全文
江山太轻
发表于 2025-03-27 15:44:46
inp = input() inp = inp.split( ) print(int(inp[0])+int(inp[1]))
Silencer76
发表于 2024-12-11 15:23:13
解题思路 输入两个数字,输出它们的和。 代码 c++ java python #include <iostream> using namespace std; int main(void) { ios::sync_with_stdio(false); cin.tie
展开全文
ow201811161904394
发表于 2025-03-19 19:36:52
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in);
展开全文
查易天cyt
发表于 2025-03-02 11:23:50
# 使用split()方法将其按照空白字符分割成多个字符串,接着使用map()函数将这些字符串分别转换为整数类型 a, b = map(int, input().split()) print(a + b)
牛客688741001号
发表于 2024-12-11 16:30:32
a, b = map(int, input().strip().split()) print(a + b)
问题信息
难度:
16条回答
18收藏
444浏览
热门推荐
相关试题
执行以下程序,理论上输出的结果应最...
360集团
Python
算法工程师
2019
评论
(1)
来自
360公司-2019校招...
什么是竞争与冒险现象?怎样判断?如...
数字电路
评论
(1)
电子系统中常用的模拟电路及其功能
模拟电路
评论
(1)
计算分类模型的性能指标
机器学习
评论
(0)
实现 k-Means 聚类算法
机器学习
评论
(1)
单组_A+B
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题
1 2
3