A giant dinosaur found in Tanzania once lived during a lush, green period of flowering plants about 100 million years ago, paleontologists report.