[UVA][zkw式ST] 10015 - Joseph's Cousin
The Problem
The Joseph’s problem is notoriously known. For those who are not familiar
with the problem, among n people numbered 1,2…n, standing in circle every
mth is going to be executed and only the life of the last remaining person
will be saved. Joseph w...