#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; }
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account