fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <vector>
  4. int NUM=17;
  5. using namespace std;
  6. const int arr[3][3]={{10,5,8},{10,7,11},{9,3,11}};
  7. int used[3][3]={{0,0,0},{0,0,0},{0,0,0}};
  8. void testdiv(int a, int b, int c){//tests all possible division options
  9. if( a+ b +c ==NUM) printf("%d:%d+%d+%d\n" ,NUM,a,b,c);
  10. if( (a+ b)/c ==NUM&&(a+ b)%c==0) printf("%d:(%d+%d)/%d\n",NUM,a,b,c);
  11. if( a/ b +c ==NUM&& a%b==0) printf("%d:%d/%d+%d\n" ,NUM,a,b,c);
  12. if((b+c)&&a/(b+c)==NUM&& a%(b+c)==0)printf("%d:%d/(%d+%d)\n",NUM,a,b,c);
  13. if( a+ b /c ==NUM&& b%c==0) printf("%d:%d+%d/%d\n" ,NUM,a,b,c);
  14. }
  15. void testmul(int a, int b, int c){//tests all possible options involving multiplication
  16. if(a*b+c ==NUM) printf("%d:%d*%d+%d\n" ,NUM,a,b,c);
  17. if((a*b)/c ==NUM&&(a*b)%c ==0) printf("%d:(%d*%d)/%d\n" ,NUM,a,b,c);
  18. if(a+b*c ==NUM&&b%c ==0) printf("%d:%d+%d*%d\n" ,NUM,a,b,c);
  19. if(a/b*c ==NUM&&a%b ==0) printf("%d:%d/%d*%d\n" ,NUM,a,b,c);
  20. if(a/(b*c) ==NUM&&a%(b*c) ==0) printf("%d:%d/(%d*%d)\n" ,NUM,a,b,c);
  21. }
  22. void testdm(int a, int b, int c){//tests all possible division/multiplication/addition options
  23. testdiv(a,b,c);
  24. testmul(a,b,c);
  25. }
  26. void testperm(int a, int b, int c){//generates all possible negative/positive combinations
  27. testdm(+a,+b,+c);
  28. testdm(+a,+b,-c);
  29. testdm(+a,-b,+c);
  30. testdm(+a,-b,-c);
  31. testdm(-a,+b,+c);
  32. testdm(-a,+b,-c);
  33. testdm(-a,-b,+c);
  34. testdm(-a,-b,-c);
  35. }
  36. void test(vector<int>& str){
  37. testperm(str[0],str[1],str[2]);
  38. testperm(str[0],str[2],str[1]);
  39. testperm(str[1],str[0],str[2]);
  40. testperm(str[1],str[2],str[0]);
  41. testperm(str[2],str[0],str[1]);
  42. testperm(str[2],str[1],str[0]);
  43. }
  44. void gensubstr(int x, int y,int depth, vector<int> str){//generates 3-substrings
  45. int i,j;
  46. used[x][y]=1;
  47. str.push_back(arr[x][y]);
  48. if(depth==3){
  49. test(str);
  50. used[x][y]=0;
  51. return;
  52. }
  53. for(i=-1;i<=1;i+=2){
  54. if(x+i>=3 || x+i<0) continue;
  55. if(used[x+i][y]) continue;
  56. gensubstr(x+i,y,depth+1,str);
  57. }
  58. for(i=-1;i<=1;i+=2){
  59. if(y+i>=3 || y+i<0) continue;
  60. if(used[x][y+i]) continue;
  61. gensubstr(x,y+i,depth+1,str);
  62. }
  63. used[x][y]=0;
  64. }
  65. int main(){
  66. vector<int> str;
  67. for(NUM=7;NUM<=18;++NUM)
  68. for(int i=0;i<3;++i)
  69. for(int j=0;j<3;++j)
  70. gensubstr(i,j,1,str);
  71. return 0;
  72. }
Success #stdin #stdout 0s 3476KB
stdin
Standard input is empty
stdout
7:10/10*7
7:10+-10+7
7:10/-10*-7
7:-10+10+7
7:-10/10*-7
7:-10/-10*7
7:(10*7)/10
7:10+7+-10
7:(10*-7)/-10
7:-10+7+10
7:(-10*7)/-10
7:(-10*-7)/10
7:10/10*7
7:10+-10+7
7:10/-10*-7
7:-10+10+7
7:-10/10*-7
7:-10/-10*7
7:(10*7)/10
7:10+7+-10
7:(10*-7)/-10
7:-10+7+10
7:(-10*7)/-10
7:(-10*-7)/10
7:(7*10)/10
7:7+10+-10
7:7+-10+10
7:(7*-10)/-10
7:(-7*10)/-10
7:(-7*-10)/10
7:(7*10)/10
7:7+10+-10
7:7+-10+10
7:(7*-10)/-10
7:(-7*10)/-10
7:(-7*-10)/10
7:10+5+-8
7:10+-8+5
7:5+10+-8
7:5+-8+10
7:-8+10+5
7:-8+5+10
7:8+11/-11
7:8+-11/11
7:8+11/-11
7:8+-11/11
7:11/-11+8
7:-11/11+8
7:11/-11+8
7:-11/11+8
7:-8+5+10
7:-8+10+5
7:5+-8+10
7:5+10+-8
7:10+-8+5
7:10+5+-8
7:10+9/-3
7:10+-9/3
7:9/-3+10
7:-9/3+10
7:7/(-10+11)
7:-7/(10+-11)
7:7/(11+-10)
7:-7/(-11+10)
7:-7+3+11
7:-7+11+3
7:3+-7+11
7:3+11+-7
7:11+-7+3
7:11+3+-7
7:(7*10)/10
7:7+10+-10
7:7+-10+10
7:(7*-10)/-10
7:(-7*10)/-10
7:(-7*-10)/10
7:(7*10)/10
7:7+10+-10
7:7+-10+10
7:(7*-10)/-10
7:(-7*10)/-10
7:(-7*-10)/10
7:(10*7)/10
7:10+7+-10
7:(10*-7)/-10
7:-10+7+10
7:(-10*7)/-10
7:(-10*-7)/10
7:10/10*7
7:10+-10+7
7:10/-10*-7
7:-10+10+7
7:-10/10*-7
7:-10/-10*7
7:(10*7)/10
7:10+7+-10
7:(10*-7)/-10
7:-10+7+10
7:(-10*7)/-10
7:(-10*-7)/10
7:10/10*7
7:10+-10+7
7:10/-10*-7
7:-10+10+7
7:-10/10*-7
7:-10/-10*7
7:7/(10+-9)
7:-7/(-10+9)
7:7/(-9+10)
7:-7/(9+-10)
7:(7*11)/11
7:7+11+-11
7:7+-11+11
7:(7*-11)/-11
7:(-7*11)/-11
7:(-7*-11)/11
7:(7*11)/11
7:7+11+-11
7:7+-11+11
7:(7*-11)/-11
7:(-7*11)/-11
7:(-7*-11)/11
7:(11*7)/11
7:11+7+-11
7:(11*-7)/-11
7:-11+7+11
7:(-11*7)/-11
7:(-11*-7)/11
7:11/11*7
7:11+-11+7
7:11/-11*-7
7:-11+11+7
7:-11/11*-7
7:-11/-11*7
7:(11*7)/11
7:11+7+-11
7:(11*-7)/-11
7:-11+7+11
7:(-11*7)/-11
7:(-11*-7)/11
7:11/11*7
7:11+-11+7
7:11/-11*-7
7:-11+11+7
7:-11/11*-7
7:-11/-11*7
7:11+-7+3
7:11+3+-7
7:-7+11+3
7:-7+3+11
7:3+11+-7
7:3+-7+11
7:7/(11+-10)
7:-7/(-11+10)
7:7/(-10+11)
7:-7/(10+-11)
7:7/(-9+10)
7:-7/(9+-10)
7:7/(10+-9)
7:-7/(-10+9)
7:3+-7+11
7:3+11+-7
7:-7+3+11
7:-7+11+3
7:11+3+-7
7:11+-7+3
7:9/-3+10
7:-9/3+10
7:10+9/-3
7:10+-9/3
7:11/-11+8
7:-11/11+8
7:11/-11+8
7:-11/11+8
7:8+11/-11
7:8+-11/11
7:8+11/-11
7:8+-11/11
7:11/11*7
7:11+-11+7
7:11/-11*-7
7:-11+11+7
7:-11/11*-7
7:-11/-11*7
7:(11*7)/11
7:11+7+-11
7:(11*-7)/-11
7:-11+7+11
7:(-11*7)/-11
7:(-11*-7)/11
7:11/11*7
7:11+-11+7
7:11/-11*-7
7:-11+11+7
7:-11/11*-7
7:-11/-11*7
7:(11*7)/11
7:11+7+-11
7:(11*-7)/-11
7:-11+7+11
7:(-11*7)/-11
7:(-11*-7)/11
7:(7*11)/11
7:7+11+-11
7:7+-11+11
7:(7*-11)/-11
7:(-7*11)/-11
7:(-7*-11)/11
7:(7*11)/11
7:7+11+-11
7:7+-11+11
7:(7*-11)/-11
7:(-7*11)/-11
7:(-7*-11)/11
7:11+3+-7
7:11+-7+3
7:3+11+-7
7:3+-7+11
7:-7+11+3
7:-7+3+11
8:10/-10+9
8:-10/10+9
8:10/-10+9
8:-10/10+9
8:9+10/-10
8:9+-10/10
8:9+10/-10
8:9+-10/10
8:10/10+7
8:-10/-10+7
8:10/10+7
8:-10/-10+7
8:7+10/10
8:7+-10/-10
8:7+10/10
8:7+-10/-10
8:10+5+-7
8:10+-7+5
8:5+10+-7
8:5+-7+10
8:-7+10+5
8:-7+5+10
8:5*3+-7
8:-5*-3+-7
8:3*5+-7
8:-3*-5+-7
8:5+-7+10
8:5+10+-7
8:-7+5+10
8:-7+10+5
8:10+5+-7
8:10+-7+5
8:10/-5+10
8:-10/5+10
8:10+10/-5
8:10+-10/5
8:10/-5+10
8:-10/5+10
8:10+10/-5
8:10+-10/5
8:5+-8+11
8:5+11+-8
8:-8+5+11
8:-8+11+5
8:11+5+-8
8:11+-8+5
8:(8*11)/11
8:8+11+-11
8:8+-11+11
8:(8*-11)/-11
8:(-8*11)/-11
8:(-8*-11)/11
8:(8*11)/11
8:8+11+-11
8:8+-11+11
8:(8*-11)/-11
8:(-8*11)/-11
8:(-8*-11)/11
8:(11*8)/11
8:11+8+-11
8:(11*-8)/-11
8:-11+8+11
8:(-11*8)/-11
8:(-11*-8)/11
8:11/11*8
8:11+-11+8
8:11/-11*-8
8:-11+11+8
8:-11/11*-8
8:-11/-11*8
8:(11*8)/11
8:11+8+-11
8:(11*-8)/-11
8:-11+8+11
8:(-11*8)/-11
8:(-11*-8)/11
8:11/11*8
8:11+-11+8
8:11/-11*-8
8:-11+11+8
8:-11/11*-8
8:-11/-11*8
8:10+10/-5
8:10+-10/5
8:10/-5+10
8:-10/5+10
8:10+10/-5
8:10+-10/5
8:10/-5+10
8:-10/5+10
8:10+-7+5
8:10+5+-7
8:-7+10+5
8:-7+5+10
8:5+10+-7
8:5+-7+10
8:-10+7+11
8:-10+11+7
8:7+-10+11
8:7+11+-10
8:11+-10+7
8:11+7+-10
8:-7+5+10
8:-7+10+5
8:5+-7+10
8:5+10+-7
8:10+-7+5
8:10+5+-7
8:7+10/10
8:7+-10/-10
8:7+10/10
8:7+-10/-10
8:10/10+7
8:-10/-10+7
8:10/10+7
8:-10/-10+7
8:7+10+-9
8:7+-9+10
8:10+7+-9
8:10+-9+7
8:-9+7+10
8:-9+10+7
8:7+11/11
8:7+-11/-11
8:7+11/11
8:7+-11/-11
8:11/11+7
8:-11/-11+7
8:11/11+7
8:-11/-11+7
8:11+-8+5
8:11+5+-8
8:-8+11+5
8:-8+5+11
8:5+11+-8
8:5+-8+11
8:11+7+-10
8:11+-10+7
8:7+11+-10
8:7+-10+11
8:-10+11+7
8:-10+7+11
8:9+10/-10
8:9+-10/10
8:9+10/-10
8:9+-10/10
8:10/-10+9
8:-10/10+9
8:10/-10+9
8:-10/10+9
8:-9+10+7
8:-9+7+10
8:10+-9+7
8:10+7+-9
8:7+-9+10
8:7+10+-9
8:9/-3+11
8:-9/3+11
8:11+9/-3
8:11+-9/3
8:3*5+-7
8:-3*-5+-7
8:5*3+-7
8:-5*-3+-7
8:11/11*8
8:11+-11+8
8:11/-11*-8
8:-11+11+8
8:-11/11*-8
8:-11/-11*8
8:(11*8)/11
8:11+8+-11
8:(11*-8)/-11
8:-11+8+11
8:(-11*8)/-11
8:(-11*-8)/11
8:11/11*8
8:11+-11+8
8:11/-11*-8
8:-11+11+8
8:-11/11*-8
8:-11/-11*8
8:(11*8)/11
8:11+8+-11
8:(11*-8)/-11
8:-11+8+11
8:(-11*8)/-11
8:(-11*-8)/11
8:(8*11)/11
8:8+11+-11
8:8+-11+11
8:(8*-11)/-11
8:(-8*11)/-11
8:(-8*-11)/11
8:(8*11)/11
8:8+11+-11
8:8+-11+11
8:(8*-11)/-11
8:(-8*11)/-11
8:(-8*-11)/11
8:11/11+7
8:-11/-11+7
8:11/11+7
8:-11/-11+7
8:7+11/11
8:7+-11/-11
8:7+11/11
8:7+-11/-11
8:11+9/-3
8:11+-9/3
8:9/-3+11
8:-9/3+11
9:10/10*9
9:10+-10+9
9:10/-10*-9
9:-10+10+9
9:-10/10*-9
9:-10/-10*9
9:(10*9)/10
9:10+9+-10
9:(10*-9)/-10
9:-10+9+10
9:(-10*9)/-10
9:(-10*-9)/10
9:10/10*9
9:10+-10+9
9:10/-10*-9
9:-10+10+9
9:-10/10*-9
9:-10/-10*9
9:(10*9)/10
9:10+9+-10
9:(10*-9)/-10
9:-10+9+10
9:(-10*9)/-10
9:(-10*-9)/10
9:(9*10)/10
9:9+10+-10
9:9+-10+10
9:(9*-10)/-10
9:(-9*10)/-10
9:(-9*-10)/10
9:(9*10)/10
9:9+10+-10
9:9+-10+10
9:(9*-10)/-10
9:(-9*10)/-10
9:(-9*-10)/10
9:10/5+7
9:-10/-5+7
9:7+10/5
9:7+-10/-5
9:5+7+-3
9:5+-3+7
9:7+5+-3
9:7+-3+5
9:-3+5+7
9:-3+7+5
9:7+10/5
9:7+-10/-5
9:10/5+7
9:-10/-5+7
9:5+-7+11
9:5+11+-7
9:-7+5+11
9:-7+11+5
9:11+5+-7
9:11+-7+5
9:8+11/11
9:8+-11/-11
9:8+11/11
9:8+-11/-11
9:11/11+8
9:-11/-11+8
9:11/11+8
9:-11/-11+8
9:10/5+7
9:-10/-5+7
9:7+10/5
9:7+-10/-5
9:7+10/5
9:7+-10/-5
9:10/5+7
9:-10/-5+7
9:11+-7+5
9:11+5+-7
9:-7+11+5
9:-7+5+11
9:5+11+-7
9:5+-7+11
9:(9*10)/10
9:9+10+-10
9:9+-10+10
9:(9*-10)/-10
9:(-9*10)/-10
9:(-9*-10)/10
9:(9*10)/10
9:9+10+-10
9:9+-10+10
9:(9*-10)/-10
9:(-9*10)/-10
9:(-9*-10)/10
9:(10*9)/10
9:10+9+-10
9:(10*-9)/-10
9:-10+9+10
9:(-10*9)/-10
9:(-10*-9)/10
9:10/10*9
9:10+-10+9
9:10/-10*-9
9:-10+10+9
9:-10/10*-9
9:-10/-10*9
9:(10*9)/10
9:10+9+-10
9:(10*-9)/-10
9:-10+9+10
9:(-10*9)/-10
9:(-10*-9)/10
9:10/10*9
9:10+-10+9
9:10/-10*-9
9:-10+10+9
9:-10/10*-9
9:-10/-10*9
9:-3+7+5
9:-3+5+7
9:7+-3+5
9:7+5+-3
9:5+-3+7
9:5+7+-3
9:11/11+8
9:-11/-11+8
9:11/11+8
9:-11/-11+8
9:8+11/11
9:8+-11/-11
9:8+11/11
9:8+-11/-11
10:10/10+9
10:10/(10+-9)
10:-10/-10+9
10:-10/(-10+9)
10:10/(-9+10)
10:-10/(9+-10)
10:10/10+9
10:10/(10+-9)
10:-10/-10+9
10:-10/(-10+9)
10:10/(-9+10)
10:-10/(9+-10)
10:9+10/10
10:9+-10/-10
10:9+10/10
10:9+-10/-10
10:10/5+8
10:-10/-5+8
10:8+10/5
10:8+-10/-5
10:-8+11+7
10:-8+7+11
10:11+-8+7
10:11+7+-8
10:7+-8+11
10:7+11+-8
10:8+-5+7
10:8+7+-5
10:-5+8+7
10:-5+7+8
10:7+8+-5
10:7+-5+8
10:8+10/5
10:8+-10/-5
10:10/5+8
10:-10/-5+8
10:7+-5+8
10:7+8+-5
10:-5+7+8
10:-5+8+7
10:8+7+-5
10:8+-5+7
10:7+9/3
10:7+-9/-3
10:9/3+7
10:-9/-3+7
10:7*3+-11
10:-7*-3+-11
10:3*7+-11
10:-3*-7+-11
10:7+11+-8
10:7+-8+11
10:11+7+-8
10:11+-8+7
10:-8+7+11
10:-8+11+7
10:7*3+-11
10:-7*-3+-11
10:3*7+-11
10:-3*-7+-11
10:9+10/10
10:9+-10/-10
10:9+10/10
10:9+-10/-10
10:10/(-9+10)
10:-10/(9+-10)
10:10/10+9
10:10/(10+-9)
10:-10/-10+9
10:-10/(-10+9)
10:10/(-9+10)
10:-10/(9+-10)
10:10/10+9
10:10/(10+-9)
10:-10/-10+9
10:-10/(-10+9)
10:9/3+7
10:-9/-3+7
10:7+9/3
10:7+-9/-3
10:3*7+-11
10:-3*-7+-11
10:7*3+-11
10:-7*-3+-11
10:3*7+-11
10:-3*-7+-11
10:7*3+-11
10:-7*-3+-11
11:10+10+-9
11:10+-9+10
11:10+10+-9
11:10+-9+10
11:-9+10+10
11:-9+10+10
11:11/(8+-7)
11:-11/(-8+7)
11:11/(-7+8)
11:-11/(7+-8)
11:7*3+-10
11:-7*-3+-10
11:3*7+-10
11:-3*-7+-10
11:11/(-7+8)
11:-11/(7+-8)
11:11/(8+-7)
11:-11/(-8+7)
11:-9+10+10
11:-9+10+10
11:10+-9+10
11:10+10+-9
11:10+-9+10
11:10+10+-9
11:3*7+-10
11:-3*-7+-10
11:7*3+-10
11:-7*-3+-10
12:10+-5+7
12:10+7+-5
12:-5+10+7
12:-5+7+10
12:7+10+-5
12:7+-5+10
12:-5+7+10
12:-5+10+7
12:7+-5+10
12:7+10+-5
12:10+-5+7
12:10+7+-5
12:10/5+10
12:-10/-5+10
12:10+10/5
12:10+-10/-5
12:10/5+10
12:-10/-5+10
12:10+10/5
12:10+-10/-5
12:8+11+-7
12:8+-7+11
12:11+8+-7
12:11+-7+8
12:-7+8+11
12:-7+11+8
12:10+10/5
12:10+-10/-5
12:10/5+10
12:-10/-5+10
12:10+10/5
12:10+-10/-5
12:10/5+10
12:-10/-5+10
12:10+7+-5
12:10+-5+7
12:7+10+-5
12:7+-5+10
12:-5+10+7
12:-5+7+10
12:7+-5+10
12:7+10+-5
12:-5+7+10
12:-5+10+7
12:10+7+-5
12:10+-5+7
12:7*3+-9
12:-7*-3+-9
12:3*7+-9
12:-3*-7+-9
12:-7+10+9
12:-7+9+10
12:10+-7+9
12:10+9+-7
12:9+-7+10
12:9+10+-7
12:-7+11+8
12:-7+8+11
12:11+-7+8
12:11+8+-7
12:8+-7+11
12:8+11+-7
12:9+10+-7
12:9+-7+10
12:10+9+-7
12:10+-7+9
12:-7+9+10
12:-7+10+9
12:3*7+-9
12:-3*-7+-9
12:7*3+-9
12:-7*-3+-9
13:10+10+-7
13:10+-7+10
13:10+10+-7
13:10+-7+10
13:-7+10+10
13:-7+10+10
13:10+-5+8
13:10+8+-5
13:-5+10+8
13:-5+8+10
13:8+10+-5
13:8+-5+10
13:-5+7+11
13:-5+11+7
13:7+-5+11
13:7+11+-5
13:11+-5+7
13:11+7+-5
13:8+-5+10
13:8+10+-5
13:-5+8+10
13:-5+10+8
13:10+8+-5
13:10+-5+8
13:10+9/3
13:10+-9/-3
13:9/3+10
13:-9/-3+10
13:7+-3+9
13:7+9+-3
13:-3+7+9
13:-3+9+7
13:9+7+-3
13:9+-3+7
13:-7+10+10
13:-7+10+10
13:10+-7+10
13:10+10+-7
13:10+-7+10
13:10+10+-7
13:11+7+-5
13:11+-5+7
13:7+11+-5
13:7+-5+11
13:-5+11+7
13:-5+7+11
13:9+-3+7
13:9+7+-3
13:-3+9+7
13:-3+7+9
13:7+9+-3
13:7+-3+9
13:9/3+10
13:-9/-3+10
13:10+9/3
13:10+-9/-3
14:10/5*7
14:10/-5*-7
14:-10/5*-7
14:-10/-5*7
14:(10*7)/5
14:(10*-7)/-5
14:(-10*7)/-5
14:(-10*-7)/5
14:(7*10)/5
14:(7*-10)/-5
14:(-7*10)/-5
14:(-7*-10)/5
14:(7*10)/5
14:(7*-10)/-5
14:(-7*10)/-5
14:(-7*-10)/5
14:10/5*7
14:10/-5*-7
14:-10/5*-7
14:-10/-5*7
14:(10*7)/5
14:(10*-7)/-5
14:(-10*7)/-5
14:(-10*-7)/5
14:-5+8+11
14:-5+11+8
14:8+-5+11
14:8+11+-5
14:11+-5+8
14:11+8+-5
14:-8+11+11
14:-8+11+11
14:11+-8+11
14:11+11+-8
14:11+-8+11
14:11+11+-8
14:(10*7)/5
14:(10*-7)/-5
14:(-10*7)/-5
14:(-10*-7)/5
14:10/5*7
14:10/-5*-7
14:-10/5*-7
14:-10/-5*7
14:(7*10)/5
14:(7*-10)/-5
14:(-7*10)/-5
14:(-7*-10)/5
14:10+7+-3
14:10+-3+7
14:7+10+-3
14:7+-3+10
14:-3+10+7
14:-3+7+10
14:10+-7+11
14:10+11+-7
14:-7+10+11
14:-7+11+10
14:11+10+-7
14:11+-7+10
14:(7*10)/5
14:(7*-10)/-5
14:(-7*10)/-5
14:(-7*-10)/5
14:(10*7)/5
14:(10*-7)/-5
14:(-10*7)/-5
14:(-10*-7)/5
14:10/5*7
14:10/-5*-7
14:-10/5*-7
14:-10/-5*7
14:11+8+-5
14:11+-5+8
14:8+11+-5
14:8+-5+11
14:-5+11+8
14:-5+8+11
14:11+-7+10
14:11+10+-7
14:-7+11+10
14:-7+10+11
14:10+11+-7
14:10+-7+11
14:9/3+11
14:-9/-3+11
14:11+9/3
14:11+-9/-3
14:-3+7+10
14:-3+10+7
14:7+-3+10
14:7+10+-3
14:10+-3+7
14:10+7+-3
14:11+11+-8
14:11+-8+11
14:11+11+-8
14:11+-8+11
14:-8+11+11
14:-8+11+11
14:11+9/3
14:11+-9/-3
14:9/3+11
14:-9/-3+11
15:5+7+3
15:5+3+7
15:7+5+3
15:7+3+5
15:3+5+7
15:3+7+5
15:-5+10+10
15:-5+10+10
15:10+-5+10
15:10+10+-5
15:10+-5+10
15:10+10+-5
15:10+10+-5
15:10+-5+10
15:10+10+-5
15:10+-5+10
15:-5+10+10
15:-5+10+10
15:7+-3+11
15:7+11+-3
15:-3+7+11
15:-3+11+7
15:11+7+-3
15:11+-3+7
15:-7+11+11
15:-7+11+11
15:11+-7+11
15:11+11+-7
15:11+-7+11
15:11+11+-7
15:11+7+-3
15:11+-3+7
15:7+11+-3
15:7+-3+11
15:-3+11+7
15:-3+7+11
15:3+7+5
15:3+5+7
15:7+3+5
15:7+5+3
15:5+3+7
15:5+7+3
15:-3+7+11
15:-3+11+7
15:7+-3+11
15:7+11+-3
15:11+-3+7
15:11+7+-3
15:11+11+-7
15:11+-7+11
15:11+11+-7
15:11+-7+11
15:-7+11+11
15:-7+11+11
15:11+-3+7
15:11+7+-3
15:-3+11+7
15:-3+7+11
15:7+11+-3
15:7+-3+11
16:10/5*8
16:10/-5*-8
16:-10/5*-8
16:-10/-5*8
16:(10*8)/5
16:(10*-8)/-5
16:(-10*8)/-5
16:(-10*-8)/5
16:(8*10)/5
16:(8*-10)/-5
16:(-8*10)/-5
16:(-8*-10)/5
16:7*3+-5
16:-7*-3+-5
16:3*7+-5
16:-3*-7+-5
16:(8*10)/5
16:(8*-10)/-5
16:(-8*10)/-5
16:(-8*-10)/5
16:(10*8)/5
16:(10*-8)/-5
16:(-10*8)/-5
16:(-10*-8)/5
16:10/5*8
16:10/-5*-8
16:-10/5*-8
16:-10/-5*8
16:10+9+-3
16:10+-3+9
16:9+10+-3
16:9+-3+10
16:-3+10+9
16:-3+9+10
16:9*3+-11
16:-9*-3+-11
16:3*9+-11
16:-3*-9+-11
16:-11+9*3
16:-11+-9*-3
16:3*7+-5
16:-3*-7+-5
16:7*3+-5
16:-7*-3+-5
16:-3+9+10
16:-3+10+9
16:9+-3+10
16:9+10+-3
16:10+-3+9
16:10+9+-3
16:-11+9*3
16:-11+-9*-3
16:3*9+-11
16:-3*-9+-11
16:9*3+-11
16:-9*-3+-11
17:-10+9*3
17:-10+-9*-3
17:9*3+-10
17:-9*-3+-10
17:3*9+-10
17:-3*-9+-10
17:9+-3+11
17:9+11+-3
17:-3+9+11
17:-3+11+9
17:11+9+-3
17:11+-3+9
17:3*9+-10
17:-3*-9+-10
17:9*3+-10
17:-9*-3+-10
17:-10+9*3
17:-10+-9*-3
17:11+-3+9
17:11+9+-3
17:-3+11+9
17:-3+9+11
17:9+11+-3
17:9+-3+11