题目链接 思路: next_permutation枚举1~9的全排列 for循环枚举间隔,因为需要3个数,所以需要两个间隔 计算x,y,z。判断x+y/z是否等于n #include<bits/stdc++.h> using namespace std; const int N = 20; typedef long long LL; int main() { int n,cnt; cin>>n; cnt = 0; int a[N]={ 0,1,2,3,4,5,6,7,8,9}; do { for(int i=1;i<=7;i++) { for(int j...