#define_CRT_SECURE_NO_WARNINGS#include<stdio.h>intmain(){for(int A =1; A <=5; A++){for(int B =1; B <=5; B++){for(int C =1; C <=5; C++){for(int D =1; D <=5; D++){for(int E =1; E <=5; E++){//排除并名次if(A*B*C*D*E ==120&& A + B + C + D + E ==15){//判断真假if((B ==2)+(A ==3)==1&&(B ==2)+(E ==4)==1&&(C ==1)+(D ==2)==1&&(C ==5)+(D ==3)==1&&(E ==4)+(A ==1)==1){printf("A=%d B=%d C=%d D=%d E=%d", A, B, C, D, E);printf("\n");}}}}}}}return0;}
🌷🍁 博主猫头虎 带您 Go to New World.✨🍁 🦄 博客首页——猫头虎的博客🎐 🐳《面试题大全专栏》 文章图文并茂🦕生动形象🦖简单易学!欢迎大家来踩踩~🌺 &a…