Cut corn on the cob crosswise into 2-inch pieces. Brush with olive oil; season with salt and pepper. Grill over medium high until tender, 4 to 6 minutes, turning occasionally.