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

把交表的代码控制在了6K,和某些暴搜已经看不出来了^_^

Posted by NeverLiving at 2011-08-03 21:28:45 on Problem 1945
char table[]=
"kPLwS0IfAwAXcyHwlwZslwalqR1WcTwSybSynlTybSanalqR1IflwRHfATyXcybSaaybSynlTyP1S0AaybA0I1ATwdSaTwlwSybS"
"awalwSwdl0AXIfWcybaWcaGfaO1O1aWcaTMLwZI1S0ILwZsltSMLwmzTgTgnWc0OfR1IfWIflwSyTwdSaTwlwSybSawalaawaaSa"
"aybSawSyTgwO1IflGfWcanSqdalaanAnAGfOrRrR1aWcaTwR1ATyXATyXAnAnaSaqRbTyXAwAXI1S0AwSMLwS0AwAXI1S0IfmemX"
"AwAXeyeSyXATyXATynAGfOrlwRflGflwalaawalGfWcybSyXI1AnWc0ATyXIfWcybSaaybaWcaqxO1GwdaalaaqRbGfaAnaaWcaG"
"fA0AnlnSqZIfR1WcTwSyPHfAwAnAnSqdalqJgqldnSqRjRb0aWcanAqR1AXAnzXAnznAGfOrltRfltRflwSwR1AaybGwR1AXIflw"
"SyXcybSyXcybSyXATyXAnAnaSaqRrRflwRrlwatGfRzPflWeWI1S0IfRzP1SynlTyP1S0IfRzPflWeWI1S0IfWeawRraWiWeRzPf"
"tGraaR1cawalGflwalGflwalwRfRrdSanAXATyHMflwal0aWcybSaaybGgaaGfaalaaDbAawaaSaaybSawAyXIfR1AGfO1AXIflG"
"fWcybaAwA0aSaqJUaaaaawaaGgaybA0AanAi3pAnzYGgTwSwR1A0AaaybaGgTwR1ATMMmTgTgawaO1O1KPP1O1A0ObaGfaaO1O1W"
"cTMSgYIfRzPfR1WcnI1S0WcnlwSwdl0AXILgwOzPLP1WcTwSMLwSynKfJgwOrSgqJgybA00aXO1A0KfmATmTgwO1KfJGLP1ATwlw"
"JgnaSaqJgTyTwSwR1IflwSawSyTGfWIfRLLfR1K1ObwGgTmTwSSSwSybSG1IflGfWcyXIflwSwR1AaybGwR1AXIflwSawalGfWcy"
"bSawaaSaaybSawaaSaaybSawSybSawSyTwSyTgTgawaO1O1IfR1IflGfWIfR1IfWcaGraatGfRzPflWeaWqaawalwZslwalGfRzP"
"flwZsRzXAwAXsRzPflwZslwal0SynlTybSaagcaycyXAwAXcycaWiaaqRlwSwl0GgayTwaGocmXAwAXeyeaWATaaaayXIfaaAGfa"
"alaawalGfaal0AawalGLwJwdl0SyXcyXATynAGfOrlwRfl0SyXsdl0itZcybSanalaaaaGfaalaawAa0aAaybaaA0GwdaA0aaWca"
"anaalqJwRbqd5c0OPbAnalqdaaaSaqdaaW#rJgybA0WslwRH9dSawAyXIfR1AGfO1AXIfl0Sawal0ObwGgGfaa7hnaA0AKPzPjJw"
"dAaGfOrRbeR1Kl0ATwRbTwR1A0GgnaaWcaaanO1AnzTwJwRrdSanAXOjltR1ATMmitJwwU30AYIrttlyTwRLP1IflGflwSyXATyX"
"ATwR1AnaaSaaqR1ATwRfR1IflwSyXIfRfRLL1IfR10KP1O1aWcaTgTMmnTwSyTSSwSwSyTwSyXATyTwmO1O1AaaybaGgnATg0IfR"
"1KfR1WcTwSmeSyniyILjWI1S0IfyKLP1WcTwSgbSynlTyTgwO1I1S0WcnlwSwdl0AXILgwOzPfR1WcTwSMLwSGrSyTgwOrSmcSyn"
"lTyHLjWK1GGfyOfR1WcTwSwtGfRbTgXAOPrdSanAAOfJynO1cyTwSyXATyTSSaG1AXKfmILP1WcTMSyeSSWATaGLL1IflwSyXcyX"
"ATyTwSgnAaybGgnAXATyTwSawSybSyXIflGfWcybSaaybSawSaGfaalGfWIfSGfWIfRLLfR1K1ObwGgTmTwSSSwSybSGfSybSawO"
"bGfaSybSawaaSaaybaWcybSawalGflwSyXATwRbGfaATwRflwSyXcybSawalGfaalaawaaSaaybaWcaGfaalaaaaGfaaaaWcaGfa"
"alaaaaGfaAaaawaaSaaybSawaaSaaybSawSybSawSyTwSyTgTgawaO1O1IfR1IflGfWIflGfWcaGfObybSawSyPHfaalaqRbaG1A"
"PrdaaWiaGjWI1S0IfycanJaqdaOzTgbaaaataawalwZslwalnaycnAGfWI1S0IfWcnlwZslwSMLwZI1S0ILwZslwSMLwSawalwZs"
"lwalaata00SqZI1S0ILgwAaGjGg0GwRzTgP1AnaaADeaGjGfRzPflGjaOzeaObTgG1AP1ATgqdaOrMS9dSawSyP1qdqdaaAanlwS"
"aqdaAyTwaaJatSMLwmbg$aOzT2VgqdGgnlwS0Ob0aGganaaWcybS0aObaanO1A06c0O1aGgybaaaaSaaybaADHwdaATgnSqRLPbT"
"gawAaGfObnlnnXAiltRHfAOPzbSawAnAnSqZIflnSyTwSgnWc0OfR1IfAwSyPHfAiRzbSawAAAGfAeRHyitZsRbGfObnlnaAqR1O"
"HfAnObTwdAnAnaaAaybaaaaSanAnOrRrRliR1ObTMmO1GmnaaWcanaObTgKP1K1O1KfR1O1O1AnATwR1ObaaaybaGgnO1ATgTwRr"
"JgnWc0OfJMMmTg0ATgnnqtl3pOrldiRfdGMMwJwR1alqR10qR1O1GgnaGgawaaa00aO1O1AaTwRrxnTwSwtwRbybATwmAXATMLwS"
"WAIfR1WQPrdSaTwdlTyTg2pWcyPHflwSwRbwGwRflwSawalG9JwlgwATwdSa0AybigiRrdSanAzO1AawGgnA0ATwJUAATynO1O10"
"qlJMwlyKPzbzKL1qJSg0IrdO1AnWc0ATwJMSynGwlWKjwll3pATyXKjlwmO1YeR1IflwRfR1ATmTwSwR1GgnaaWcaa0ObTwR1AnI"
"1ATwSyXI1YYYelwRftwSgXA0alqJwmAXYcR1I1YYYYAXIflwSyTSSwR1cwtwJyzzz5ElRjlgTmTG1AXAYAXcawSyXIfSwSybSawa"
"aSawalGfWcyXIfWcyXIflwSyXI1ATwR1AaaybaGwR1ATwlwSyXIflwSawSybSawalGfWcybSawSawSGfSybSawSyTyT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6)pt++,cp=0,cu=c2[(int)pt[0]];
	return r;
}

for (int i=0;i<D;i++){
	if (b()==0)a+=0;
	else if (b()==0)a+=1;
	else if (b()==0)a-=1;
	else if (b()==0)a-=2;
	else a+=2;
}
printf("%d\n",a);

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