Since one-third of the class participated, there are 39 * 1/3 = <<39*1/3=13>>13 students who participated in the competition.
This means that 39 – 13 = <<39-13=26>>26 students did not participate.
#### 26