BZOJ1000

Description

Calculate a+b

Input

Two integer a,b (0<=a,b<=10)

Output

Output a+b

Sample Input

1 2

Sample Output

3

------------------------------------------------------->_<-------------------------------------------------------------------

A+B

 1 #include<iostream>
 2 #include<stdlib.h>
 3 #include<stdio.h>
 4 #include<math.h>
 5 #include<algorithm>
 6 using namespace std;
 7 int a,b;
 8 void init()
 9 {
10     scanf("%d%d",&a,&b);
11     cout<<a+b<<endl;
12 }
13 int main()
14 {
15     init();
16     return 0;
17 }
时间: 2024-08-07 01:41:56

BZOJ1000的相关文章

[BZOJ1000] A+B Problem

Description Calculate a+b Input Two integer a,b (0<=a,b<=10) Output Output a+b Sample Input 1 2 Sample Output 3 HINT C++ 1 #include <iostream> 2 using namespace std; 3 int main() 4 { 5 int a, b; 6 cin >> a >> b; 7 cout << a +

bzoj1000题解

恩..貌似还没有人写过这题的题解..那我就来蛤基一波吧. 作为bzoj上唯一对新人友好的题,1000的解法也是多种多样的,主要有以下解法: 1.模拟法 2.汇编法 3.网络流法 4.二进制法 ... 好,我们来分析一下各种解法的优劣性: 1.模拟法 时间复杂度:O(1) 空间复杂度:与语言有关 这个没什么好说的,只要掌握基本的读入输出与+运算符就可以了. Pascal: 1 var a,b:longint; 2 begin 3 read(a,b); writeln(a+b); 4 end. C+

【bzoj1000】A+B Problem

Description 输入两个数字,输出它们之和 Input 一行两个数字A,B(0<=A,B<100) Output 输出这两个数字之和 Sample Input 1 2 Sample Output 3 sol 这题没什么好说的,直接输出a+b即可,也没什么需要注意的. 本菜鸡的第一篇博客QAQ 代码 #include <bits/stdc++.h> using namespace std; int main() { int a,b; scanf("%d%d"

BZOJ第一页刷题计划

BZOJ第一页刷题计划 已完成:1 / 100 BZOJ1000:A+B

1430: 小猴打架

1430: 小猴打架 Time Limit: 5 Sec  Memory Limit: 162 MBSubmit: 335  Solved: 241[Submit][Status] Description 一开始森林里面有N只互不相识的小猴子,它们经常打架,但打架的双方都必须不是好朋友.每次打完架后,打架的双方以及它们的好朋友就会互相认识,成为好朋友.经过N-1次打架之后,整个森林的小猴都会成为好朋友. 现在的问题是,总共有多少种不同的打架过程. 比如当N=3时,就有{1-2,1-3}{1-2,

板刷bzoj计划(真香预警)

拒绝立 \(flag\) 总之寒假要以板刷 \(bzoj\) 第一页为目标,啥时候刷完不做硬性规定... bzoj1000 A+B Problem 太简单了,侮辱智商-- bzoj1001 bzoj1002 bzoj1003 bzoj1004 bzoj1005 bzoj1006 bzoj1007 bzoj1008 bzoj1009 bzoj1010 原文地址:https://www.cnblogs.com/lindalee/p/10299941.html