1 solutions

  • 0
    @ 2023-1-16 14:23:18
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;
    	cin >> n;
    	//遍历a值范围从小到大
    	for(int i = 0; i <= n/2; i++){
    		//输出式子
    		cout << n << "=" << i << "+" << n-i << endl; 
    	} 
    	return 0;
    }
    
    
    • 1

    Information

    ID
    852
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    10
    Tags
    # Submissions
    6
    Accepted
    5
    Uploaded By