Less than 1 minute

  1. 力扣:不要定义静态变量。

    1116题目。多线程调了半天,static volatile int i = 1;怎么都不对。

    原来case用例是相当于开了三个类实例,所以不能定义static变量。