HDUOJ 1000 A + B Problem

 1 #include <iostream>
 2
 3 using namespace std;
 4
 5 int main()
 6 {
 7     long long a, b;
 8     while(cin >> a >> b)
 9         cout << a + b << endl;
10     return 0;
11 }
时间: 2024-11-29 03:41:48

HDUOJ 1000 A + B Problem的相关文章

1000: A+B Problem(NetWork Flow)

1000: A+B Problem Time Limit: 1 Sec  Memory Limit: 5 MBSubmit: 11814  Solved: 7318[Submit][Status][Discuss] 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 Q: Where are the input a

HDU 1000 A + B Problem(指针版)

A + B Problem Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 654986    Accepted Submission(s): 204210 Problem Description Calculate A + B. Input Each line will contain two integers A and B. Pr

HDU 1000 A + B Problem

Problem Description Calculate A + B. Input Each line will contain two integers A and B. Process to end of file. Output For each case, output A + B in one line. Sample Input 1 1 Sample Output 2 题意:输入A,B输出A+B #include <stdio.h> int main() { int a,b; w

HDUOJ 1002 A + B Problem II

1 #include <iostream> 2 #include <memory.h> 3 #include <cstring> 4 using namespace std; 5 6 int main() 7 { 8 char a[1000], b[1000], s[1001]; 9 int t; 10 cin >> t; 11 int ct = 1; 12 while(t--) 13 { 14 cin >> a >> b; 15 i

HDU 1000 A+B Problem C/C++

Problem Description Calculate A + B. Input Each line will contain two integers A and B. Process to end of file. Output For each case, output A + B in one line. Sample Input 1 1 Sample Output 2 Author HDOJ C++: 1 int main() { 2 3 int a, b; 4 5 while (

水题/hdu 1000 A + B problem

题意 输入a,b,输出a+b: 分析 注意多case Accepted Code 1 /* 2 PROBLEM:hdu1000 3 AUTHER:NicoleLam 4 MEMO:水题 5 */ 6 7 #include<cstdio> 8 int main() 9 { 10 int a,b; 11 while (scanf("%d%d",&a,&b)!=EOF) printf("%d\n",a+b); 12 return 0; 13 }

bzoj 1000: A+B Problem

刚学编程就会的题,如果你有闲情逸致可以用网络流打 1 #include<cstdio> 2 #include<iostream> 3 int main() 4 { 5 int a,b; 6 scanf("%d%d",&a,&b); 7 printf("%d",a+b); 8 return 0; 9 }

URAL 1000 A+B Problem

Ural使用java7 只能用默认包 类名可以不是Main 1 import java.util.Scanner; 2   3 public class P1000 4 { 5     public static void main(String[] args) 6     { 7         try (Scanner cin = new Scanner(System.in)) 8         { 9             System.out.println(cin.nextInt(

swjtuOJ——1000 A+B Problem

最简单的题,没有之一,为了熟悉Submit的操作. Pascal代码: Var a.b :longint; begin readln(a.b); writeln(a + b); end.