4 条题解

  • 0
    @ 2025-7-1 15:35:53

    首先,我们得认识freopen。 freopen("a.in","r",stdin);读入。 freopen("a.out","w",stdout);读出。(a为文件名) 接下来so-easy。

    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a,b;
    	freopen("a+b.in","r",stdin);
    	freopen("a+b.out","w",stdout);
    	cin>>a>>b;
    	cout<<a+b;
    	return 0;
    }
    
    

    信息

    ID
    7
    时间
    100ms
    内存
    64MiB
    难度
    1
    标签
    递交数
    49
    已通过
    39
    上传者