5 条题解

  • 1
    @ 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;
    }
    
    
    • 0
      @ 2025-7-30 15:30:54

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

      • 0
        @ 2025-2-7 20:56:12
        #include<bits/stdc++.h>
        using namespace std;
        int a,b;
        int main()
        {
        	freopen("a+b.in","r",stdin);
        	freopen("a+b.out","w",stdout);
        	cin>>a>>b;
        	cout<<a+b;
        	return 0;
        }
        
        • -1
          @ 2024-8-24 8:38:23
          
          
          #include<iostream>
          using namespace std;
          int main(){
          freopen("a+b.in","r",stdin);
          freopen("a+b.out","w",stdout);
          int a,b; cin>>a>>b; cout<<a+b;
          return 0;
          }
          • -1
            @ 2024-8-12 20:22:21

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

            • 1

            信息

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