A thought experiment. If taking a single child and torturing her or him to death publicly would have brought an end to the war, would it have been a justifiable thing to do? Or one hundred children? Or ten thousand?
Clearly who think that Hiroshioma and Nagasaki was justified think it would have been.