1 | initial version |
You could try using cartesian_product
:
for a, b, c in cartesian_product([srange(1,100), srange(1,100), srange(1,100)]):
if a<b and b<c:
do something
But I'm worried about computational cost...
2 | No.2 Revision |
You could try using cartesian_product
:
for a, b, c in cartesian_product([srange(1,100), srange(1,100), srange(1,100)]):
if a<b and b<c:
a<b<c:
do something
But I'm worried about computational cost... cost...
3 | No.3 Revision |
You could try using cartesian_product
:
for a, b, c in cartesian_product([srange(1,100), srange(1,100), srange(1,100)]):
if a<b<c:
a<=b<=c:
do something
But I'm worried about computational cost...