思路
类似于 A+B Problem。
只是要加上文件读写,也就是如下两行代码:
freopen("aplusb.in","r",stdin);
freopen("aplusb.out","w",stdout);
文件读写建议自己百度搜索学习一下。
代码(答案)
#include<bits/stdc++.h>
using namespace std;
long long a,b;
int main()
{
freopen("aplusb.in","r",stdin);
freopen("aplusb.out","w",stdout);
cin>>a>>b;
cout<<a+b;
}
暂无评论