Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

真是够恶心,提供一个表吧,给后做的人有个参考

Posted by czcomt at 2008-12-10 18:55:22 on Problem 1950
int num[] = {0, 0, 0, 1, 1, 1, 1, 6, 10, 11, 17, 88, 162, 197, 437, 1350};
char a3[][100] = {
"1 + 2 - 3"
};

char a4[][100] = {
"1 - 2 - 3 + 4"
};

char a5[][100] = {
"1 . 2 - 3 - 4 - 5"
};

char a6[][100] = {
"1 . 2 + 3 - 4 - 5 - 6"
};

char a7[][100] = {
	"1 + 2 - 3 + 4 - 5 - 6 + 7",
		"1 + 2 - 3 - 4 + 5 + 6 - 7",
		"1 - 2 + 3 + 4 - 5 + 6 - 7",
		"1 - 2 - 3 - 4 - 5 + 6 + 7",
		"1 - 2 . 3 + 4 + 5 + 6 + 7",
"1 - 2 . 3 - 4 . 5 + 6 . 7"
};

char a8[][100] = {
	"1 + 2 + 3 + 4 - 5 - 6 - 7 + 8",
		"1 + 2 + 3 - 4 + 5 - 6 + 7 - 8",
		"1 + 2 - 3 + 4 + 5 + 6 - 7 - 8",
		"1 + 2 - 3 - 4 - 5 - 6 + 7 + 8",
		"1 + 2 . 3 - 4 . 5 + 6 + 7 + 8",
		"1 - 2 + 3 - 4 - 5 + 6 - 7 + 8",
		"1 - 2 - 3 + 4 + 5 - 6 - 7 + 8",
		"1 - 2 - 3 + 4 - 5 + 6 + 7 - 8",
		"1 - 2 . 3 - 4 + 5 + 6 + 7 + 8",
"1 . 2 - 3 . 4 - 5 . 6 + 7 . 8"
};

char a9[][100] = {
	"1 + 2 - 3 . 4 - 5 . 6 + 7 . 8 + 9",
		"1 - 2 - 3 . 4 + 5 + 6 + 7 + 8 + 9",
		"1 - 2 . 3 - 4 - 5 . 6 - 7 + 8 . 9",
		"1 . 2 + 3 + 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11 - 12",
		"1 + 2 + 3 + 4 + 5 - 6 + 7 + 8 + 9 - 10 - 11 - 12",
		"1 + 2 + 3 + 4 - 5 + 6 - 7 - 8 - 9 - 10 + 11 + 12",
		"1 + 2 + 3 + 4 - 5 - 6 + 7 - 8 - 9 + 10 - 11 + 12",
		"1 + 2 + 3 + 4 - 5 - 6 - 7 + 8 + 9 - 10 - 11 + 12",
		"1 + 2 + 3 + 4 - 5 - 6 - 7 + 8 - 9 + 10 + 11 - 12",
		"1 + 2 + 3 + 4 . 5 + 6 - 7 - 8 - 9 - 10 - 11 - 12",
		"1 + 2 + 3 + 4 . 5 - 6 . 7 - 8 - 9 + 10 + 11 + 12",
		"1 + 2 + 3 - 4 + 5 + 6 - 7 - 8 - 9 + 10 - 11 + 12",
		"1 + 2 + 3 - 4 + 5 - 6 + 7 - 8 + 9 - 10 - 11 + 12",
		"1 + 2 + 3 - 4 + 5 - 6 + 7 - 8 - 9 + 10 + 11 - 12",
		"1 + 2 + 3 - 4 + 5 - 6 - 7 + 8 + 9 - 10 + 11 - 12",
		"1 + 2 + 3 - 4 + 5 . 6 - 7 . 8 + 9 + 10 - 11 + 12",
		"1 + 2 + 3 - 4 - 5 + 6 + 7 + 8 - 9 - 10 - 11 + 12",
		"1 + 2 + 3 - 4 - 5 + 6 + 7 - 8 + 9 - 10 + 11 - 12",
		"1 + 2 + 3 - 4 - 5 + 6 - 7 + 8 + 9 + 10 - 11 - 12",
		"1 + 2 + 3 - 4 - 5 - 6 - 7 - 8 - 9 + 10 + 11 + 12",
		"1 + 2 + 3 - 4 - 5 . 6 + 7 . 8 + 9 - 10 - 11 - 12",
		"1 + 2 + 3 - 4 . 5 + 6 + 7 + 8 + 9 + 10 + 11 - 12",
"1 + 2 + 3 - 4 . 5 + 6 . 7 - 8 - 9 - 10 + 11 - 12"
};
char a13[][100] = {
	"1 + 2 + 3 + 4 - 5 . 6 + 7 + 8 + 9 + 10 + 11 - 12 + 13",
		"1 + 2 + 3 + 4 . 5 - 6 - 7 . 8 + 9 + 10 - 11 + 12 + 13",
		"1 + 2 + 3 - 4 + 5 . 6 + 7 - 8 . 9 + 10 - 11 + 12 + 13",
		"1 + 2 + 3 - 4 - 5 . 6 + 7 - 8 + 9 + 10 + 11 + 12 + 13",
		"1 + 2 + 3 - 4 . 5 - 6 + 7 . 8 - 9 - 10 + 11 - 12 - 13",
		"1 + 2 + 3 . 4 + 5 + 6 - 7 - 8 - 9 - 10 + 11 - 12 - 13",
		"1 + 2 + 3 . 4 + 5 + 6 . 7 - 8 . 9 - 10 - 11 - 12 + 13",
		"1 + 2 + 3 . 4 + 5 - 6 + 7 - 8 - 9 + 10 - 11 - 12 - 13",
		"1 + 2 + 3 . 4 + 5 - 6 + 7 - 8 . 9 + 10 + 11 + 12 + 13",
		"1 + 2 + 3 . 4 + 5 - 6 - 7 + 8 + 9 - 10 - 11 - 12 - 13",
		"1 + 2 + 3 . 4 + 5 - 6 . 7 + 8 - 9 - 10 + 11 + 12 + 13",
		"1 + 2 + 3 . 4 + 5 - 6 . 7 - 8 + 9 + 10 - 11 + 12 + 13",
		"1 + 2 + 3 . 4 + 5 . 6 - 7 . 8 + 9 - 10 + 11 - 12 - 13",
		"1 + 2 + 3 . 4 - 5 + 6 + 7 - 8 + 9 - 10 - 11 - 12 - 13",
		"1 + 2 + 3 . 4 - 5 - 6 - 7 - 8 + 9 - 10 - 11 - 12 + 13",
		"1 + 2 + 3 . 4 - 5 - 6 - 7 - 8 - 9 + 10 - 11 + 12 - 13",
		"1 + 2 - 3 + 4 + 5 . 6 + 7 - 8 . 9 + 10 + 11 - 12 + 13",
		"1 + 2 - 3 + 4 - 5 . 6 + 7 + 8 - 9 + 10 + 11 + 12 + 13",
		"1 + 2 - 3 - 4 + 5 . 6 - 7 - 8 + 9 - 10 - 11 - 12 - 13",
		"1 + 2 - 3 - 4 - 5 . 6 - 7 + 8 . 9 - 10 - 11 + 12 - 13",
"1 + 2 - 3 . 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 - 12 - 13"
};

char a14[][100] = {
	"1 + 2 + 3 + 4 + 5 - 6 - 7 . 8 + 9 + 10 + 11 + 12 + 13 + 14",
		"1 + 2 + 3 + 4 + 5 . 6 + 7 - 8 . 9 - 10 + 11 - 12 + 13 + 14",
		"1 + 2 + 3 + 4 + 5 . 6 - 7 - 8 + 9 - 10 - 11 - 12 - 13 - 14",
		"1 + 2 + 3 + 4 - 5 . 6 + 7 + 8 - 9 - 10 + 11 + 12 + 13 + 14",
		"1 + 2 + 3 + 4 - 5 . 6 + 7 - 8 + 9 + 10 - 11 + 12 + 13 + 14",
		"1 + 2 + 3 + 4 - 5 . 6 - 7 + 8 + 9 + 10 + 11 - 12 + 13 + 14",
		"1 + 2 + 3 + 4 - 5 . 6 - 7 + 8 . 9 - 10 - 11 + 12 - 13 - 14",
		"1 + 2 + 3 + 4 . 5 + 6 - 7 . 8 + 9 + 10 - 11 + 12 - 13 + 14",
		"1 + 2 + 3 + 4 . 5 + 6 - 7 . 8 + 9 - 10 + 11 + 12 + 13 - 14",
		"1 + 2 + 3 - 4 + 5 . 6 - 7 - 8 - 9 - 10 - 11 - 12 + 13 - 14",
		"1 + 2 + 3 - 4 + 5 . 6 - 7 - 8 . 9 + 10 - 11 + 12 + 13 + 14",
		"1 + 2 + 3 - 4 - 5 - 6 + 7 . 8 - 9 - 10 - 11 - 12 - 13 - 14",
		"1 + 2 + 3 - 4 - 5 . 6 - 7 - 8 + 9 + 10 + 11 + 12 + 13 + 14",
		"1 + 2 + 3 - 4 . 5 + 6 + 7 . 8 - 9 - 10 - 11 + 12 - 13 - 14",
		"1 + 2 + 3 . 4 + 5 + 6 + 7 - 8 - 9 - 10 + 11 - 12 - 13 - 14",
		"1 + 2 + 3 . 4 + 5 + 6 + 7 - 8 . 9 + 10 + 11 + 12 - 13 + 14",
		"1 + 2 + 3 . 4 + 5 + 6 - 7 + 8 - 9 + 10 - 11 - 12 - 13 - 14",
		"1 + 2 + 3 . 4 + 5 - 6 + 7 + 8 + 9 - 10 - 11 - 12 - 13 - 14",
		"1 + 2 + 3 . 4 + 5 - 6 - 7 - 8 - 9 + 10 - 11 - 12 - 13 + 14",
		"1 + 2 + 3 . 4 + 5 - 6 - 7 - 8 - 9 - 10 + 11 - 12 + 13 - 14",
"1 + 2 + 3 . 4 + 5 - 6 - 7 - 8 . 9 + 10 + 11 + 12 + 13 + 14"
};

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator