此题我们注意到的问题是三个数不能相等,不含数字3和7的情况。代码如下:#include <iostream>#include <bits/stdc++.h>using namespace std;int main(){ int n,x,y,z; cin >> n; int a = 0; for(x = 1;x <= n;x++) { for(y = 2;y <= n;y++) { z = n-x-y; if(z > x && z > y && x != 3 && y != 3 &...