代码如下 当然这个逻辑是OK的 #include <iostream> #include <cstdio> using namespace std; int main(){ int N,X,Y,Z; int a=1,b=0; int each = 0; int a_, b_; while(~scanf("%d",&N)){ scanf("%d",&X);scanf("%d",&Y);scanf("%d",&Z); for(a=1;a<10;a++...