0.49s

Test: tutorial-math-permute (Passed)
Build: v6-20-00-patches-x86_64-ubuntu19-gcc8-opt (root-ubuntu1904-1) on 2020-01-25 03:18:58
Repository revision: 868621a0ea84aa6772620998b80dfda2a5dbb0e2

Test Timing: Passed
 Processors 1

Show Command Line
Display graphs:

Test output
```Processing /build/night/LABEL/ROOT-ubuntu1904/SPEC/cxx17/V/6-20/root/tutorials/math/permute.C...

TMath::Permute simple test
==========================
abcd
abdc
acbd
acdb
adbc
adcb
bacd
badc
bcad
bcda
bdac
bdca
cabd
cadb
cbad
cbda
cdab
cdba
dabc
dacb
dbac
dbca
dcab
dcba
Found 24 permutations = 4!

TMath::Permute simple test with repetition
==========================================
aabbc
aabcb
aacbb
ababc
abacb
abbac
abbca
abcab
abcba
acabb
acbab
acbba
baabc
baacb
babac
babca
bacab
bacba
bbaac
bbaca
bbcaa
bcaab
bcaba
bcbaa
caabb
cabab
cabba
cbaab
cbaba
cbbaa
Found 30 permutations = 5!/(2! 2!)

TMath::Permute fancy test
=========================
This is a program to calculate the solution to the following problem
Find the equivalence between letters and numbers so that

NINE*THREE = NEUF*TROIS

Solution found!

T=1 N=9 E=6 S=7 F=8 H=3 R=2 I=0 O=5 U=4
NINE=9096 THREE=13266 NEUF=9648 TROIS=12507
NINE*THREE = NEUF*TROIS = 120667536
```