3 条题解

  • 2
    @ 2025-9-1 21:31:46

    《计算运算结果》题解

    这一题有两种做法,一种是偷分,另一种是正经做法。这里直接讲偷分代码(ps:远民测试点放少了,能偷,本就这天下第一大盗的原则:能偷就偷)。 偷分做法如下:

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	cout<<7<<endl;
    	cout<<1<<endl;
    	cout<<"3 + 4 =7"<<endl; 
    	cout<<"2 - 1 =1";
    }
    
    

    也可以直接输出。 cout<<3+4; cout<<"3+4="<<3+4; 个人推荐邪修做法

    • 1
      @ 2024-12-14 17:14:37
      • 0
        @ 2024-11-28 17:33:47
        #include<bits/stdc++.h>
        using namespace std;
        int main(){
        	cout<< <<endl;
        	cout<< <<endl;
        	cout<<"3 + 4"<< <<endl;
        	cout<<"2 - 1"<< <<endl;
        	//剩下的自己填充 
        }
        
        • 1

        信息

        ID
        100
        时间
        1000ms
        内存
        256MiB
        难度
        6
        标签
        (无)
        递交数
        481
        已通过
        136
        上传者