[LUOGU1001] A+B Problem
来源:互联网 发布:windows照片查看器重装 编辑:程序博客网 时间:2024/06/06 03:02
题目描述
输入两个整数a,b,输出它们的和(|a|,|b|<=10^9)。
输入输出格式
输入格式:
两个整数以空格分开
输出格式:
一个数
输入输出样例
输入样例#1:
20 30
输出样例#1:
50
C
#include <stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d", a+b); return 0;}
C++
#include <iostream>#include <cstdio>using namespace std;int main() { int a,b; cin >> a >> b; cout << a+b; return 0;}
Pascal
var a, b: longint;begin readln(a,b); writeln(a+b);end.
Java
import java.io.*;import java.util.*;public class Main { public static void main(String args[]) throws Exception { Scanner cin=new Scanner(System.in); int a = cin.nextInt(), b = cin.nextInt(); System.out.println(a+b); }}
阅读全文
0 0
- luogu1001 A+B Problem
- [LUOGU1001] A+B Problem
- problem 1000: A+B problem
- Problem 1000 A+B Problem
- Problem - 1000 A + B Problem
- A + B Problem
- A + B Problem
- 1000 A+B Problem
- 1001 A + B Problem
- A+B Problem
- 1000 A+B Problem
- A + B Problem
- A + B Problem
- 1000 A + B Problem
- 1000 A+B Problem
- A + B Problem
- A + B Problem II
- A + B Problem II
- 设计模式--单例模式
- javascript实现tab切换效果
- 认识Android中drawable与bitmap
- urllib2.HTTPError: HTTP Error 504: Fiddler
- 博客搬家
- [LUOGU1001] A+B Problem
- SQL新函数, 排名函数
- 网络原理学习笔记--基本概念1
- [洪流学堂]Hololens开发高级篇4:立体音效(Spatial sound)
- Map<String, String> 遍历的四种方法
- 数据库之自身连接与外连接
- java初级ppt笔记
- Redis 主从服务配置
- 偶有所录