模板 刷题模板

/*
    Name:
    Copyright:
    Author:  流照君
    Date: data
    Description:
*/
#include <iostream>
#include<string>
#include <algorithm>
#include <vector>
#define inf 100005
using namespace std;
typedef long long ll;
int main()
{
#ifdef ONLINE_JUDGE//条件编译,如果有oj则忽略文件读取 
#else
	freopen("in.txt", "r", stdin);//输入输出文件重定向 
	freopen("out.txt", "w", stdout);
#endif  //#if, #ifdef, #ifndef这些条件命令的结束标志. 
    ll a,b;
	cin>>a>>b;
	cout<<a+b<<endl; 
    return 0;
}

  以a+b为例

posted @ 2020-02-20 20:42  流照君  阅读(267)  评论(0编辑  收藏  举报