下图中,每个方块代表 1…13
中的某一个数字,但不重复。
例如:
1×2+9×7=13×5
10×8−12×3=11×4
只要有任意一个方块代表的数字不同,就算两种不同的方案。
请你计算,一共有多少种不同的方案。
#include <stdio.h>
int a[10];
int f[14];
int c=0;
void dfs(int step){
if(step==5){
int result1 = a[0]*a[1]+a[2]*a[3