• SGU[100] A+B


    Description

    描述

    Read integers A and B from input file and write their sum in output file.

    从输入文件中读入整数A和B并且将他们的和输出在输出文件上。

     

    Input

    输入

    Input file contains A and B (0<A,B<10001).

    输入文件包含A和B(0<A,B<10001)。


    Output

    输出

    Write answer in output file.

    将答案输出在输出文件上。


    Sample Input

    样例输入

    5 3


    Sample Output

    样例输出

    8

     

    Analysis

    分析

    水题。

     

    Solution

    解决方案

    #include <iostream>
    
    using namespace std;
    
    int main()
    {
    	int a, b;
    	cin >> a >> b;
    	cout << a + b << endl;
    	return 0;
    }

    到了大学,开始接触ACM。高中里参加了3年NOIP,拿了两年的二等奖,现在终于接触到了ACM,找到了SGU这个OJ开始刷题。

    一方面,这上面的题目都有些难度,另一方面,由于是英文的,可以在一定程度上提高我的英语水平。

    我是按照SGU上题目额AC数来刷的,并不是完全按照编号往下刷的。

  • 相关阅读:
    kvm添加磁盘
    python学习1
    ubuntu使sudo不需要密码
    磁盘挂载
    github/gitlab添加多个ssh key
    生成SSH key
    git 删除追踪状态
    angular2+ 初理解
    本地项目上传到GitHub
    new Date()之参数传递
  • 原文地址:https://www.cnblogs.com/Ivy-End/p/4260776.html
Copyright © 2020-2023  润新知