21 printf(
"\nTMath::Permute simple test\n");
22 printf(
"==========================\n");
27 for(i=0; i<4; i++)
a[i]=i;
40 printf(
"\nTMath::Permute simple test with repetition\n");
41 printf(
"==========================================\n");
46 for(i=0; i<6; i++)
a[i]=(i+2)/2;
67 printf(
"\nTMath::Permute fancy test\n");
68 printf(
"=========================\n");
69 printf(
"This is a program to calculate the solution to the following problem\n");
70 printf(
"Find the equivalence between letters and numbers so that\n\n");
71 printf(
" NINE*THREE = NEUF*TROIS\n\n");
77 trois=(((t*10+
r)*10+o)*10+i)*10+s;
79 printf(
"Solution found!\n\n");
80 printf(
"T=%d N=%d E=%d S=%d F=%d H=%d R=%d I=%d O=%d U=%d\n",t,
n,
e,s,
f,
h,
r,i,o,
u);
86 printf(
"No solutions found -- something is wrong here!\n");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Bool_t Permute(Int_t n, Int_t *a)
Simple recursive algorithm to find the permutations of n natural numbers, not necessarily all distinc...